Home
last modified time | relevance | path

Searched refs:bpf (Results 1 – 7 of 7) 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.c497 struct netdev_bpf *bpf) in xdp_attachment_setup() argument
501 info->prog = bpf->prog; in xdp_attachment_setup()
502 info->flags = bpf->flags; in xdp_attachment_setup()
Dflow_dissector.c90 if (rcu_access_pointer(ns->bpf.run_array[type])) in flow_dissector_bpf_prog_attach_check()
97 if (rcu_access_pointer(init_net.bpf.run_array[type])) in flow_dissector_bpf_prog_attach_check()
991 run_array = rcu_dereference(init_net.bpf.run_array[type]); in __skb_flow_dissect()
993 run_array = rcu_dereference(net->bpf.run_array[type]); in __skb_flow_dissect()
/net/xdp/
Dxsk_buff_pool.c105 struct netdev_bpf bpf; in xp_disable_drv_zc() local
111 bpf.command = XDP_SETUP_XSK_POOL; in xp_disable_drv_zc()
112 bpf.xsk.pool = NULL; in xp_disable_drv_zc()
113 bpf.xsk.queue_id = pool->queue_id; in xp_disable_drv_zc()
115 err = pool->netdev->netdev_ops->ndo_bpf(pool->netdev, &bpf); in xp_disable_drv_zc()
126 struct netdev_bpf bpf; in xp_assign_dev() local
166 bpf.command = XDP_SETUP_XSK_POOL; in xp_assign_dev()
167 bpf.xsk.pool = pool; in xp_assign_dev()
168 bpf.xsk.queue_id = queue_id; in xp_assign_dev()
170 err = netdev->netdev_ops->ndo_bpf(netdev, &bpf); in xp_assign_dev()
/net/ipv6/
Dseg6_local.c134 struct bpf_lwt_prog bpf; member
919 ret = bpf_prog_run_save_cb(slwt->bpf.prog, skb); in input_action_end_bpf()
1383 slwt->bpf.name = nla_memdup(tb[SEG6_LOCAL_BPF_PROG_NAME], GFP_KERNEL); in parse_nla_bpf()
1384 if (!slwt->bpf.name) in parse_nla_bpf()
1390 kfree(slwt->bpf.name); in parse_nla_bpf()
1394 slwt->bpf.prog = p; in parse_nla_bpf()
1402 if (!slwt->bpf.prog) in put_nla_bpf()
1409 if (nla_put_u32(skb, SEG6_LOCAL_BPF_PROG, slwt->bpf.prog->aux->id)) in put_nla_bpf()
1412 if (slwt->bpf.name && in put_nla_bpf()
1413 nla_put_string(skb, SEG6_LOCAL_BPF_PROG_NAME, slwt->bpf.name)) in put_nla_bpf()
[all …]
/net/
DMakefile15 obj-y += ethernet/ 802/ sched/ netlink/ bpf/ ethtool/
/net/netfilter/
DKconfig1157 tristate '"bpf" match support'