Home
last modified time | relevance | path

Searched refs:BPF_F_INGRESS (Results 1 – 14 of 14) sorted by relevance

/openbmc/linux/tools/testing/selftests/bpf/progs/
H A Dempty_skb.c14 ret = bpf_clone_redirect(skb, ifindex, BPF_F_INGRESS); in redirect_ingress()
28 ret = bpf_clone_redirect(skb, ifindex, BPF_F_INGRESS); in tc_redirect_ingress()
H A Dtest_lwt_redirect.c51 return bpf_redirect(target, BPF_F_INGRESS); in test_lwt_redirect_in()
87 return bpf_redirect(target, BPF_F_INGRESS); in test_lwt_redirect_in_nomac()
H A Dtest_sockmap_listen.c82 test_ingress ? BPF_F_INGRESS : 0); in prog_skb_verdict()
85 test_ingress ? BPF_F_INGRESS : 0); in prog_skb_verdict()
H A Dtest_cls_redirect_dynptr.c288 return bpf_redirect(skb->ifindex, BPF_F_INGRESS); in accept_locally()
H A Dtest_cls_redirect.c396 return bpf_redirect(skb->ifindex, BPF_F_INGRESS); in accept_locally()
/openbmc/linux/include/linux/
H A Dskmsg.h227 return msg->flags & BPF_F_INGRESS; in sk_msg_to_ingress()
510 #define BPF_F_PTR_MASK ~(BPF_F_INGRESS | BPF_F_STRPARSER)
528 return sk_redir & BPF_F_INGRESS; in skb_bpf_ingress()
533 skb->_sk_redir |= BPF_F_INGRESS; in skb_bpf_set_ingress()
541 skb->_sk_redir |= BPF_F_INGRESS; in skb_bpf_set_redir()
/openbmc/linux/samples/bpf/
H A 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()
/openbmc/linux/net/core/
H A Dsock_map.c644 if (unlikely(flags & ~(BPF_F_INGRESS))) in BPF_CALL_4()
651 skb_bpf_set_redir(skb, sk, flags & BPF_F_INGRESS); in BPF_CALL_4()
670 if (unlikely(flags & ~(BPF_F_INGRESS))) in BPF_CALL_4()
676 if (!(flags & BPF_F_INGRESS) && !sk_is_tcp(sk)) in BPF_CALL_4()
1248 if (unlikely(flags & ~(BPF_F_INGRESS))) in BPF_CALL_4()
1255 skb_bpf_set_redir(skb, sk, flags & BPF_F_INGRESS); in BPF_CALL_4()
1274 if (unlikely(flags & ~(BPF_F_INGRESS))) in BPF_CALL_4()
1280 if (!(flags & BPF_F_INGRESS) && !sk_is_tcp(sk)) in BPF_CALL_4()
H A Dfilter.c2165 return flags & BPF_F_INGRESS ? in __bpf_redirect_no_mac()
2179 return flags & BPF_F_INGRESS ? in __bpf_redirect_common()
2438 if (unlikely(flags & (~(BPF_F_INGRESS) | BPF_F_REDIRECT_INTERNAL))) in BPF_CALL_3()
2515 if (unlikely(flags & (~(BPF_F_INGRESS) | BPF_F_REDIRECT_INTERNAL))) in BPF_CALL_2()
/openbmc/linux/tools/testing/selftests/net/
H A Dnat6to4.c146 return bpf_redirect(skb->ifindex, BPF_F_INGRESS); in sched_cls_ingress6_nat_6_prog()
/openbmc/linux/Documentation/bpf/
H A Dmap_sockmap.rst93 can be used for redirection. The ``BPF_F_INGRESS`` value in ``flags`` is used
107 can be used for redirection. The ``BPF_F_INGRESS`` value in ``flags`` is used
173 interfaces can be used for redirection. The ``BPF_F_INGRESS`` value in
189 interfaces can be used for redirection. The ``BPF_F_INGRESS`` value in
/openbmc/linux/tools/testing/selftests/bpf/
H A Dtest_sockmap.c1168 int in = BPF_F_INGRESS; in run_options()
1201 int ingress = BPF_F_INGRESS; in run_options()
1231 int ingress = BPF_F_INGRESS; in run_options()
/openbmc/linux/tools/include/uapi/linux/
H A Dbpf.h5909 BPF_F_INGRESS = (1ULL << 0), enumerator
/openbmc/linux/include/uapi/linux/
H A Dbpf.h5909 BPF_F_INGRESS = (1ULL << 0), enumerator