]> git.baikalelectronics.ru Git - kernel.git/commitdiff
igc: Remove dead code related to flower filter
authorAndre Guedes <andre.guedes@intel.com>
Sat, 7 Mar 2020 00:36:42 +0000 (16:36 -0800)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Fri, 17 Apr 2020 17:19:24 +0000 (10:19 -0700)
IGC driver has no support for tc-flower filters so this patch removes
some leftover code, probably copied from IGB driver by mistake.

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

index 4643f358b8432ee8224e78f09852477aa2849b93..5f21dcfe99ce44da129ce7d3e3bb7106152f6eb6 100644 (file)
@@ -185,7 +185,6 @@ struct igc_adapter {
 
        /* RX network flow classification support */
        struct hlist_head nfc_filter_list;
-       struct hlist_head cls_flower_list;
        unsigned int nfc_filter_count;
 
        /* lock for RX network flow classification filter */
index 85df9366e172271a2f9fc2e38c3b3d581d68b0dd..6acb85842d0a57d93bed367484a9a57af2770fc4 100644 (file)
@@ -3487,9 +3487,6 @@ static void igc_nfc_filter_exit(struct igc_adapter *adapter)
        hlist_for_each_entry(rule, &adapter->nfc_filter_list, nfc_node)
                igc_erase_filter(adapter, rule);
 
-       hlist_for_each_entry(rule, &adapter->cls_flower_list, nfc_node)
-               igc_erase_filter(adapter, rule);
-
        spin_unlock(&adapter->nfc_lock);
 }