i40e: Prevent deleting MAC address from VF when set by PF
authorPatryk Małek <patryk.malek@intel.com>
Tue, 28 Aug 2018 17:16:09 +0000 (10:16 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 30 Aug 2018 20:53:04 +0000 (13:53 -0700)
commit5907cf6c5bbe78be2ed18b875b316c6028b20634
treea67c49181163d09b6b42d950d688426ea28cbb92
parentbabbcc60040abfb7a9e3caa1c58fe182ae73762a
i40e: Prevent deleting MAC address from VF when set by PF

To prevent VF from deleting MAC address that was assigned by the
PF we need to check for that scenario when we try to delete a MAC
address from a VF.

Signed-off-by: Patryk Małek <patryk.malek@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c