Lines Matching refs:cls_bpf
121 struct tc_cls_bpf_offload *cls_bpf = type_data; in nsim_bpf_setup_tc_block_cb() local
122 struct bpf_prog *prog = cls_bpf->prog; in nsim_bpf_setup_tc_block_cb()
127 NSIM_EA(cls_bpf->common.extack, in nsim_bpf_setup_tc_block_cb()
132 if (!tc_cls_can_offload_and_chain0(ns->netdev, &cls_bpf->common)) in nsim_bpf_setup_tc_block_cb()
135 if (cls_bpf->common.protocol != htons(ETH_P_ALL)) { in nsim_bpf_setup_tc_block_cb()
136 NSIM_EA(cls_bpf->common.extack, in nsim_bpf_setup_tc_block_cb()
142 NSIM_EA(cls_bpf->common.extack, in nsim_bpf_setup_tc_block_cb()
148 NSIM_EA(cls_bpf->common.extack, in nsim_bpf_setup_tc_block_cb()
153 if (cls_bpf->command != TC_CLSBPF_OFFLOAD) in nsim_bpf_setup_tc_block_cb()
156 oldprog = cls_bpf->oldprog; in nsim_bpf_setup_tc_block_cb()
161 if (!cls_bpf->prog) in nsim_bpf_setup_tc_block_cb()
164 NSIM_EA(cls_bpf->common.extack, in nsim_bpf_setup_tc_block_cb()
170 return nsim_bpf_offload(ns, cls_bpf->prog, oldprog); in nsim_bpf_setup_tc_block_cb()