aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/intel/igc/igc_ethtool.c
diff options
context:
space:
mode:
authorAndre Guedes <[email protected]>2020-04-24 20:16:19 +0000
committerJeff Kirsher <[email protected]>2020-05-23 01:21:51 +0000
commite256ec83fabd5803a576c46e03289e519d087fda (patch)
treeec1292920c5e48d4342d7c80a52116278bbc0936 /drivers/net/ethernet/intel/igc/igc_ethtool.c
parentigc: Refactor igc_ethtool_update_nfc_rule() (diff)
downloadkernel-e256ec83fabd5803a576c46e03289e519d087fda.tar.gz
kernel-e256ec83fabd5803a576c46e03289e519d087fda.zip
igc: Fix NFC rules leak when driver is unloaded
If we have RFC rules in adapter->nfc_rule_list when the IGC driver is unloaded, all rules are leaked. This patch fixes the issue by introducing the helper igc_flush_nfc_rules() and calling it in igc_remove(). It also updates igc_set_features() so is reuses the new helper instead of re-implementing it. Signed-off-by: Andre Guedes <[email protected]> Tested-by: Aaron Brown <[email protected]> Signed-off-by: Jeff Kirsher <[email protected]>
Diffstat (limited to 'drivers/net/ethernet/intel/igc/igc_ethtool.c')
0 files changed, 0 insertions, 0 deletions