Home
last modified time | relevance | path

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

/net/core/
Dlwt_bpf.c118 struct bpf_lwt *bpf; in bpf_input() local
121 bpf = bpf_lwt_lwtunnel(dst->lwtstate); in bpf_input()
122 if (bpf->in.prog) { in bpf_input()
123 ret = run_lwt_bpf(skb, &bpf->in, dst, NO_REDIRECT); in bpf_input()
141 struct bpf_lwt *bpf; in bpf_output() local
144 bpf = bpf_lwt_lwtunnel(dst->lwtstate); in bpf_output()
145 if (bpf->out.prog) { in bpf_output()
146 ret = run_lwt_bpf(skb, &bpf->out, dst, NO_REDIRECT); in bpf_output()
153 bpf->out.name); in bpf_output()
270 struct bpf_lwt *bpf; in bpf_xmit() local
[all …]
Dxdp.c531 struct netdev_bpf *bpf) in xdp_attachment_setup() argument
535 info->prog = bpf->prog; in xdp_attachment_setup()
536 info->flags = bpf->flags; in xdp_attachment_setup()
Ddev.h88 typedef int (*bpf_op_t)(struct net_device *dev, struct netdev_bpf *bpf);
Dflow_dissector.c93 if (rcu_access_pointer(ns->bpf.run_array[type])) in flow_dissector_bpf_prog_attach_check()
100 if (rcu_access_pointer(init_net.bpf.run_array[type])) in flow_dissector_bpf_prog_attach_check()
1102 run_array = rcu_dereference(init_net.bpf.run_array[type]); in __skb_flow_dissect()
1104 run_array = rcu_dereference(net->bpf.run_array[type]); in __skb_flow_dissect()
/net/xdp/
Dxsk_buff_pool.c128 struct netdev_bpf bpf; in xp_disable_drv_zc() local
134 bpf.command = XDP_SETUP_XSK_POOL; in xp_disable_drv_zc()
135 bpf.xsk.pool = NULL; in xp_disable_drv_zc()
136 bpf.xsk.queue_id = pool->queue_id; in xp_disable_drv_zc()
138 err = pool->netdev->netdev_ops->ndo_bpf(pool->netdev, &bpf); in xp_disable_drv_zc()
153 struct netdev_bpf bpf; in xp_assign_dev() local
200 bpf.command = XDP_SETUP_XSK_POOL; in xp_assign_dev()
201 bpf.xsk.pool = pool; in xp_assign_dev()
202 bpf.xsk.queue_id = queue_id; in xp_assign_dev()
204 err = netdev->netdev_ops->ndo_bpf(netdev, &bpf); in xp_assign_dev()
/net/ipv6/
Dseg6_local.c195 struct bpf_lwt_prog bpf; member
1433 ret = bpf_prog_run_save_cb(slwt->bpf.prog, skb); in input_action_end_bpf()
1908 slwt->bpf.name = nla_memdup(tb[SEG6_LOCAL_BPF_PROG_NAME], GFP_KERNEL); in parse_nla_bpf()
1909 if (!slwt->bpf.name) in parse_nla_bpf()
1915 kfree(slwt->bpf.name); in parse_nla_bpf()
1919 slwt->bpf.prog = p; in parse_nla_bpf()
1927 if (!slwt->bpf.prog) in put_nla_bpf()
1934 if (nla_put_u32(skb, SEG6_LOCAL_BPF_PROG, slwt->bpf.prog->aux->id)) in put_nla_bpf()
1937 if (slwt->bpf.name && in put_nla_bpf()
1938 nla_put_string(skb, SEG6_LOCAL_BPF_PROG_NAME, slwt->bpf.name)) in put_nla_bpf()
[all …]
/net/mptcp/
DMakefile14 obj-$(CONFIG_BPF_SYSCALL) += bpf.o
/net/
DMakefile15 obj-y += ethernet/ 802/ sched/ netlink/ bpf/ ethtool/
/net/netfilter/
DKconfig1171 tristate '"bpf" match support'