Lines Matching refs:xdp_prog
211 struct bpf_prog __rcu *xdp_prog; member
813 if (rtnl_dereference(tun->xdp_prog)) in tun_attach()
1147 old_prog = rtnl_dereference(tun->xdp_prog); in tun_xdp_set()
1148 rcu_assign_pointer(tun->xdp_prog, prog); in tun_xdp_set()
1555 static int tun_xdp_act(struct tun_struct *tun, struct bpf_prog *xdp_prog, in tun_xdp_act() argument
1562 err = xdp_do_redirect(tun->dev, xdp, xdp_prog); in tun_xdp_act()
1577 trace_xdp_exception(tun->dev, xdp_prog, act); in tun_xdp_act()
1594 struct bpf_prog *xdp_prog; in tun_build_skb() local
1602 xdp_prog = rcu_dereference(tun->xdp_prog); in tun_build_skb()
1603 if (xdp_prog) in tun_build_skb()
1623 if (hdr->gso_type || !xdp_prog) { in tun_build_skb()
1633 xdp_prog = rcu_dereference(tun->xdp_prog); in tun_build_skb()
1634 if (xdp_prog) { in tun_build_skb()
1645 act = bpf_prog_run_xdp(xdp_prog, &xdp); in tun_build_skb()
1650 err = tun_xdp_act(tun, xdp_prog, &xdp, act); in tun_build_skb()
1867 struct bpf_prog *xdp_prog; in tun_get_user() local
1872 xdp_prog = rcu_dereference(tun->xdp_prog); in tun_get_user()
1873 if (xdp_prog) { in tun_get_user()
1874 ret = do_xdp_generic(xdp_prog, skb); in tun_get_user()
2382 struct bpf_prog *xdp_prog; in tun_xdp_one() local
2390 xdp_prog = rcu_dereference(tun->xdp_prog); in tun_xdp_one()
2391 if (xdp_prog) { in tun_xdp_one()
2400 act = bpf_prog_run_xdp(xdp_prog, xdp); in tun_xdp_one()
2401 err = tun_xdp_act(tun, xdp_prog, xdp, act); in tun_xdp_one()
2451 err = do_xdp_generic(xdp_prog, skb); in tun_xdp_one()