ixgbe: Ensure MAC filter was added before setting MACVLAN
authorTony Nguyen <anthony.l.nguyen@intel.com>
Wed, 19 Jul 2017 22:00:26 +0000 (15:00 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Tue, 25 Jul 2017 23:27:12 +0000 (16:27 -0700)
commit0e1ff3061cb529a70f03f63988a48f9fda8ed419
treec5017dcb8e69c2c23ffc073d2fe7bd542b31d579
parent34c8c10a766c8daf42293664f5c9ca5516fa3f41
ixgbe: Ensure MAC filter was added before setting MACVLAN

This patch adds a check to ensure that adding the MAC filter was
successful before setting the MACVLAN.  If it was unsuccessful, propagate
the error.

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