User Manual

Rev 2.3-1.0.1
Mellanox Technologies
187
The first entry, enable_smi_admin, is used to enable SMI on a VF. By default, the value of this
entry is zero (disabled). When set to
“1”, the SMI will be enabled for the VF on the next rebind
or openibd restart on the VM that the VF is bound to. If the VF is currently bound, it must be
unbound and then re-bound.
The second sysfs entry,
smi_enabled, indicates the current enablement state of the SMI. 0 indi-
cates disabled, and 1 indicates enabled. This entry is read-only.
When a VF is initialized (bound), during the initialization sequence, the driver copies the
requested
smi_state (enable_smi_admin) for that VF/port to the operational SMI state
(
smi_enabled) for that VF/port, and operate according to the operational state.
Thus, the sequence of operations on the hypevisor is:
Step 1. Enable SMI for any VF/port that you wish.
Step 2. Restart the VM that the VF is bound to (or just run /etc/init.d/openibd restart on that
VM)
The SMI will be enabled for the VF/port combinations that you set in step 2 above. You will then
be able to run network diagnostics from that
VF.
Installing MLNX_OFED with Network Diagnostics on a VM
To install mlnx_ofed on a VF which will be enabled to run the tools, run the following on
the VM:
# mlnx_ofed_install
3.4.1.8 Virtual Guest Tagging (VGT+)
VGT+ is an advanced mode of Virtual Guest Tagging (VGT), in which a VF is allowed to tag its
own packets as in
VGT, but is still subject to an administrative VLAN trunk policy. The policy
determines which VLAN IDs are allowed to be transmitted or received. The policy does not
determine the user priority, which is left unchanged.
Packets can be send in one of the following modes: when the VF is allowed to send/receive
untagged and priority tagged traf
fic and when it is not. No default VLAN is defined for VGT+
port. The send packets are passed to the eSwitch only if they match the set, and the received
packets are forwarded to the VF only if they match the set.
The following are current VGT+ limitations:
The size of the VLAN set is defined to be up to 10 VLANs including the VLAN 0 that is
added for untagged/priority tagged traf
fic
This behavior applies to all VF traffic: plain Ethernet, and all RoCE transports
VGT+ allowed VLAN sets may be only extended when the VF is online
An operational VLAN set becomes identical as the administration VLAN set only after a
VF reset
VGT+ is available in DMFS mode only