ixgbe: Add error checking to setting VF MAC
authorTony Nguyen <anthony.l.nguyen@intel.com>
Fri, 28 Apr 2017 19:42:03 +0000 (12:42 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Wed, 31 May 2017 11:38:23 +0000 (04:38 -0700)
commit6af3d0faede8b8c2ccd93f31d9f146ffd0b463d6
treedafb7cb8bb6b279c9783734f263394e451229c2f
parent22cb4fff3d9756229f1e67987f4fabb57a8c68ca
ixgbe: Add error checking to setting VF MAC

Currently, when setting a VF MAC address there are no error checks to
ensure that the MAC filter was successfully added.  This patch adds
additional error checks, reporting, and propagation of errors.  It also
will not set the MAC address unless adding the MAC filter was successful.

With these changes, setting the mac address to zeros can no longer call
ixgbe_set_vf_mac() as adding a zero MAC address filter is not valid.
Instead directly delete the filter and, if successful, clear the MAC
address.

Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c