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
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 > 
root@unassigned-hostname:~#  ip link set dev enp24s0f0 vf 0 mac 
00:10:00:00:00:00 root@unassigned-hostname:~# echo "dump vf 0" > 
root@unassigned-hostname:~# echo "dump vsi 394" > 
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" > 

** Attachment added: "dmesg_log.txt"

You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.

  The unsigned vf->num_mac will be decreased to below zero and cause the
  VF port not working

Status in linux package in Ubuntu:

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 

  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

To manage notifications about this bug go to:

Mailing list:
Post to     :
Unsubscribe :
More help   :

Reply via email to