]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - drivers/net/dsa/bcm_sf2.h
net: dsa: bcm_sf2: Keep copy of inserted rules
[linux.git] / drivers / net / dsa / bcm_sf2.h
index cc31e986e6e3eb22aad6c457ef8544f2c18af678..03444982c25e2379381a9638b1376b369a096686 100644 (file)
@@ -56,6 +56,7 @@ struct bcm_sf2_cfp_priv {
        DECLARE_BITMAP(used, CFP_NUM_RULES);
        DECLARE_BITMAP(unique, CFP_NUM_RULES);
        unsigned int rules_cnt;
+       struct list_head rules_list;
 };
 
 struct bcm_sf2_priv {
@@ -213,5 +214,6 @@ int bcm_sf2_get_rxnfc(struct dsa_switch *ds, int port,
 int bcm_sf2_set_rxnfc(struct dsa_switch *ds, int port,
                      struct ethtool_rxnfc *nfc);
 int bcm_sf2_cfp_rst(struct bcm_sf2_priv *priv);
+void bcm_sf2_cfp_exit(struct dsa_switch *ds);
 
 #endif /* __BCM_SF2_H */