Home
last modified time | relevance | path

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

/openbmc/linux/net/netfilter/
H A Dnf_conntrack_bpf.c50 s32 netns_id; member
114 if (unlikely(opts->netns_id < BPF_F_CURRENT_NETNS)) in __bpf_nf_ct_alloc_entry()
127 if (opts->netns_id >= 0) { in __bpf_nf_ct_alloc_entry()
128 net = get_net_ns_by_id(net, opts->netns_id); in __bpf_nf_ct_alloc_entry()
142 if (opts->netns_id >= 0) in __bpf_nf_ct_alloc_entry()
163 if (unlikely(opts->netns_id < BPF_F_CURRENT_NETNS)) in __bpf_nf_ct_lookup()
171 if (opts->netns_id >= 0) { in __bpf_nf_ct_lookup()
172 net = get_net_ns_by_id(net, opts->netns_id); in __bpf_nf_ct_lookup()
178 if (opts->netns_id >= 0) in __bpf_nf_ct_lookup()
/openbmc/linux/tools/testing/selftests/bpf/progs/
H A Dtest_bpf_nf.c45 s32 netns_id; member
75 struct bpf_ct_opts___local opts_def = { .l4proto = IPPROTO_TCP, .netns_id = -1 }; in nf_ct_test()
97 opts_def.netns_id = -2; in nf_ct_test()
100 opts_def.netns_id = -1; in nf_ct_test()
122 opts_def.netns_id = 0xf00f; in nf_ct_test()
125 opts_def.netns_id = -1; in nf_ct_test()
H A Dtest_bpf_nf_fail.c10 s32 netns_id; member
H A Dxdp_synproxy_kern.c87 s32 netns_id; member
431 .netns_id = BPF_F_CURRENT_NETNS, in tcp_lookup()
/openbmc/linux/net/core/
H A Dfilter.c6679 struct net *caller_net, u32 ifindex, u8 proto, u64 netns_id, in __bpf_skc_lookup() argument
6693 if (unlikely(flags || !((s32)netns_id < 0 || netns_id <= S32_MAX))) in __bpf_skc_lookup()
6703 if ((s32)netns_id < 0) { in __bpf_skc_lookup()
6707 net = get_net_ns_by_id(caller_net, netns_id); in __bpf_skc_lookup()
6720 struct net *caller_net, u32 ifindex, u8 proto, u64 netns_id, in __bpf_sk_lookup() argument
6724 ifindex, proto, netns_id, flags, in __bpf_sk_lookup()
6751 u8 proto, u64 netns_id, u64 flags) in bpf_skc_lookup() argument
6765 netns_id, flags, -1); in bpf_skc_lookup()
6770 u8 proto, u64 netns_id, u64 flags) in bpf_sk_lookup() argument
6772 struct sock *sk = bpf_skc_lookup(skb, tuple, len, proto, netns_id, in bpf_sk_lookup()
[all …]