beautypg.com

Dell Mellanox Family of Adapters User Manual

Page 47

background image

User Manual for Mellanox ConnectX®-3 10/40 Gigabit Ethernet Adapters for Dell PowerEdge Servers

Rev 1.1

Mellanox Technologies

47

Example:

Step 3.

Read the administrative status of the GUID index.

To read the administrative status of GUID index

m

on port

n

:

Step 4.

Check the operational state of a GUID.

The values indicate what gids are actually configured on the firmware/hardware, and all the
entries are R/O.

Step 5.

Compare the value you read under the

"admin_guids"

directory at that index with the value

under the

"gids"

directory, to verify the change requested in Step 3 has been accepted by

the SM, and programmed into the hardware port GID table.

If the value under

admin_guids/

is different that the value under

gids/

, the request

is still in progress.

4.2.7.7 Ethernet Virtual Function Configuration when Running SR-IOV

4.2.7.7.1 VLAN Guest Tagging (VGT) and VLAN Switch Tagging (VST)

When running ETH ports on VGT, the ports may be configured to simply pass through packets as
is from VFs (Vlan Guest Tagging), or the administrator may configure the Hypervisor to silently
force packets to be associated with a VLan/Qos (Vlan Switch Tagging).

In the latter case, untagged or priority-tagged outgoing packets from the guest will have the
VLAN tag inserted, and incoming packets will have the VLAN tag removed. Any vlan-tagged
packets sent by the VF are silently dropped. The default behavior is VGT.

The feature may be controlled on the Hypervisor from userspace via iprout2 / netlink:

use:

where

NUM = 0..max-vf-num

vlan_id =

0..4095

(4095 means

"set VGT"

)

qos =

0..7

For example:

cd /sys/class/infiniband/mlx4_0/iov/ports/1/admin_guids

echo

a

"0x002fffff8118" > 3

a. echo "0x0" means let the SM assign a value to that GUID

echo "0xffffffffffffffff" means delete that GUID

echo means request the SM to assign this GUID to this index

cat /sys/class/infiniband/mlx4_0/iov/ports//admin_guids/

/sys/class/infiniband/mlx4_0/iov/ports//gids (where n = 1 or 2)

ip link set { dev DEVICE | group DEVGROUP } [ { up | down } ]

...

[ vf NUM [ mac LLADDR ]

[ vlan VLANID [ qos VLAN-QOS ] ]

...

[ spoofchk { on | off} ] ]

...

ip link set dev vf vlan [qos ]