Lines Matching refs:cls_mall

71 	struct tc_cls_matchall_offload cls_mall = {};  in mall_destroy_hw_filter()  local
74 tc_cls_common_offload_init(&cls_mall.common, tp, head->flags, extack); in mall_destroy_hw_filter()
75 cls_mall.command = TC_CLSMATCHALL_DESTROY; in mall_destroy_hw_filter()
76 cls_mall.cookie = cookie; in mall_destroy_hw_filter()
78 tc_setup_cb_destroy(block, tp, TC_SETUP_CLSMATCHALL, &cls_mall, false, in mall_destroy_hw_filter()
87 struct tc_cls_matchall_offload cls_mall = {}; in mall_replace_hw_filter() local
92 cls_mall.rule = flow_rule_alloc(tcf_exts_num_actions(&head->exts)); in mall_replace_hw_filter()
93 if (!cls_mall.rule) in mall_replace_hw_filter()
96 tc_cls_common_offload_init(&cls_mall.common, tp, head->flags, extack); in mall_replace_hw_filter()
97 cls_mall.command = TC_CLSMATCHALL_REPLACE; in mall_replace_hw_filter()
98 cls_mall.cookie = cookie; in mall_replace_hw_filter()
100 err = tc_setup_flow_action(&cls_mall.rule->action, &head->exts); in mall_replace_hw_filter()
102 kfree(cls_mall.rule); in mall_replace_hw_filter()
112 err = tc_setup_cb_add(block, tp, TC_SETUP_CLSMATCHALL, &cls_mall, in mall_replace_hw_filter()
114 tc_cleanup_flow_action(&cls_mall.rule->action); in mall_replace_hw_filter()
115 kfree(cls_mall.rule); in mall_replace_hw_filter()
289 struct tc_cls_matchall_offload cls_mall = {}; in mall_reoffload() local
296 cls_mall.rule = flow_rule_alloc(tcf_exts_num_actions(&head->exts)); in mall_reoffload()
297 if (!cls_mall.rule) in mall_reoffload()
300 tc_cls_common_offload_init(&cls_mall.common, tp, head->flags, extack); in mall_reoffload()
301 cls_mall.command = add ? in mall_reoffload()
303 cls_mall.cookie = (unsigned long)head; in mall_reoffload()
305 err = tc_setup_flow_action(&cls_mall.rule->action, &head->exts); in mall_reoffload()
307 kfree(cls_mall.rule); in mall_reoffload()
316 &cls_mall, cb_priv, &head->flags, in mall_reoffload()
318 tc_cleanup_flow_action(&cls_mall.rule->action); in mall_reoffload()
319 kfree(cls_mall.rule); in mall_reoffload()
331 struct tc_cls_matchall_offload cls_mall = {}; in mall_stats_hw_filter() local
334 tc_cls_common_offload_init(&cls_mall.common, tp, head->flags, NULL); in mall_stats_hw_filter()
335 cls_mall.command = TC_CLSMATCHALL_STATS; in mall_stats_hw_filter()
336 cls_mall.cookie = cookie; in mall_stats_hw_filter()
338 tc_setup_cb_call(block, TC_SETUP_CLSMATCHALL, &cls_mall, false, true); in mall_stats_hw_filter()
340 tcf_exts_stats_update(&head->exts, cls_mall.stats.bytes, in mall_stats_hw_filter()
341 cls_mall.stats.pkts, cls_mall.stats.drops, in mall_stats_hw_filter()
342 cls_mall.stats.lastused, in mall_stats_hw_filter()
343 cls_mall.stats.used_hw_stats, in mall_stats_hw_filter()
344 cls_mall.stats.used_hw_stats_valid); in mall_stats_hw_filter()