Lines Matching refs:ch_flower
931 struct ch_tc_flower_entry *ch_flower; in cxgb4_tc_flower_replace() local
935 ch_flower = allocate_flower_entry(); in cxgb4_tc_flower_replace()
936 if (!ch_flower) { in cxgb4_tc_flower_replace()
941 fs = &ch_flower->fs; in cxgb4_tc_flower_replace()
946 &ch_flower->filter_id); in cxgb4_tc_flower_replace()
950 ch_flower->tc_flower_cookie = cls->cookie; in cxgb4_tc_flower_replace()
951 ret = rhashtable_insert_fast(&adap->flower_tbl, &ch_flower->node, in cxgb4_tc_flower_replace()
962 cxgb4_del_filter(dev, ch_flower->filter_id, &ch_flower->fs); in cxgb4_tc_flower_replace()
965 kfree(ch_flower); in cxgb4_tc_flower_replace()
992 struct ch_tc_flower_entry *ch_flower; in cxgb4_tc_flower_destroy() local
995 ch_flower = ch_flower_lookup(adap, cls->cookie); in cxgb4_tc_flower_destroy()
996 if (!ch_flower) in cxgb4_tc_flower_destroy()
999 rhashtable_remove_fast(&adap->flower_tbl, &ch_flower->node, in cxgb4_tc_flower_destroy()
1002 ret = cxgb4_flow_rule_destroy(dev, ch_flower->fs.tc_prio, in cxgb4_tc_flower_destroy()
1003 &ch_flower->fs, ch_flower->filter_id); in cxgb4_tc_flower_destroy()
1006 ch_flower->filter_id, ret); in cxgb4_tc_flower_destroy()
1008 kfree_rcu(ch_flower, rcu); in cxgb4_tc_flower_destroy()
1064 struct ch_tc_flower_entry *ch_flower; in cxgb4_tc_flower_stats() local
1069 ch_flower = ch_flower_lookup(adap, cls->cookie); in cxgb4_tc_flower_stats()
1070 if (!ch_flower) { in cxgb4_tc_flower_stats()
1075 ret = cxgb4_get_filter_counters(dev, ch_flower->filter_id, in cxgb4_tc_flower_stats()
1077 ch_flower->fs.hash); in cxgb4_tc_flower_stats()
1081 spin_lock_bh(&ch_flower->lock); in cxgb4_tc_flower_stats()
1082 ofld_stats = &ch_flower->stats; in cxgb4_tc_flower_stats()
1095 spin_unlock_bh(&ch_flower->lock); in cxgb4_tc_flower_stats()