Home
last modified time | relevance | path

Searched refs:xfrm_state (Results 1 – 25 of 56) sorted by relevance

123

/kernel/linux/linux-5.10/include/net/
Dxfrm.h149 struct xfrm_state { struct
209 struct xfrm_state *tunnel; argument
270 static inline struct net *xs_net(struct xfrm_state *x) in xs_net() argument
305 void (*advance)(struct xfrm_state *x, __be32 net_seq);
306 int (*check)(struct xfrm_state *x,
309 int (*recheck)(struct xfrm_state *x,
312 void (*notify)(struct xfrm_state *x, int event);
313 int (*overflow)(struct xfrm_state *x, struct sk_buff *skb);
348 void km_state_notify(struct xfrm_state *x, const struct km_event *c);
351 int km_query(struct xfrm_state *x, struct xfrm_tmpl *t,
[all …]
Dipcomp.h18 struct xfrm_state;
20 int ipcomp_input(struct xfrm_state *x, struct sk_buff *skb);
21 int ipcomp_output(struct xfrm_state *x, struct sk_buff *skb);
22 void ipcomp_destroy(struct xfrm_state *x);
23 int ipcomp_init_state(struct xfrm_state *x);
Desp.h45 int esp_output_head(struct xfrm_state *x, struct sk_buff *skb, struct esp_info *esp);
46 int esp_output_tail(struct xfrm_state *x, struct sk_buff *skb, struct esp_info *esp);
48 int esp6_output_head(struct xfrm_state *x, struct sk_buff *skb, struct esp_info *esp);
49 int esp6_output_tail(struct xfrm_state *x, struct sk_buff *skb, struct esp_info *esp);
/kernel/linux/linux-5.10/net/xfrm/
Dxfrm_state.c52 static inline bool xfrm_state_hold_rcu(struct xfrm_state __rcu *x) in xfrm_state_hold_rcu()
88 struct xfrm_state *x; in xfrm_hash_transfer()
175 int __xfrm_state_delete(struct xfrm_state *x);
177 int km_query(struct xfrm_state *x, struct xfrm_tmpl *t, struct xfrm_policy *pol);
179 void km_state_expired(struct xfrm_state *x, int hard, u32 portid);
473 void xfrm_state_free(struct xfrm_state *x) in xfrm_state_free()
479 static void ___xfrm_state_destroy(struct xfrm_state *x) in ___xfrm_state_destroy()
506 struct xfrm_state *x; in xfrm_state_gc_task()
522 struct xfrm_state *x = container_of(me, struct xfrm_state, mtimer); in xfrm_timer_handler()
610 struct xfrm_state *xfrm_state_alloc(struct net *net) in xfrm_state_alloc()
[all …]
Dxfrm_replay.c12 u32 xfrm_replay_seqhi(struct xfrm_state *x, __be32 net_seq) in xfrm_replay_seqhi()
38 static void xfrm_replay_notify(struct xfrm_state *x, int event) in xfrm_replay_notify()
84 static int xfrm_replay_overflow(struct xfrm_state *x, struct sk_buff *skb) in xfrm_replay_overflow()
107 static int xfrm_replay_check(struct xfrm_state *x, in xfrm_replay_check()
139 static void xfrm_replay_advance(struct xfrm_state *x, __be32 net_seq) in xfrm_replay_advance()
163 static int xfrm_replay_overflow_bmp(struct xfrm_state *x, struct sk_buff *skb) in xfrm_replay_overflow_bmp()
187 static int xfrm_replay_check_bmp(struct xfrm_state *x, in xfrm_replay_check_bmp()
231 static void xfrm_replay_advance_bmp(struct xfrm_state *x, __be32 net_seq) in xfrm_replay_advance_bmp()
279 static void xfrm_replay_notify_bmp(struct xfrm_state *x, int event) in xfrm_replay_notify_bmp()
330 static void xfrm_replay_notify_esn(struct xfrm_state *x, int event) in xfrm_replay_notify_esn()
[all …]
Dxfrm_output.c28 static int xfrm_inner_extract_output(struct xfrm_state *x, struct sk_buff *skb);
64 static int xfrm4_transport_output(struct xfrm_state *x, struct sk_buff *skb) in xfrm4_transport_output()
85 static int xfrm6_transport_output(struct xfrm_state *x, struct sk_buff *skb) in xfrm6_transport_output()
116 static int xfrm6_ro_output(struct xfrm_state *x, struct sk_buff *skb) in xfrm6_ro_output()
148 static int xfrm4_beet_encap_add(struct xfrm_state *x, struct sk_buff *skb) in xfrm4_beet_encap_add()
197 static int xfrm4_tunnel_encap_add(struct xfrm_state *x, struct sk_buff *skb) in xfrm4_tunnel_encap_add()
242 static int xfrm6_tunnel_encap_add(struct xfrm_state *x, struct sk_buff *skb) in xfrm6_tunnel_encap_add()
277 static int xfrm6_beet_encap_add(struct xfrm_state *x, struct sk_buff *skb) in xfrm6_beet_encap_add()
328 static int xfrm4_prepare_output(struct xfrm_state *x, struct sk_buff *skb) in xfrm4_prepare_output()
350 static int xfrm6_prepare_output(struct xfrm_state *x, struct sk_buff *skb) in xfrm6_prepare_output()
[all …]
Dxfrm_ipcomp.c38 static int ipcomp_decompress(struct xfrm_state *x, struct sk_buff *skb) in ipcomp_decompress()
106 int ipcomp_input(struct xfrm_state *x, struct sk_buff *skb) in ipcomp_input()
134 static int ipcomp_compress(struct xfrm_state *x, struct sk_buff *skb) in ipcomp_compress()
167 int ipcomp_output(struct xfrm_state *x, struct sk_buff *skb) in ipcomp_output()
324 void ipcomp_destroy(struct xfrm_state *x) in ipcomp_destroy()
337 int ipcomp_init_state(struct xfrm_state *x) in ipcomp_init_state()
Dxfrm_device.c22 static void __xfrm_transport_prep(struct xfrm_state *x, struct sk_buff *skb, in __xfrm_transport_prep()
34 static void __xfrm_mode_tunnel_prep(struct xfrm_state *x, struct sk_buff *skb, in __xfrm_mode_tunnel_prep()
47 static void __xfrm_mode_beet_prep(struct xfrm_state *x, struct sk_buff *skb, in __xfrm_mode_beet_prep()
67 static void xfrm_outer_mode_prep(struct xfrm_state *x, struct sk_buff *skb) in xfrm_outer_mode_prep()
104 struct xfrm_state *x; in validate_xmit_xfrm()
209 int xfrm_dev_state_add(struct net *net, struct xfrm_state *x, in xfrm_dev_state_add()
282 bool xfrm_dev_offload_ok(struct sk_buff *skb, struct xfrm_state *x) in xfrm_dev_offload_ok()
/kernel/linux/linux-5.10/security/selinux/include/
Dxfrm.h20 int selinux_xfrm_state_alloc(struct xfrm_state *x,
22 int selinux_xfrm_state_alloc_acquire(struct xfrm_state *x,
24 void selinux_xfrm_state_free(struct xfrm_state *x);
25 int selinux_xfrm_state_delete(struct xfrm_state *x);
27 int selinux_xfrm_state_pol_flow_match(struct xfrm_state *x,
/kernel/linux/linux-5.10/security/selinux/
Dxfrm.c65 static inline int selinux_authorizable_xfrm(struct xfrm_state *x) in selinux_authorizable_xfrm()
176 int selinux_xfrm_state_pol_flow_match(struct xfrm_state *x, in selinux_xfrm_state_pol_flow_match()
215 struct xfrm_state *x; in selinux_xfrm_skb_sid_egress()
236 struct xfrm_state *x = sp->xvec[i]; in selinux_xfrm_skb_sid_ingress()
333 int selinux_xfrm_state_alloc(struct xfrm_state *x, in selinux_xfrm_state_alloc()
343 int selinux_xfrm_state_alloc_acquire(struct xfrm_state *x, in selinux_xfrm_state_alloc_acquire()
384 void selinux_xfrm_state_free(struct xfrm_state *x) in selinux_xfrm_state_free()
392 int selinux_xfrm_state_delete(struct xfrm_state *x) in selinux_xfrm_state_delete()
413 struct xfrm_state *x = sp->xvec[i]; in selinux_xfrm_sock_rcv_skb()
460 struct xfrm_state *x = iter->xfrm; in selinux_xfrm_postroute_last()
/kernel/linux/linux-5.10/net/ipv6/
Dipcomp6.c52 struct xfrm_state *x; in ipcomp6_err()
74 static struct xfrm_state *ipcomp6_tunnel_create(struct xfrm_state *x) in ipcomp6_tunnel_create()
77 struct xfrm_state *t = NULL; in ipcomp6_tunnel_create()
111 static int ipcomp6_tunnel_attach(struct xfrm_state *x) in ipcomp6_tunnel_attach()
115 struct xfrm_state *t = NULL; in ipcomp6_tunnel_attach()
139 static int ipcomp6_init_state(struct xfrm_state *x) in ipcomp6_init_state()
Dmip6.c119 static int mip6_destopt_input(struct xfrm_state *x, struct sk_buff *skb) in mip6_destopt_input()
138 static int mip6_destopt_output(struct xfrm_state *x, struct sk_buff *skb) in mip6_destopt_output()
196 static int mip6_destopt_reject(struct xfrm_state *x, struct sk_buff *skb, in mip6_destopt_reject()
250 static int mip6_destopt_offset(struct xfrm_state *x, struct sk_buff *skb, in mip6_destopt_offset()
298 static int mip6_destopt_init_state(struct xfrm_state *x) in mip6_destopt_init_state()
322 static void mip6_destopt_destroy(struct xfrm_state *x) in mip6_destopt_destroy()
339 static int mip6_rthdr_input(struct xfrm_state *x, struct sk_buff *skb) in mip6_rthdr_input()
357 static int mip6_rthdr_output(struct xfrm_state *x, struct sk_buff *skb) in mip6_rthdr_output()
386 static int mip6_rthdr_offset(struct xfrm_state *x, struct sk_buff *skb, in mip6_rthdr_offset()
433 static int mip6_rthdr_init_state(struct xfrm_state *x) in mip6_rthdr_init_state()
[all …]
Desp6_offload.c54 struct xfrm_state *x; in esp6_gro_receive()
119 static void esp6_gso_encap(struct xfrm_state *x, struct sk_buff *skb) in esp6_gso_encap()
143 static struct sk_buff *xfrm6_tunnel_gso_segment(struct xfrm_state *x, in xfrm6_tunnel_gso_segment()
151 static struct sk_buff *xfrm6_transport_gso_segment(struct xfrm_state *x, in xfrm6_transport_gso_segment()
167 static struct sk_buff *xfrm6_beet_gso_segment(struct xfrm_state *x, in xfrm6_beet_gso_segment()
209 static struct sk_buff *xfrm6_outer_mode_gso_segment(struct xfrm_state *x, in xfrm6_outer_mode_gso_segment()
228 struct xfrm_state *x; in esp6_gso_segment()
268 static int esp6_input_tail(struct xfrm_state *x, struct sk_buff *skb) in esp6_input_tail()
282 static int esp6_xmit(struct xfrm_state *x, struct sk_buff *skb, netdev_features_t features) in esp6_xmit()
Desp6.c115 static void esp_ssg_unref(struct xfrm_state *x, void *tmp) in esp_ssg_unref()
152 static struct sock *esp6_find_tcp_sk(struct xfrm_state *x) in esp6_find_tcp_sk()
208 static int esp_output_tcp_finish(struct xfrm_state *x, struct sk_buff *skb) in esp_output_tcp_finish()
236 struct xfrm_state *x = dst->xfrm; in esp_output_tcp_encap_cb()
241 static int esp_output_tail_tcp(struct xfrm_state *x, struct sk_buff *skb) in esp_output_tail_tcp()
256 static int esp_output_tail_tcp(struct xfrm_state *x, struct sk_buff *skb) in esp_output_tail_tcp()
286 struct xfrm_state *x; in esp_output_done()
342 struct xfrm_state *x, in esp_output_set_esn()
411 static struct ip_esp_hdr *esp6_output_tcp_encap(struct xfrm_state *x, in esp6_output_tcp_encap()
437 static struct ip_esp_hdr *esp6_output_tcp_encap(struct xfrm_state *x, in esp6_output_tcp_encap()
[all …]
/kernel/linux/linux-5.10/net/ipv4/
Dipcomp.c28 struct xfrm_state *x; in ipcomp4_err()
56 static struct xfrm_state *ipcomp_tunnel_create(struct xfrm_state *x) in ipcomp_tunnel_create()
59 struct xfrm_state *t; in ipcomp_tunnel_create()
95 static int ipcomp_tunnel_attach(struct xfrm_state *x) in ipcomp_tunnel_attach()
99 struct xfrm_state *t; in ipcomp_tunnel_attach()
119 static int ipcomp4_init_state(struct xfrm_state *x) in ipcomp4_init_state()
Dxfrm4_tunnel.c16 static int ipip_output(struct xfrm_state *x, struct sk_buff *skb) in ipip_output()
22 static int ipip_xfrm_rcv(struct xfrm_state *x, struct sk_buff *skb) in ipip_xfrm_rcv()
27 static int ipip_init_state(struct xfrm_state *x) in ipip_init_state()
40 static void ipip_destroy(struct xfrm_state *x) in ipip_destroy()
Desp4_offload.c33 struct xfrm_state *x; in esp4_gro_receive()
92 static void esp4_gso_encap(struct xfrm_state *x, struct sk_buff *skb) in esp4_gso_encap()
109 static struct sk_buff *xfrm4_tunnel_gso_segment(struct xfrm_state *x, in xfrm4_tunnel_gso_segment()
117 static struct sk_buff *xfrm4_transport_gso_segment(struct xfrm_state *x, in xfrm4_transport_gso_segment()
133 static struct sk_buff *xfrm4_beet_gso_segment(struct xfrm_state *x, in xfrm4_beet_gso_segment()
171 static struct sk_buff *xfrm4_outer_mode_gso_segment(struct xfrm_state *x, in xfrm4_outer_mode_gso_segment()
190 struct xfrm_state *x; in esp4_gso_segment()
232 static int esp_input_tail(struct xfrm_state *x, struct sk_buff *skb) in esp_input_tail()
246 static int esp_xmit(struct xfrm_state *x, struct sk_buff *skb, netdev_features_t features) in esp_xmit()
Desp4.c98 static void esp_ssg_unref(struct xfrm_state *x, void *tmp) in esp_ssg_unref()
136 static struct sock *esp_find_tcp_sk(struct xfrm_state *x) in esp_find_tcp_sk()
192 static int esp_output_tcp_finish(struct xfrm_state *x, struct sk_buff *skb) in esp_output_tcp_finish()
220 struct xfrm_state *x = dst->xfrm; in esp_output_tcp_encap_cb()
225 static int esp_output_tail_tcp(struct xfrm_state *x, struct sk_buff *skb) in esp_output_tail_tcp()
240 static int esp_output_tail_tcp(struct xfrm_state *x, struct sk_buff *skb) in esp_output_tail_tcp()
253 struct xfrm_state *x; in esp_output_done()
307 struct xfrm_state *x, in esp_output_set_extra()
376 static struct ip_esp_hdr *esp_output_tcp_encap(struct xfrm_state *x, in esp_output_tcp_encap()
402 static struct ip_esp_hdr *esp_output_tcp_encap(struct xfrm_state *x, in esp_output_tcp_encap()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
Dipsec_rxtx.c109 static int mlx5e_ipsec_remove_trailer(struct sk_buff *skb, struct xfrm_state *x) in mlx5e_ipsec_remove_trailer()
168 void mlx5e_ipsec_set_iv_esn(struct sk_buff *skb, struct xfrm_state *x, in mlx5e_ipsec_set_iv_esn()
190 void mlx5e_ipsec_set_iv(struct sk_buff *skb, struct xfrm_state *x, in mlx5e_ipsec_set_iv()
246 struct xfrm_state *x, in mlx5e_ipsec_set_state()
275 struct xfrm_state *x; in mlx5e_ipsec_tx_build_eseg()
322 struct xfrm_state *x; in mlx5e_ipsec_handle_tx_skb()
372 static inline struct xfrm_state *
378 struct xfrm_state *xs; in mlx5e_ipsec_build_sp()
426 struct xfrm_state *xs; in mlx5e_ipsec_handle_rx_skb()
458 struct xfrm_state *xs; in mlx5e_ipsec_offload_handle_rx_skb()
[all …]
Dipsec_rxtx.h49 struct xfrm_state *x;
62 void mlx5e_ipsec_set_iv_esn(struct sk_buff *skb, struct xfrm_state *x,
64 void mlx5e_ipsec_set_iv(struct sk_buff *skb, struct xfrm_state *x,
Dipsec.c45 static struct mlx5e_ipsec_sa_entry *to_ipsec_sa_entry(struct xfrm_state *x) in to_ipsec_sa_entry()
60 struct xfrm_state *mlx5e_ipsec_sadb_rx_lookup(struct mlx5e_ipsec *ipsec, in mlx5e_ipsec_sadb_rx_lookup()
64 struct xfrm_state *ret = NULL; in mlx5e_ipsec_sadb_rx_lookup()
151 struct xfrm_state *x = sa_entry->x; in mlx5e_ipsec_build_accel_xfrm_attrs()
210 static inline int mlx5e_xfrm_validate_state(struct xfrm_state *x) in mlx5e_xfrm_validate_state()
308 static int mlx5e_xfrm_add_state(struct xfrm_state *x) in mlx5e_xfrm_add_state()
385 static void mlx5e_xfrm_del_state(struct xfrm_state *x) in mlx5e_xfrm_del_state()
396 static void mlx5e_xfrm_free_state(struct xfrm_state *x) in mlx5e_xfrm_free_state()
461 static bool mlx5e_ipsec_offload_ok(struct sk_buff *skb, struct xfrm_state *x) in mlx5e_ipsec_offload_ok()
498 static void mlx5e_xfrm_advance_esn_state(struct xfrm_state *x) in mlx5e_xfrm_advance_esn_state()
Dipsec.h109 struct xfrm_state *x;
113 void (*set_iv_op)(struct sk_buff *skb, struct xfrm_state *x,
124 struct xfrm_state *mlx5e_ipsec_sadb_rx_lookup(struct mlx5e_ipsec *dev,
/kernel/linux/linux-5.10/drivers/net/ethernet/chelsio/inline_crypto/ch_ipsec/
Dchcr_ipsec.c75 static bool ch_ipsec_offload_ok(struct sk_buff *skb, struct xfrm_state *x);
79 static void ch_ipsec_advance_esn_state(struct xfrm_state *x);
80 static void ch_ipsec_xfrm_free_state(struct xfrm_state *x);
81 static void ch_ipsec_xfrm_del_state(struct xfrm_state *x);
82 static int ch_ipsec_xfrm_add_state(struct xfrm_state *x);
144 static int ch_ipsec_setauthsize(struct xfrm_state *x, in ch_ipsec_setauthsize()
168 static int ch_ipsec_setkey(struct xfrm_state *x, in ch_ipsec_setkey()
231 static int ch_ipsec_xfrm_add_state(struct xfrm_state *x) in ch_ipsec_xfrm_add_state()
305 static void ch_ipsec_xfrm_del_state(struct xfrm_state *x) in ch_ipsec_xfrm_del_state()
312 static void ch_ipsec_xfrm_free_state(struct xfrm_state *x) in ch_ipsec_xfrm_free_state()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/ixgbevf/
Dipsec.c19 struct xfrm_state *xs) in ixgbevf_ipsec_set_pf_sa()
178 struct xfrm_state *ixgbevf_ipsec_find_rx_state(struct ixgbevf_ipsec *ipsec, in ixgbevf_ipsec_find_rx_state()
182 struct xfrm_state *ret = NULL; in ixgbevf_ipsec_find_rx_state()
211 static int ixgbevf_ipsec_parse_proto_keys(struct xfrm_state *xs, in ixgbevf_ipsec_parse_proto_keys()
261 static int ixgbevf_ipsec_add_sa(struct xfrm_state *xs) in ixgbevf_ipsec_add_sa()
387 static void ixgbevf_ipsec_del_sa(struct xfrm_state *xs) in ixgbevf_ipsec_del_sa()
430 static bool ixgbevf_ipsec_offload_ok(struct sk_buff *skb, struct xfrm_state *xs) in ixgbevf_ipsec_offload_ok()
463 struct xfrm_state *xs; in ixgbevf_ipsec_tx()
559 struct xfrm_state *xs = NULL; in ixgbevf_ipsec_rx()
/kernel/linux/linux-5.10/drivers/net/netdevsim/
Dipsec.c84 static int nsim_ipsec_parse_proto_keys(struct xfrm_state *xs, in nsim_ipsec_parse_proto_keys()
128 static int nsim_ipsec_add_sa(struct xfrm_state *xs) in nsim_ipsec_add_sa()
195 static void nsim_ipsec_del_sa(struct xfrm_state *xs) in nsim_ipsec_del_sa()
212 static bool nsim_ipsec_offload_ok(struct sk_buff *skb, struct xfrm_state *xs) in nsim_ipsec_offload_ok()
232 struct xfrm_state *xs; in nsim_ipsec_tx()

123