Searched refs:cls_bpf (Results 1 – 8 of 8) sorted by relevance
/kernel/linux/linux-5.10/net/sched/ |
D | cls_bpf.c | 149 struct tc_cls_bpf_offload cls_bpf = {}; in cls_bpf_offload_cmd() local 157 tc_cls_common_offload_init(&cls_bpf.common, tp, obj->gen_flags, extack); in cls_bpf_offload_cmd() 158 cls_bpf.command = TC_CLSBPF_OFFLOAD; in cls_bpf_offload_cmd() 159 cls_bpf.exts = &obj->exts; in cls_bpf_offload_cmd() 160 cls_bpf.prog = prog ? prog->filter : NULL; in cls_bpf_offload_cmd() 161 cls_bpf.oldprog = oldprog ? oldprog->filter : NULL; in cls_bpf_offload_cmd() 162 cls_bpf.name = obj->bpf_name; in cls_bpf_offload_cmd() 163 cls_bpf.exts_integrated = obj->exts_integrated; in cls_bpf_offload_cmd() 166 err = tc_setup_cb_replace(block, tp, TC_SETUP_CLSBPF, &cls_bpf, in cls_bpf_offload_cmd() 172 err = tc_setup_cb_add(block, tp, TC_SETUP_CLSBPF, &cls_bpf, in cls_bpf_offload_cmd() [all …]
|
D | Makefile | 76 obj-$(CONFIG_NET_CLS_BPF) += cls_bpf.o
|
D | Kconfig | 610 be called cls_bpf.
|
/kernel/linux/linux-5.10/drivers/net/ethernet/netronome/nfp/bpf/ |
D | main.c | 108 struct tc_cls_bpf_offload *cls_bpf = type_data; in nfp_bpf_setup_tc_block_cb() local 115 NL_SET_ERR_MSG_MOD(cls_bpf->common.extack, in nfp_bpf_setup_tc_block_cb() 119 if (!tc_cls_can_offload_and_chain0(nn->dp.netdev, &cls_bpf->common)) in nfp_bpf_setup_tc_block_cb() 122 NL_SET_ERR_MSG_MOD(cls_bpf->common.extack, in nfp_bpf_setup_tc_block_cb() 126 if (cls_bpf->common.protocol != htons(ETH_P_ALL)) { in nfp_bpf_setup_tc_block_cb() 127 NL_SET_ERR_MSG_MOD(cls_bpf->common.extack, in nfp_bpf_setup_tc_block_cb() 133 if (!cls_bpf->exts_integrated || in nfp_bpf_setup_tc_block_cb() 134 tcf_exts_has_actions(cls_bpf->exts)) { in nfp_bpf_setup_tc_block_cb() 135 NL_SET_ERR_MSG_MOD(cls_bpf->common.extack, in nfp_bpf_setup_tc_block_cb() 140 if (cls_bpf->command != TC_CLSBPF_OFFLOAD) in nfp_bpf_setup_tc_block_cb() [all …]
|
/kernel/linux/linux-5.10/drivers/net/netdevsim/ |
D | bpf.c | 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() [all …]
|
/kernel/linux/linux-5.10/Documentation/networking/ |
D | filter.rst | 49 in many more places. There's xt_bpf for netfilter, cls_bpf in the kernel 170 xt_bpf and cls_bpf users might have requirements that could result in 363 and cls_bpf understands and can directly be loaded with. Example with above 377 In particular, as usage with xt_bpf or cls_bpf can result in more complex BPF 626 includes seccomp BPF, classic socket filters, cls_bpf traffic classifier, 1263 In cls_bpf and act_bpf programs the verifier allows direct access to the packet
|
/kernel/linux/linux-5.10/Documentation/bpf/ |
D | bpf_devel_QA.rst | 267 A: For UAPI changes related to the XDP or tc layer (e.g. ``cls_bpf``),
|
/kernel/linux/linux-5.10/ |
D | MAINTAINERS | 3272 F: net/sched/cls_bpf.c
|