]> git.baikalelectronics.ru Git - kernel.git/commit
ice: allow host to clear administratively set VF MAC
authorBrett Creeley <brett.creeley@intel.com>
Sat, 16 May 2020 00:51:17 +0000 (17:51 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Sun, 31 May 2020 10:34:15 +0000 (03:34 -0700)
commit57efc995b759ef513ec710f06f85f941bdfb026c
tree0a3dac8bace55a57a6ecb5828d30450a966f7a66
parent65b3268f840079a428cb611de943c0df68672300
ice: allow host to clear administratively set VF MAC

Currently a user is not allowed to clear a VF's administratively set MAC
on the PF. Fix this by allowing an all zero MAC address via "ip link set
${pf_eth} vf ${vf_id} mac 00:00:00:00:00:00".

An example use case for this would be issuing a "virsh shutdown"
command on a VM. The call to iproute mentioned above is part of this flow.
Without this change the driver incorrectly rejects clearing the VF's
administratively set MAC and prints unhelpful log messages.

Also, improve the comments surrounding this change.

Signed-off-by: Brett Creeley <brett.creeley@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ice/ice_virtchnl_pf.c