igc: Remove mac_table from igc_adapter
authorAndre Guedes <andre.guedes@intel.com>
Sat, 11 Apr 2020 00:28:32 +0000 (17:28 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 21 May 2020 05:28:49 +0000 (22:28 -0700)
commitd66358cae25efbd35518d661991fce67af2945e7
treec920caa739f7eac315bfe55c110248df9ded5a0b
parent1c3739cb6e7ac5b5372438bf91b3d0404d18ecf9
igc: Remove mac_table from igc_adapter

In igc_adapter we keep a sort of shadow copy of RAL and RAH registers.
There is not much benefit in keeping it, at the cost of maintainability,
since adding/removing MAC address filters is not hot path, and we
already keep filters information in adapter->nfc_filter_list for cleanup
and restoration purposes.

So in order to simplify the MAC address filtering code and prepare it
for source address support, this patch removes the mac_table from
igc_adapter.

Signed-off-by: Andre Guedes <andre.guedes@intel.com>
Tested-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/igc/igc.h
drivers/net/ethernet/intel/igc/igc_defines.h
drivers/net/ethernet/intel/igc/igc_main.c