igc: Refactor MAC address filtering code
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest12 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/12 | igc: Remove duplicate code in MAC filtering logicdrivers/ | +13 | 1 reply | |
| 2/12 | igc: Check unsupported flag in igc_add_mac_filter()drivers/ | +2 | 2 replies | |
| 3/12 | igc: Change igc_add_mac_filter() returning valuedrivers/ drivers/ | +2 | 1 reply | |
| 4/12 | igc: Fix igc_uc_unsync()drivers/ | +1 | 1 reply | |
| 5/12 | igc: Refactor igc_rar_set_index()drivers/ | +43 | 5 replies | |
| 6/12 | igc: Improve address check in igc_del_mac_filter()drivers/ | +1 | 1 reply | |
| 7/12 | igc: Remove 'queue' check in igc_del_mac_filter()drivers/ | +12 | 4 replies | |
| 8/12 | igc: Remove IGC_MAC_STATE_QUEUE_STEERINGdrivers/ drivers/ | +21 | 3 replies | |
| 9/12 | igc: Remove igc_*_mac_steering_filter() wrappersdrivers/ drivers/ drivers/ | +16 | 1 reply | |
| 10/12 | igc: Refactor igc_mac_entry_can_be_used()drivers/ | +47 | 1 reply | |
| 11/12 | igc: Refactor igc_del_mac_filter()drivers/ | +19 | 1 reply | |
| 12/12 | igc: Add debug messages to MAC filter codedrivers/ | +22 | 1 reply |
Reviews trailers per patch
None of the 12 patches has a Reviewed-by or Acked-by.
| Patch | Aaron Brown |
|---|---|
| 1/12 | T-b |
| 2/12 | T-b |
| 3/12 | T-b |
| 4/12 | T-b |
| 5/12 | T-b T-b |
| 6/12 | T-b |
| 7/12 | T-b |
| 8/12 | T-b T-b |
| 9/12 | T-b |
| 10/12 | T-b |
| 11/12 | T-b |
| 12/12 | T-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [Intel-wired-lan] [PATCH 00/12] igc: Refactor MAC address filtering code
Hi all,
The MAC address filtering support from IGC driver has some duplicate code and convoluted logic, making it harder to read, debug, and maintain.
As a follow-up to the bug fixes already applied to dev-queue, this patchset refactors the MAC address filtering code to address those issues. It also takes the opportunity to improve documentation from some key functions and clean up comments that are not applicable to IGC, and fix minor issues along the way.
In summary, the new MAC address filtering code is organized as follows:
* Filters are added and deleted only via igc_add_mac_filter() and igc_del_mac_filter() APIs. These APIs manage the adapter->mac_table. They are defined in igc_main.c and used in both igc_main.c and igc_ethtool.c.
* Filter configuration in hardware is handled by igc_set_mac_filter_ hw() and igc_clear_mac_filter_hw() local helpers in igc_main.c.
* IGC_MAC_STATE_QUEUE_STEERING flag as well as igc_*_mac_steering_ filter() are gone.
Best regards,
Andre
Andre Guedes (12):
igc: Remove duplicate code in MAC filtering logic
igc: Check unsupported flag in igc_add_mac_filter()
igc: Change igc_add_mac_filter() returning value
igc: Fix igc_uc_unsync()
igc: Refactor igc_rar_set_index()
igc: Improve address check in igc_del_mac_filter()
igc: Remove 'queue' check in igc_del_mac_filter()
igc: Remove IGC_MAC_STATE_QUEUE_STEERING
igc: Remove igc_*_mac_steering_filter() wrappers
igc: Refactor igc_mac_entry_can_be_used()
igc: Refactor igc_del_mac_filter()
igc: Add debug messages to MAC filter code
drivers/net/ethernet/intel/igc/igc.h | 11 +- drivers/net/ethernet/intel/igc/igc_ethtool.c | 22 +- drivers/net/ethernet/intel/igc/igc_main.c | 372 ++++++++----------- 3 files changed, 169 insertions(+), 236 deletions(-)
Signature · 1 line
2.25.0