Home
last modified time | relevance | path

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

/linux-6.1.9/net/xfrm/
Dxfrm_input.c54 int xfrm_input_register_afinfo(const struct xfrm_input_afinfo *afinfo) in xfrm_input_register_afinfo() argument
58 if (WARN_ON(afinfo->family > AF_INET6)) in xfrm_input_register_afinfo()
62 if (unlikely(xfrm_input_afinfo[afinfo->is_ipip][afinfo->family])) in xfrm_input_register_afinfo()
65 rcu_assign_pointer(xfrm_input_afinfo[afinfo->is_ipip][afinfo->family], afinfo); in xfrm_input_register_afinfo()
71 int xfrm_input_unregister_afinfo(const struct xfrm_input_afinfo *afinfo) in xfrm_input_unregister_afinfo() argument
76 if (likely(xfrm_input_afinfo[afinfo->is_ipip][afinfo->family])) { in xfrm_input_unregister_afinfo()
77 if (unlikely(xfrm_input_afinfo[afinfo->is_ipip][afinfo->family] != afinfo)) in xfrm_input_unregister_afinfo()
80 RCU_INIT_POINTER(xfrm_input_afinfo[afinfo->is_ipip][afinfo->family], NULL); in xfrm_input_unregister_afinfo()
90 const struct xfrm_input_afinfo *afinfo; in xfrm_input_get_afinfo() local
96 afinfo = rcu_dereference(xfrm_input_afinfo[is_ipip][family]); in xfrm_input_get_afinfo()
[all …]
Dxfrm_state.c205 struct xfrm_state_afinfo *afinfo = xfrm_state_get_afinfo(family); in xfrm_register_type() local
208 if (!afinfo) in xfrm_register_type()
218 X(afinfo, type, comp); in xfrm_register_type()
221 X(afinfo, type, ah); in xfrm_register_type()
224 X(afinfo, type, esp); in xfrm_register_type()
227 X(afinfo, type, ipip); in xfrm_register_type()
230 X(afinfo, type, dstopts); in xfrm_register_type()
233 X(afinfo, type, routing); in xfrm_register_type()
236 X(afinfo, type, ipip6); in xfrm_register_type()
251 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()
2350 const struct xfrm_policy_afinfo *afinfo = xfrm_policy_get_afinfo(family); in xfrm_get_saddr() local
2352 if (unlikely(afinfo == NULL)) in xfrm_get_saddr()
[all …]
Dxfrm_output.c893 struct xfrm_state_afinfo *afinfo; in xfrm_local_error() local
903 afinfo = xfrm_state_get_afinfo(proto); in xfrm_local_error()
904 if (afinfo) { in xfrm_local_error()
905 afinfo->local_error(skb, mtu); in xfrm_local_error()
/linux-6.1.9/net/ipv4/
Dudp.c2969 struct udp_seq_afinfo *afinfo; in udp_get_first() local
2973 afinfo = state->bpf_seq_afinfo; in udp_get_first()
2975 afinfo = pde_data(file_inode(seq->file)); in udp_get_first()
2977 for (state->bucket = start; state->bucket <= afinfo->udp_table->mask; in udp_get_first()
2979 struct udp_hslot *hslot = &afinfo->udp_table->hash[state->bucket]; in udp_get_first()
2988 if (afinfo->family == AF_UNSPEC || in udp_get_first()
2989 sk->sk_family == afinfo->family) in udp_get_first()
3003 struct udp_seq_afinfo *afinfo; in udp_get_next() local
3006 afinfo = state->bpf_seq_afinfo; in udp_get_next()
3008 afinfo = pde_data(file_inode(seq->file)); in udp_get_next()
[all …]
Dtcp_ipv4.c2978 const struct tcp_seq_afinfo *afinfo; in seq_file_family() local
2987 afinfo = pde_data(file_inode(seq->file)); in seq_file_family()
2988 return afinfo->family; in seq_file_family()
/linux-6.1.9/include/net/
Dxfrm.h349 int xfrm_policy_register_afinfo(const struct xfrm_policy_afinfo *afinfo, int family);
350 void xfrm_policy_unregister_afinfo(const struct xfrm_policy_afinfo *afinfo);
381 int xfrm_state_register_afinfo(struct xfrm_state_afinfo *afinfo);
382 int xfrm_state_unregister_afinfo(struct xfrm_state_afinfo *afinfo);
393 int xfrm_input_register_afinfo(const struct xfrm_input_afinfo *afinfo);
394 int xfrm_input_unregister_afinfo(const struct xfrm_input_afinfo *afinfo);