Home
last modified time | relevance | path

Searched refs:bpf_redirect (Results 1 – 16 of 16) sorted by relevance

/linux-6.6.21/tools/testing/selftests/bpf/progs/
Dtest_lwt_redirect.c51 return bpf_redirect(target, BPF_F_INGRESS); in test_lwt_redirect_in()
65 return bpf_redirect(target, 0); in test_lwt_redirect_out()
76 return bpf_redirect(target, 0); in test_lwt_redirect_out_nomac()
87 return bpf_redirect(target, BPF_F_INGRESS); in test_lwt_redirect_in_nomac()
Dtest_xdp_redirect.c18 return bpf_redirect(111, 0); in xdp_redirect_to_111()
23 return bpf_redirect(222, 0); in xdp_redirect_to_222()
Dtest_tc_peer.c40 return bpf_redirect(IFINDEX_SRC, 0); in tc_dst_l3()
Dtest_xdp_do_redirect.c62 return bpf_redirect(ifindex_out, 0); in xdp_redirect()
Dtest_tc_neigh_fib.c137 return bpf_redirect(fib_params.ifindex, 0); in tc_redir()
Dtest_cls_redirect_dynptr.c288 return bpf_redirect(skb->ifindex, BPF_F_INGRESS); in accept_locally()
415 return bpf_redirect(skb->ifindex, 0); in forward_with_gre()
453 return bpf_redirect(skb->ifindex, 0); in forward_to_next_hop()
Dtest_cls_redirect.c396 return bpf_redirect(skb->ifindex, BPF_F_INGRESS); in accept_locally()
523 return bpf_redirect(skb->ifindex, 0); in forward_with_gre()
560 return bpf_redirect(skb->ifindex, 0); in forward_to_next_hop()
Dtest_l4lb_noinline.c447 return bpf_redirect(ifindex, 0); in process_packet()
Dtest_l4lb.c448 return bpf_redirect(ifindex, 0); in process_packet()
Dtest_l4lb_noinline_dynptr.c454 return bpf_redirect(ifindex, 0); in process_packet()
Dxdp_synproxy_kern.c857 return bpf_redirect(skb->ifindex, 0); in syncookie_tc()
/linux-6.6.21/samples/bpf/
Dtc_l2_redirect_kern.c88 return bpf_redirect(*ifindex, BPF_F_INGRESS); in _l2_to_iptun_ingress_forward()
103 return bpf_redirect(*ifindex, BPF_F_INGRESS); in _l2_to_iptun_ingress_forward()
147 return bpf_redirect(*ifindex, 0); in _l2_to_iptun_ingress_redirect()
202 return bpf_redirect(*ifindex, 0); in _l2_to_ip6tun_ingress_redirect()
Dtcbpf1_kern.c72 return bpf_redirect(skb->ifindex + 1, 0); in _redirect_xmit()
77 return bpf_redirect(skb->ifindex + 1, 1); in _redirect_recv()
Dtest_lwt_bpf.c181 return bpf_redirect(ifindex, 0); in __do_push_ll_and_redirect()
234 return bpf_redirect(ifindex, 0); in do_fill_garbage_and_redirect()
/linux-6.6.21/tools/testing/selftests/net/
Dnat6to4.c146 return bpf_redirect(skb->ifindex, BPF_F_INGRESS); in sched_cls_ingress6_nat_6_prog()
/linux-6.6.21/net/core/
Dfilter.c2506 BPF_CALL_2(bpf_redirect, u32, ifindex, u64, flags) in BPF_CALL_2() argument
2520 .func = bpf_redirect,