i40e: quiet complaints when removing default MAC VLAN filter and make set_mac reversible
authorShannon Nelson <shannon.nelson@intel.com>
Tue, 29 Jul 2014 04:01:50 +0000 (04:01 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Wed, 27 Aug 2014 07:51:38 +0000 (00:51 -0700)
commit30650cc552cf9a60fa80a205693c6f76f7a00549
tree624698d4e138c16f8088a24ca1b500d27ba99e30
parentf905dd62be8853644357044a455f83e63e8c68ef
i40e: quiet complaints when removing default MAC VLAN filter and make set_mac reversible

Older firmware has an incorrect MAC VLAN filter that needs to be replaced
at startup, and now newer firmware doesn't have this problem.  With this
change we no longer complain if the remove fails, and we only add the
new filter if the remove succeeded.

Setting a new LAA worked the first time, but didn't work well in successive
operations, including returning to the HW default address.  This simplifies
the code that was trying to be too smart.

Lastly, this pulls the hardware default mac address out into separate
handling code and keeps the broadcast filtering from getting munged.

Change-ID: I1f54b002def04ffef2546febb9a4044385452f85
Signed-off-by: Shannon Nelson <shannon.nelson@intel.com>
Tested-by: Jim Young <jamesx.m.young@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40e/i40e_main.c