linux-bl808/drivers/net/ethernet/intel/igc
Andre Guedes 0c2e060859 igc: Remove duplicate code in MAC filtering logic
This patch does a code refactoring in the MAC address filtering logic to
get rid of some duplicate code.

IGC driver has two functions to add MAC address filters that are pretty
much the same: igc_add_mac_filter() and igc_add_mac_filter_flags(). The
only difference is that the latter allows the callee to specify the
'flags' parameter while the former has it hard coded as zero. The same
rationale applies to filter deletion counterparts.

So this patch refactors igc_add_mac_filter() and igc_del_mac_filter() so
they handle the 'flags' parameters, removes the _flags() functions, and
fixes callees accordingly.

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>
2020-04-19 11:39:35 -07:00
..
igc.h igc: Remove dead code related to flower filter 2020-04-17 10:19:24 -07:00
igc_base.c igc: Add new device IDs for i225 part 2020-04-19 11:34:11 -07:00
igc_base.h
igc_defines.h igc: Fix NFC queue redirection support 2020-04-17 10:19:24 -07:00
igc_dump.c
igc_ethtool.c igc: Fix overwrites when dumping registers 2020-04-17 10:19:24 -07:00
igc_hw.h igc: Add new device IDs for i225 part 2020-04-19 11:34:11 -07:00
igc_i225.c
igc_i225.h
igc_mac.c
igc_mac.h
igc_main.c igc: Remove duplicate code in MAC filtering logic 2020-04-19 11:39:35 -07:00
igc_nvm.c
igc_nvm.h
igc_phy.c
igc_phy.h
igc_ptp.c
igc_regs.h igc: Add support for taprio offloading 2020-04-17 10:19:24 -07:00
igc_tsn.c igc: Add support for ETF offloading 2020-04-17 10:19:24 -07:00
igc_tsn.h igc: Add support for taprio offloading 2020-04-17 10:19:24 -07:00
Makefile igc: Add support for taprio offloading 2020-04-17 10:19:24 -07:00