Trying to "rate limit" a VF in SR-IOV enabled Mellanox ConnectX-3 HCA

I get an “Operation not supported” message when I try to rate limit a VF, see below:

ip link set eth4 down

ip link set eth2 vf 1 rate 1000

RTNETLINK answers: Operation not supported

ip link set eth4 up

I’ve been able to set VLAN, QOS priority, and MAC address of VF’s, but I can’t seem to set the rate limit.

ip link show eth2

28: eth2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP qlen 1000

link/ether 00:02:c9:ea:67:d1 brd ff:ff:ff:ff:ff:ff

vf 0 MAC 00:00:00:00:00:00, vlan 4095

vf 1 MAC de:ad:de:ad:be:ef, vlan 2, qos 2

vf 2 MAC 00:00:00:00:00:00, vlan 4095

vf 3 MAC 00:00:00:00:00:00, vlan 4095

vf 4 MAC 00:00:00:00:00:00, vlan 4095

vf 5 MAC 00:00:00:00:00:00, vlan 4095

vf 6 MAC 00:00:00:00:00:00, vlan 4095

vf 7 MAC 00:00:00:00:00:00, vlan 4095

I read that I need the latest iproute2 utility but I believe I have it installed on my server which is running CentOS 6.4.

Does anyone know if the rate limiting feature is currently supported? Or, is there another way to set it?

p.s. just FYI…

lspci | grep -i Mellanox

02:00.0 Network controller: Mellanox Technologies MT27500 Family [ConnectX-3]

02:00.1 Network controller: Mellanox Technologies MT27500 Family [ConnectX-3 Virtual Function]

02:00.2 Network controller: Mellanox Technologies MT27500 Family [ConnectX-3 Virtual Function]

02:00.3 Network controller: Mellanox Technologies MT27500 Family [ConnectX-3 Virtual Function]

02:00.4 Network controller: Mellanox Technologies MT27500 Family [ConnectX-3 Virtual Function]

02:00.5 Network controller: Mellanox Technologies MT27500 Family [ConnectX-3 Virtual Function]

02:00.6 Network controller: Mellanox Technologies MT27500 Family [ConnectX-3 Virtual Function]

02:00.7 Network controller: Mellanox Technologies MT27500 Family [ConnectX-3 Virtual Function]

02:01.0 Network controller: Mellanox Technologies MT27500 Family [ConnectX-3 Virtual Function]

The specified item was not found. HowTo Set Virtual Network Attributes on a Virtual Function (SR-IOV) https://community.mellanox.com/s/article/howto-set-virtual-network-attributes-on-a-virtual-function--sr-iov-x Ethernet Adapter Cards

Hi,

It is possible to set QoS over SR-IOV in either VST or VGT mode using the mlnx_qos command.

Refer to HowTo Configure QoS over SR-IOV https://community.mellanox.com/s/article/howto-configure-qos-over-sr-iov

Thanks,

Ophir.