Home
last modified time | relevance | path

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

/linux/tools/testing/selftests/bpf/progs/
H A 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()
H A 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()
H A Dtest_tc_peer.c40 return bpf_redirect(IFINDEX_SRC, 0); in tc_dst_l3()
H A Dtest_xdp_do_redirect.c62 return bpf_redirect(ifindex_out, 0); in xdp_redirect()
H A Dtest_tc_neigh_fib.c137 return bpf_redirect(fib_params.ifindex, 0); in tc_redir()
H A Dtest_cls_redirect.c399 return bpf_redirect(skb->ifindex, BPF_F_INGRESS); in accept_locally()
526 return bpf_redirect(skb->ifindex, 0); in forward_with_gre()
563 return bpf_redirect(skb->ifindex, 0); in forward_to_next_hop()
H A Dtest_cls_redirect_dynptr.c290 return bpf_redirect(skb->ifindex, BPF_F_INGRESS); in accept_locally()
417 return bpf_redirect(skb->ifindex, 0); in forward_with_gre()
455 return bpf_redirect(skb->ifindex, 0); in forward_to_next_hop()
H A Dtest_l4lb_noinline.c447 return bpf_redirect(ifindex, 0); in process_packet()
H A Dtest_l4lb.c448 return bpf_redirect(ifindex, 0); in process_packet()
H A Dtest_l4lb_noinline_dynptr.c454 return bpf_redirect(ifindex, 0); in process_packet()
H A Dtest_tcp_custom_syncookie.c457 return bpf_redirect(ctx->skb->ifindex, 0); in tcp_handle_syn()
H A Dxdp_synproxy_kern.c859 return bpf_redirect(skb->ifindex, 0); in syncookie_tc()
/linux/samples/bpf/
H A Dtcbpf1_kern.c72 return bpf_redirect(skb->ifindex + 1, 0); in _redirect_xmit()
77 return bpf_redirect(skb->ifindex + 1, 1); in _redirect_recv()
H A 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/tools/testing/selftests/net/
H A Dnat6to4.bpf.c146 return bpf_redirect(skb->ifindex, BPF_F_INGRESS); in sched_cls_ingress6_nat_6_prog()
/linux/net/core/
H A Dfilter.c2515 BPF_CALL_2(bpf_redirect, u32, ifindex, u64, flags) in BPF_CALL_2() argument
2529 .func = bpf_redirect,