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>
This commit is contained in:

committed by
Jeff Kirsher

parent
1c3739cb6e
commit
d66358cae2
@@ -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 */
|
||||
|
Reference in New Issue
Block a user