diff options
author | Andre Guedes <andre.guedes@intel.com> | 2020-04-10 17:28:32 -0700 |
---|---|---|
committer | Jeff Kirsher <jeffrey.t.kirsher@intel.com> | 2020-05-20 22:28:49 -0700 |
commit | d66358cae25efbd35518d661991fce67af2945e7 (patch) | |
tree | c920caa739f7eac315bfe55c110248df9ded5a0b /drivers/net/ethernet/intel/igc/igc.h | |
parent | igc: Remove IGC_MAC_STATE_SRC_ADDR flag (diff) | |
download | linux-dev-d66358cae25efbd35518d661991fce67af2945e7.tar.xz linux-dev-d66358cae25efbd35518d661991fce67af2945e7.zip |
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>
Diffstat (limited to 'drivers/net/ethernet/intel/igc/igc.h')
-rw-r--r-- | drivers/net/ethernet/intel/igc/igc.h | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/drivers/net/ethernet/intel/igc/igc.h b/drivers/net/ethernet/intel/igc/igc.h index 885998d3f62e..5ce859155396 100644 --- a/drivers/net/ethernet/intel/igc/igc.h +++ b/drivers/net/ethernet/intel/igc/igc.h @@ -190,8 +190,6 @@ struct igc_adapter { /* lock for RX network flow classification filter */ spinlock_t nfc_lock; - struct igc_mac_addr *mac_table; - u8 rss_indir_tbl[IGC_RETA_SIZE]; unsigned long link_check_timeout; @@ -470,15 +468,6 @@ struct igc_nfc_filter { u16 action; }; -struct igc_mac_addr { - u8 addr[ETH_ALEN]; - s8 queue; - u8 state; /* bitmask */ -}; - -#define IGC_MAC_STATE_DEFAULT 0x1 -#define IGC_MAC_STATE_IN_USE 0x2 - #define IGC_MAX_RXNFC_FILTERS 16 /* igc_desc_unused - calculate if we have unused descriptors */ |