Here're the reproduce steps of this issue, also attached the errors in dmesg log which were triggered by this issue.
root@unassigned-hostname:~# ethtool -i enp24s0f0 driver: i40e version: 2.1.14-k firmware-version: 6.02 0x80003620 1.1747.0 expansion-rom-version: bus-info: 0000:18:00.0 supports-statistics: yes supports-test: yes supports-eeprom-access: yes supports-register-dump: yes supports-priv-flags: yes root@unassigned-hostname:~# echo 1 > /sys/bus/pci/devices/0000\:18\:00.0/sriov_numvfs root@unassigned-hostname:~# ip link set dev enp24s0f0 vf 0 mac 00:10:00:00:00:00 root@unassigned-hostname:~# echo "dump vf 0" > /sys/kernel/debug/i40e/0000\:18\:00.0/command root@unassigned-hostname:~# echo "dump vsi 394" > /sys/kernel/debug/i40e/0000\:18\:00.0/command root@unassigned-hostname:~# ip link set dev enp24s2 address 00:10:00:00:00:00 root@unassigned-hostname:~# ip link set dev enp24s2 address 00:20:00:00:00:00 root@unassigned-hostname:~# echo "dump vsi 394" > /sys/kernel/debug/i40e/0000\:18\:00.0/command ** Attachment added: "dmesg_log.txt" https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1806845/+attachment/5219663/+files/dmesg_log.txt -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/1806845 Title: The unsigned vf->num_mac will be decreased to below zero and cause the VF port not working Status in linux package in Ubuntu: Incomplete Bug description: The unsigned vf->num_mac in Ubuntu18.04.1 LTS i40e driver 2.1.14-k will be decreased to below zero when VF is trying to delete the MAC address which is added by PF and then add a new MAC address. And after this issue happens, VF won't be able to send/receive packets, and excepting for broadcast address, mac_filter_hash is empty in dumped VSI info. Ubuntu18.04.1 LTS kernel: 4.15.0-38-generic i40e driver: 2.1.14-k i40evf driver: 3.0.1-k Actual results: The unsigned vf->num_mac should decrease to below zero. The VF port doesn't work. Expected results: The unsigned vf->num_mac range is from 0 to 65535; or the vf is not allowed to delete the MAC addr which is added by PF Corresponding Patch is required for resolving this i40e driver issue i40e: Prevent deleting MAC address from VF when set by PF https://patchwork.ozlabs.org/patch/963036/ To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1806845/+subscriptions -- Mailing list: https://launchpad.net/~kernel-packages Post to : kernel-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~kernel-packages More help : https://help.launchpad.net/ListHelp