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 4643f35..5f21dcf 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 85df936..6acb858 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);
 }