]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitddc4b9e5f9c25790dbf23b4a591ffaafa547c3aa
treedafb7cb8bb6b279c9783734f263394e451229c2f
parent81994b3a2fd41f717b505906d92dc8f7c2e42e47
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