]> git.baikalelectronics.ru Git - kernel.git/commit
igc: Fix NFC rule overwrite cases
authorAndre Guedes <andre.guedes@intel.com>
Fri, 24 Apr 2020 20:16:15 +0000 (13:16 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Sat, 23 May 2020 01:21:51 +0000 (18:21 -0700)
commit0fc842a7830e65c06de55c95e7dc4ccb9b69f28e
tree5f9126344d798b0f752bfbf290c81e9528108477
parent6faf29ce9bf4abcea6e9757c3d2b477025262a4e
igc: Fix NFC rule overwrite cases

When the 'loc' argument is passed in ethtool, the input rule overwrites
any rule present in that location. In this situation we must disable the
old rule otherwise it is left enabled in hardware. This patch fixes
the issue by always calling igc_disable_nfc_rule() when deleting the
old rule, no matter the value of 'input' argument.

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>
drivers/net/ethernet/intel/igc/igc_ethtool.c