linux-bl808/drivers/net/ethernet/intel/igc
Andre Guedes 1894df0ccb igc: Fix NFC rule validation
If we try to overwrite an existing rule with the same filter but
different action, we get EEXIST error as shown below.

$ ethtool -N eth0 flow-type ether dst <MACADDR> action 1 loc 10
$ ethtool -N eth0 flow-type ether dst <MACADDR> action 2 loc 10
rmgr: Cannot insert RX class rule: File exists

The second command is expected to overwrite the previous rule in location
10 and succeed.

This patch fixes igc_ethtool_check_nfc_rule() so it also checks the
rules location. In case they match, the rule under evaluation should not
be considered invalid.

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-05-22 18:21:51 -07:00
..
igc.h igc: Refactor igc_ethtool_update_nfc_rule() 2020-05-22 18:21:51 -07:00
igc_base.c igc: Use netdev log helpers in igc_base.c 2020-05-18 17:16:33 -07:00
igc_base.h
igc_defines.h igc: Add support for source address filters in core 2020-05-21 16:18:30 -07:00
igc_diag.c igc: add support to eeprom, registers and link self-tests 2020-05-18 15:06:28 -07:00
igc_diag.h igc: add support to eeprom, registers and link self-tests 2020-05-18 15:06:28 -07:00
igc_dump.c igc: Remove unused registers 2020-05-19 16:00:00 -07:00
igc_ethtool.c igc: Fix NFC rule validation 2020-05-22 18:21:51 -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: Remove obsolete circuit breaker registers 2020-05-21 16:18:48 -07:00
igc_mac.h igc: remove IGC_REMOVED function 2020-05-19 15:01:48 -07:00
igc_main.c igc: Fix NFC rules leak when driver is unloaded 2020-05-22 18:21:51 -07:00
igc_nvm.c
igc_nvm.h
igc_phy.c
igc_phy.h
igc_ptp.c igc: Remove ethertype filter in PTP code 2020-05-19 15:35:42 -07:00
igc_regs.h igc: Remove per queue good transmited counter register 2020-05-21 16:18:56 -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 to eeprom, registers and link self-tests 2020-05-18 15:06:28 -07:00