Home
last modified time | relevance | path

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

/linux-6.15/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.c89 test_ingress ? BPF_F_INGRESS : 0); in prog_skb_verdict()
92 test_ingress ? BPF_F_INGRESS : 0); in prog_skb_verdict()
H A Dtest_cls_redirect_dynptr.c290 return bpf_redirect(skb->ifindex, BPF_F_INGRESS); in accept_locally()
H A Dtest_cls_redirect.c399 return bpf_redirect(skb->ifindex, BPF_F_INGRESS); in accept_locally()
/linux-6.15/include/linux/
H A Dskmsg.h238 return msg->flags & BPF_F_INGRESS; in sk_msg_to_ingress()
529 #define BPF_F_PTR_MASK ~(BPF_F_INGRESS | BPF_F_STRPARSER)
547 return sk_redir & BPF_F_INGRESS; in skb_bpf_ingress()
552 skb->_sk_redir |= BPF_F_INGRESS; in skb_bpf_set_ingress()
560 skb->_sk_redir |= BPF_F_INGRESS; in skb_bpf_set_redir()
/linux-6.15/samples/bpf/
H A Dtc_l2_redirect_kern.c85 return bpf_redirect(*ifindex, BPF_F_INGRESS); in _l2_to_iptun_ingress_forward()
100 return bpf_redirect(*ifindex, BPF_F_INGRESS); in _l2_to_iptun_ingress_forward()
/linux-6.15/net/core/
H A Dsock_map.c650 if (unlikely(flags & ~(BPF_F_INGRESS))) in BPF_CALL_4()
656 if ((flags & BPF_F_INGRESS) && sk_is_vsock(sk)) in BPF_CALL_4()
659 skb_bpf_set_redir(skb, sk, flags & BPF_F_INGRESS); in BPF_CALL_4()
678 if (unlikely(flags & ~(BPF_F_INGRESS))) in BPF_CALL_4()
684 if (!(flags & BPF_F_INGRESS) && !sk_is_tcp(sk)) in BPF_CALL_4()
1256 if (unlikely(flags & ~(BPF_F_INGRESS))) in BPF_CALL_4()
1262 if ((flags & BPF_F_INGRESS) && sk_is_vsock(sk)) in BPF_CALL_4()
1265 skb_bpf_set_redir(skb, sk, flags & BPF_F_INGRESS); in BPF_CALL_4()
1284 if (unlikely(flags & ~(BPF_F_INGRESS))) in BPF_CALL_4()
1290 if (!(flags & BPF_F_INGRESS) && !sk_is_tcp(sk)) in BPF_CALL_4()
H A Dfilter.c2172 return flags & BPF_F_INGRESS ? in __bpf_redirect_no_mac()
2186 return flags & BPF_F_INGRESS ? in __bpf_redirect_common()
2446 if (unlikely(flags & (~(BPF_F_INGRESS) | BPF_F_REDIRECT_INTERNAL))) in BPF_CALL_3()
2528 if (unlikely(flags & (~(BPF_F_INGRESS) | BPF_F_REDIRECT_INTERNAL))) in BPF_CALL_2()
/linux-6.15/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-6.15/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
/linux-6.15/tools/testing/selftests/bpf/
H A Dtest_sockmap.c1262 int in = BPF_F_INGRESS; in run_options()
1295 int ingress = BPF_F_INGRESS; in run_options()
1325 int ingress = BPF_F_INGRESS; in run_options()
/linux-6.15/tools/include/uapi/linux/
H A Dbpf.h6221 BPF_F_INGRESS = (1ULL << 0), /* used for skb path */ enumerator
6224 #define BPF_F_REDIRECT_FLAGS (BPF_F_INGRESS | BPF_F_BROADCAST | BPF_F_EXCLUDE_INGRESS)
/linux-6.15/include/uapi/linux/
H A Dbpf.h6221 BPF_F_INGRESS = (1ULL << 0), /* used for skb path */ enumerator
6224 #define BPF_F_REDIRECT_FLAGS (BPF_F_INGRESS | BPF_F_BROADCAST | BPF_F_EXCLUDE_INGRESS)