Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/net/xfrm/
Dxfrm_input.c52 int xfrm_input_register_afinfo(const struct xfrm_input_afinfo *afinfo) in xfrm_input_register_afinfo() argument
56 if (WARN_ON(afinfo->family > AF_INET6)) in xfrm_input_register_afinfo()
60 if (unlikely(xfrm_input_afinfo[afinfo->is_ipip][afinfo->family])) in xfrm_input_register_afinfo()
63 rcu_assign_pointer(xfrm_input_afinfo[afinfo->is_ipip][afinfo->family], afinfo); in xfrm_input_register_afinfo()
69 int xfrm_input_unregister_afinfo(const struct xfrm_input_afinfo *afinfo) in xfrm_input_unregister_afinfo() argument
74 if (likely(xfrm_input_afinfo[afinfo->is_ipip][afinfo->family])) { in xfrm_input_unregister_afinfo()
75 if (unlikely(xfrm_input_afinfo[afinfo->is_ipip][afinfo->family] != afinfo)) in xfrm_input_unregister_afinfo()
78 RCU_INIT_POINTER(xfrm_input_afinfo[afinfo->is_ipip][afinfo->family], NULL); in xfrm_input_unregister_afinfo()
88 const struct xfrm_input_afinfo *afinfo; in xfrm_input_get_afinfo() local
94 afinfo = rcu_dereference(xfrm_input_afinfo[is_ipip][family]); in xfrm_input_get_afinfo()
[all …]
Dxfrm_state.c183 struct xfrm_state_afinfo *afinfo = xfrm_state_get_afinfo(family); in xfrm_register_type() local
186 if (!afinfo) in xfrm_register_type()
196 X(afinfo, type, comp); in xfrm_register_type()
199 X(afinfo, type, ah); in xfrm_register_type()
202 X(afinfo, type, esp); in xfrm_register_type()
205 X(afinfo, type, ipip); in xfrm_register_type()
208 X(afinfo, type, dstopts); in xfrm_register_type()
211 X(afinfo, type, routing); in xfrm_register_type()
214 X(afinfo, type, ipip6); in xfrm_register_type()
229 struct xfrm_state_afinfo *afinfo = xfrm_state_get_afinfo(family); in xfrm_unregister_type() local
[all …]
Dxfrm_policy.c237 const struct xfrm_policy_afinfo *afinfo; in xfrm_policy_get_afinfo() local
242 afinfo = rcu_dereference(xfrm_policy_afinfo[family]); in xfrm_policy_get_afinfo()
243 if (unlikely(!afinfo)) in xfrm_policy_get_afinfo()
245 return afinfo; in xfrm_policy_get_afinfo()
259 const struct xfrm_policy_afinfo *afinfo; in __xfrm_dst_lookup() local
262 afinfo = xfrm_policy_get_afinfo(family); in __xfrm_dst_lookup()
263 if (unlikely(afinfo == NULL)) in __xfrm_dst_lookup()
266 dst = afinfo->dst_lookup(net, tos, oif, saddr, daddr, mark); in __xfrm_dst_lookup()
2353 const struct xfrm_policy_afinfo *afinfo = xfrm_policy_get_afinfo(family); in xfrm_get_saddr() local
2355 if (unlikely(afinfo == NULL)) in xfrm_get_saddr()
[all …]
Dxfrm_output.c756 struct xfrm_state_afinfo *afinfo; in xfrm_local_error() local
766 afinfo = xfrm_state_get_afinfo(proto); in xfrm_local_error()
767 if (afinfo) { in xfrm_local_error()
768 afinfo->local_error(skb, mtu); in xfrm_local_error()
/kernel/linux/linux-5.10/net/ipv4/
Dudp.c2887 struct udp_seq_afinfo *afinfo; in udp_get_first() local
2892 afinfo = state->bpf_seq_afinfo; in udp_get_first()
2894 afinfo = PDE_DATA(file_inode(seq->file)); in udp_get_first()
2896 for (state->bucket = start; state->bucket <= afinfo->udp_table->mask; in udp_get_first()
2898 struct udp_hslot *hslot = &afinfo->udp_table->hash[state->bucket]; in udp_get_first()
2907 if (afinfo->family == AF_UNSPEC || in udp_get_first()
2908 sk->sk_family == afinfo->family) in udp_get_first()
2920 struct udp_seq_afinfo *afinfo; in udp_get_next() local
2925 afinfo = state->bpf_seq_afinfo; in udp_get_next()
2927 afinfo = PDE_DATA(file_inode(seq->file)); in udp_get_next()
[all …]
Dtcp_ipv4.c2283 struct tcp_seq_afinfo *afinfo; in listening_get_next() local
2291 afinfo = st->bpf_seq_afinfo; in listening_get_next()
2293 afinfo = PDE_DATA(file_inode(seq->file)); in listening_get_next()
2312 if (afinfo->family == AF_UNSPEC || in listening_get_next()
2313 sk->sk_family == afinfo->family) in listening_get_next()
2350 struct tcp_seq_afinfo *afinfo; in established_get_first() local
2356 afinfo = st->bpf_seq_afinfo; in established_get_first()
2358 afinfo = PDE_DATA(file_inode(seq->file)); in established_get_first()
2372 if ((afinfo->family != AF_UNSPEC && in established_get_first()
2373 sk->sk_family != afinfo->family) || in established_get_first()
[all …]
/kernel/linux/linux-5.10/include/net/
Dxfrm.h344 int xfrm_policy_register_afinfo(const struct xfrm_policy_afinfo *afinfo, int family);
345 void xfrm_policy_unregister_afinfo(const struct xfrm_policy_afinfo *afinfo);
376 int xfrm_state_register_afinfo(struct xfrm_state_afinfo *afinfo);
377 int xfrm_state_unregister_afinfo(struct xfrm_state_afinfo *afinfo);
388 int xfrm_input_register_afinfo(const struct xfrm_input_afinfo *afinfo);
389 int xfrm_input_unregister_afinfo(const struct xfrm_input_afinfo *afinfo);