]> 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)
commit267c0fe49aa11df62ff8d2c1e884f705bbe45938
tree0a3dac8bace55a57a6ecb5828d30450a966f7a66
parentacb98930866257f6cdaae83d702c57bf5233b8cb
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