Home
last modified time | relevance | path

Searched refs:netns_id (Results 1 – 7 of 7) sorted by relevance

/linux-6.12.1/net/xfrm/
Dxfrm_state_bpf.c37 s32 netns_id; member
79 if (unlikely(opts->netns_id < BPF_F_CURRENT_NETNS)) { in bpf_xdp_get_xfrm_state()
84 if (opts->netns_id >= 0) { in bpf_xdp_get_xfrm_state()
85 net = get_net_ns_by_id(net, opts->netns_id); in bpf_xdp_get_xfrm_state()
95 if (opts->netns_id >= 0) in bpf_xdp_get_xfrm_state()
/linux-6.12.1/net/netfilter/
Dnf_conntrack_bpf.c54 s32 netns_id; member
129 if (unlikely(opts->netns_id < BPF_F_CURRENT_NETNS)) in __bpf_nf_ct_alloc_entry()
142 if (opts->netns_id >= 0) { in __bpf_nf_ct_alloc_entry()
143 net = get_net_ns_by_id(net, opts->netns_id); in __bpf_nf_ct_alloc_entry()
166 if (opts->netns_id >= 0) in __bpf_nf_ct_alloc_entry()
196 if (unlikely(opts->netns_id < BPF_F_CURRENT_NETNS)) in __bpf_nf_ct_lookup()
204 if (opts->netns_id >= 0) { in __bpf_nf_ct_lookup()
205 net = get_net_ns_by_id(net, opts->netns_id); in __bpf_nf_ct_lookup()
220 if (opts->netns_id >= 0) in __bpf_nf_ct_lookup()
/linux-6.12.1/tools/testing/selftests/bpf/progs/
Dtest_bpf_nf.c55 s32 netns_id; member
63 s32 netns_id; member
96 struct bpf_ct_opts___local opts_def = { .l4proto = IPPROTO_TCP, .netns_id = -1 }; in nf_ct_test()
118 opts_def.netns_id = -2; in nf_ct_test()
121 opts_def.netns_id = -1; in nf_ct_test()
143 opts_def.netns_id = 0xf00f; in nf_ct_test()
146 opts_def.netns_id = -1; in nf_ct_test()
251 struct bpf_ct_opts___new opts_def = { .l4proto = IPPROTO_TCP, .netns_id = -1 }; in nf_ct_opts_new_test()
Dtest_bpf_nf_fail.c11 s32 netns_id; member
Dxdp_synproxy_kern.c90 s32 netns_id; member
434 .netns_id = BPF_F_CURRENT_NETNS, in tcp_lookup()
Dtest_tunnel_kern.c1006 opts.netns_id = BPF_F_CURRENT_NETNS; in xfrm_get_state_xdp()
/linux-6.12.1/net/core/
Dfilter.c6717 struct net *caller_net, u32 ifindex, u8 proto, u64 netns_id, in __bpf_skc_lookup() argument
6731 if (unlikely(flags || !((s32)netns_id < 0 || netns_id <= S32_MAX))) in __bpf_skc_lookup()
6741 if ((s32)netns_id < 0) { in __bpf_skc_lookup()
6745 net = get_net_ns_by_id(caller_net, netns_id); in __bpf_skc_lookup()
6758 struct net *caller_net, u32 ifindex, u8 proto, u64 netns_id, in __bpf_sk_lookup() argument
6762 ifindex, proto, netns_id, flags, in __bpf_sk_lookup()
6789 u8 proto, u64 netns_id, u64 flags) in bpf_skc_lookup() argument
6803 netns_id, flags, -1); in bpf_skc_lookup()
6808 u8 proto, u64 netns_id, u64 flags) in bpf_sk_lookup() argument
6810 struct sock *sk = bpf_skc_lookup(skb, tuple, len, proto, netns_id, in bpf_sk_lookup()
[all …]