Lines Matching refs:cls_bpf

150 	struct tc_cls_bpf_offload cls_bpf = {};  in cls_bpf_offload_cmd()  local
158 tc_cls_common_offload_init(&cls_bpf.common, tp, obj->gen_flags, extack); in cls_bpf_offload_cmd()
159 cls_bpf.command = TC_CLSBPF_OFFLOAD; in cls_bpf_offload_cmd()
160 cls_bpf.exts = &obj->exts; in cls_bpf_offload_cmd()
161 cls_bpf.prog = prog ? prog->filter : NULL; in cls_bpf_offload_cmd()
162 cls_bpf.oldprog = oldprog ? oldprog->filter : NULL; in cls_bpf_offload_cmd()
163 cls_bpf.name = obj->bpf_name; in cls_bpf_offload_cmd()
164 cls_bpf.exts_integrated = obj->exts_integrated; in cls_bpf_offload_cmd()
167 err = tc_setup_cb_replace(block, tp, TC_SETUP_CLSBPF, &cls_bpf, in cls_bpf_offload_cmd()
173 err = tc_setup_cb_add(block, tp, TC_SETUP_CLSBPF, &cls_bpf, in cls_bpf_offload_cmd()
177 err = tc_setup_cb_destroy(block, tp, TC_SETUP_CLSBPF, &cls_bpf, in cls_bpf_offload_cmd()
231 struct tc_cls_bpf_offload cls_bpf = {}; in cls_bpf_offload_update_stats() local
233 tc_cls_common_offload_init(&cls_bpf.common, tp, prog->gen_flags, NULL); in cls_bpf_offload_update_stats()
234 cls_bpf.command = TC_CLSBPF_STATS; in cls_bpf_offload_update_stats()
235 cls_bpf.exts = &prog->exts; in cls_bpf_offload_update_stats()
236 cls_bpf.prog = prog->filter; in cls_bpf_offload_update_stats()
237 cls_bpf.name = prog->bpf_name; in cls_bpf_offload_update_stats()
238 cls_bpf.exts_integrated = prog->exts_integrated; in cls_bpf_offload_update_stats()
240 tc_setup_cb_call(block, TC_SETUP_CLSBPF, &cls_bpf, false, true); in cls_bpf_offload_update_stats()
655 struct tc_cls_bpf_offload cls_bpf = {}; in cls_bpf_reoffload() local
663 tc_cls_common_offload_init(&cls_bpf.common, tp, prog->gen_flags, in cls_bpf_reoffload()
665 cls_bpf.command = TC_CLSBPF_OFFLOAD; in cls_bpf_reoffload()
666 cls_bpf.exts = &prog->exts; in cls_bpf_reoffload()
667 cls_bpf.prog = add ? prog->filter : NULL; in cls_bpf_reoffload()
668 cls_bpf.oldprog = add ? NULL : prog->filter; in cls_bpf_reoffload()
669 cls_bpf.name = prog->bpf_name; in cls_bpf_reoffload()
670 cls_bpf.exts_integrated = prog->exts_integrated; in cls_bpf_reoffload()
673 &cls_bpf, cb_priv, &prog->gen_flags, in cls_bpf_reoffload()