Hello! I am using a MT27520 Family [ConnectX-3 Pro] 40G dual port card with SR-IOV enable, but the VF can not set to promiscuous mode. Promiscuous mode is set inside the VM, but it doesn't work. VM does not receive packets with unregistered DMAC.

ethtool -i eno1

driver: mlx4_en

version: 4.9-0.1.7

firmware-version: 2.42.5044

expansion-rom-version:

bus-info: 0000:03:00.0

supports-statistics: yes

supports-test: yes

supports-eeprom-access: no

supports-register-dump: no

supports-priv-flags: yes

ip l show eno1

2: eno1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 9000 qdisc mq master ovs-system state UP mode DEFAULT group default qlen 1000

link/ether 50:65:f3:89:10:e1 brd ff:ff:ff:ff:ff:ff

vf 0 MAC 00:00:00:00:00:00, vlan 4095, spoof checking off, link-state auto

vf 1 MAC 00:00:00:00:00:00, vlan 4095, spoof checking off, link-state auto

vf 2 MAC 00:00:00:00:00:00, vlan 4095, spoof checking off, link-state auto

vf 3 MAC 00:00:00:00:00:00, vlan 4095, spoof checking off, link-state auto

ip l set eno1 vf 0 trust on

RTNETLINK answers: Operation not supported

Hello Daniil,

Thank you for posting your question on the Mellanox Community.

Try enabling trust using the following method

Specify echo “ON” or “OFF” to the file located under /sys/class/net/<ETH_IF_NAME> /device/sriov//trust.

For example, to enable trust on VF 0, run:

echo “ON” > /sys/class/net/eno1/device/sriov/vf/0/trust

Thank you,

~Mellanox Technical Support

Hello!

File /sys/class/net/eno1/device/sriov/vf/0/trust is missing. Directory tree in attachment.