Home
last modified time | relevance | path

Searched refs:bpf (Results 1 – 9 of 9) sorted by relevance

/net/core/
Dlwt_bpf.c117 struct bpf_lwt *bpf; in bpf_input() local
120 bpf = bpf_lwt_lwtunnel(dst->lwtstate); in bpf_input()
121 if (bpf->in.prog) { in bpf_input()
122 ret = run_lwt_bpf(skb, &bpf->in, dst, NO_REDIRECT); in bpf_input()
140 struct bpf_lwt *bpf; in bpf_output() local
143 bpf = bpf_lwt_lwtunnel(dst->lwtstate); in bpf_output()
144 if (bpf->out.prog) { in bpf_output()
145 ret = run_lwt_bpf(skb, &bpf->out, dst, NO_REDIRECT); in bpf_output()
152 bpf->out.name); in bpf_output()
269 struct bpf_lwt *bpf; in bpf_xmit() local
[all …]
Dxdp.c437 struct netdev_bpf *bpf) in xdp_attachment_query() argument
439 bpf->prog_id = info->prog ? info->prog->aux->id : 0; in xdp_attachment_query()
440 bpf->prog_flags = info->prog ? info->flags : 0; in xdp_attachment_query()
446 struct netdev_bpf *bpf) in xdp_attachment_flags_ok() argument
448 if (info->prog && (bpf->flags ^ info->flags) & XDP_FLAGS_MODES) { in xdp_attachment_flags_ok()
449 NL_SET_ERR_MSG(bpf->extack, in xdp_attachment_flags_ok()
458 struct netdev_bpf *bpf) in xdp_attachment_setup() argument
462 info->prog = bpf->prog; in xdp_attachment_setup()
463 info->flags = bpf->flags; in xdp_attachment_setup()
Dsock_map.c506 tcb->bpf.flags = flags; in BPF_CALL_4()
507 tcb->bpf.sk_redir = __sock_map_lookup_elem(map, key); in BPF_CALL_4()
508 if (!tcb->bpf.sk_redir) in BPF_CALL_4()
994 tcb->bpf.flags = flags; in BPF_CALL_4()
995 tcb->bpf.sk_redir = __sock_hash_lookup_elem(map, key); in BPF_CALL_4()
996 if (!tcb->bpf.sk_redir) in BPF_CALL_4()
Dskmsg.c824 tcp->bpf.flags |= BPF_F_INGRESS; in sk_psock_verdict_apply()
Dfilter.c8450 off += offsetof(struct tcp_skb_cb, bpf.data_end); in sk_skb_convert_ctx_access()
/net/xdp/
Dxdp_umem.c94 struct netdev_bpf bpf; in xdp_umem_assign_dev() local
135 bpf.command = XDP_SETUP_XSK_UMEM; in xdp_umem_assign_dev()
136 bpf.xsk.umem = umem; in xdp_umem_assign_dev()
137 bpf.xsk.queue_id = queue_id; in xdp_umem_assign_dev()
139 err = dev->netdev_ops->ndo_bpf(dev, &bpf); in xdp_umem_assign_dev()
156 struct netdev_bpf bpf; in xdp_umem_clear_dev() local
165 bpf.command = XDP_SETUP_XSK_UMEM; in xdp_umem_clear_dev()
166 bpf.xsk.umem = NULL; in xdp_umem_clear_dev()
167 bpf.xsk.queue_id = umem->queue_id; in xdp_umem_clear_dev()
169 err = umem->dev->netdev_ops->ndo_bpf(umem->dev, &bpf); in xdp_umem_clear_dev()
/net/ipv6/
Dseg6_local.c56 struct bpf_lwt_prog bpf; member
516 ret = bpf_prog_run_save_cb(slwt->bpf.prog, skb); in input_action_end_bpf()
841 slwt->bpf.name = nla_memdup(tb[SEG6_LOCAL_BPF_PROG_NAME], GFP_KERNEL); in parse_nla_bpf()
842 if (!slwt->bpf.name) in parse_nla_bpf()
848 kfree(slwt->bpf.name); in parse_nla_bpf()
852 slwt->bpf.prog = p; in parse_nla_bpf()
860 if (!slwt->bpf.prog) in put_nla_bpf()
867 if (nla_put_u32(skb, SEG6_LOCAL_BPF_PROG, slwt->bpf.prog->aux->id)) in put_nla_bpf()
870 if (slwt->bpf.name && in put_nla_bpf()
871 nla_put_string(skb, SEG6_LOCAL_BPF_PROG_NAME, slwt->bpf.name)) in put_nla_bpf()
[all …]
/net/
DMakefile16 obj-$(CONFIG_NET) += ethernet/ 802/ sched/ netlink/ bpf/
/net/netfilter/
DKconfig1130 tristate '"bpf" match support'