Home
last modified time | relevance | path

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

123

/Linux-v6.1/include/net/
Dxfrm.h160 struct xfrm_state { struct
221 struct xfrm_state *tunnel; argument
281 static inline struct net *xs_net(struct xfrm_state *x) in xs_net() argument
353 void km_state_notify(struct xfrm_state *x, const struct km_event *c);
356 int km_query(struct xfrm_state *x, struct xfrm_tmpl *t,
358 void km_state_expired(struct xfrm_state *x, int hard, u32 portid);
359 int __xfrm_state_delete(struct xfrm_state *x);
397 void xfrm_state_delete_tunnel(struct xfrm_state *x);
408 int (*init_state)(struct xfrm_state *x,
410 void (*destructor)(struct xfrm_state *);
[all …]
Dipcomp.h20 struct xfrm_state;
22 int ipcomp_input(struct xfrm_state *x, struct sk_buff *skb);
23 int ipcomp_output(struct xfrm_state *x, struct sk_buff *skb);
24 void ipcomp_destroy(struct xfrm_state *x);
25 int ipcomp_init_state(struct xfrm_state *x, struct netlink_ext_ack *extack);
Desp.h8 struct xfrm_state;
44 int esp_output_head(struct xfrm_state *x, struct sk_buff *skb, struct esp_info *esp);
45 int esp_output_tail(struct xfrm_state *x, struct sk_buff *skb, struct esp_info *esp);
47 int esp6_output_head(struct xfrm_state *x, struct sk_buff *skb, struct esp_info *esp);
48 int esp6_output_tail(struct xfrm_state *x, struct sk_buff *skb, struct esp_info *esp);
/Linux-v6.1/net/xfrm/
Dxfrm_state.c53 static inline bool xfrm_state_hold_rcu(struct xfrm_state __rcu *x) in xfrm_state_hold_rcu()
95 struct xfrm_state *x; in xfrm_hash_transfer()
197 int __xfrm_state_delete(struct xfrm_state *x);
199 int km_query(struct xfrm_state *x, struct xfrm_tmpl *t, struct xfrm_policy *pol);
201 void km_state_expired(struct xfrm_state *x, int hard, u32 portid);
495 void xfrm_state_free(struct xfrm_state *x) in xfrm_state_free()
501 static void ___xfrm_state_destroy(struct xfrm_state *x) in ___xfrm_state_destroy()
528 struct xfrm_state *x; in xfrm_state_gc_task()
544 struct xfrm_state *x = container_of(me, struct xfrm_state, mtimer); in xfrm_timer_handler()
632 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_bmp(struct xfrm_state *x, int event);
39 static void xfrm_replay_notify_esn(struct xfrm_state *x, int event);
41 void xfrm_replay_notify(struct xfrm_state *x, int event) in xfrm_replay_notify()
98 static int __xfrm_replay_overflow(struct xfrm_state *x, struct sk_buff *skb) in __xfrm_replay_overflow()
121 static int xfrm_replay_check_legacy(struct xfrm_state *x, in xfrm_replay_check_legacy()
153 static void xfrm_replay_advance_bmp(struct xfrm_state *x, __be32 net_seq);
154 static void xfrm_replay_advance_esn(struct xfrm_state *x, __be32 net_seq);
156 void xfrm_replay_advance(struct xfrm_state *x, __be32 net_seq) in xfrm_replay_advance()
189 static int xfrm_replay_overflow_bmp(struct xfrm_state *x, struct sk_buff *skb) in xfrm_replay_overflow_bmp()
[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()
141 static int xfrm6_hdr_offset(struct xfrm_state *x, struct sk_buff *skb, u8 **prevhdr) in xfrm6_hdr_offset()
162 static int xfrm6_transport_output(struct xfrm_state *x, struct sk_buff *skb) in xfrm6_transport_output()
193 static int xfrm6_ro_output(struct xfrm_state *x, struct sk_buff *skb) in xfrm6_ro_output()
225 static int xfrm4_beet_encap_add(struct xfrm_state *x, struct sk_buff *skb) in xfrm4_beet_encap_add()
274 static int xfrm4_tunnel_encap_add(struct xfrm_state *x, struct sk_buff *skb) in xfrm4_tunnel_encap_add()
320 static int xfrm6_tunnel_encap_add(struct xfrm_state *x, struct sk_buff *skb) in xfrm6_tunnel_encap_add()
355 static int xfrm6_beet_encap_add(struct xfrm_state *x, struct sk_buff *skb) in xfrm6_beet_encap_add()
406 static int xfrm4_prepare_output(struct xfrm_state *x, struct sk_buff *skb) in xfrm4_prepare_output()
[all …]
Dxfrm_ipcomp.c38 static int ipcomp_decompress(struct xfrm_state *x, struct sk_buff *skb) in ipcomp_decompress()
97 int ipcomp_input(struct xfrm_state *x, struct sk_buff *skb) in ipcomp_input()
125 static int ipcomp_compress(struct xfrm_state *x, struct sk_buff *skb) in ipcomp_compress()
158 int ipcomp_output(struct xfrm_state *x, struct sk_buff *skb) in ipcomp_output()
316 void ipcomp_destroy(struct xfrm_state *x) in ipcomp_destroy()
329 int ipcomp_init_state(struct xfrm_state *x, struct netlink_ext_ack *extack) 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()
116 struct xfrm_state *x; in validate_xmit_xfrm()
222 int xfrm_dev_state_add(struct net *net, struct xfrm_state *x, in xfrm_dev_state_add()
311 bool xfrm_dev_offload_ok(struct sk_buff *skb, struct xfrm_state *x) in xfrm_dev_offload_ok()
/Linux-v6.1/security/selinux/include/
Dxfrm.h22 int selinux_xfrm_state_alloc(struct xfrm_state *x,
24 int selinux_xfrm_state_alloc_acquire(struct xfrm_state *x,
26 void selinux_xfrm_state_free(struct xfrm_state *x);
27 int selinux_xfrm_state_delete(struct xfrm_state *x);
29 int selinux_xfrm_state_pol_flow_match(struct xfrm_state *x,
/Linux-v6.1/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()
216 struct xfrm_state *x; in selinux_xfrm_skb_sid_egress()
237 struct xfrm_state *x = sp->xvec[i]; in selinux_xfrm_skb_sid_ingress()
334 int selinux_xfrm_state_alloc(struct xfrm_state *x, in selinux_xfrm_state_alloc()
344 int selinux_xfrm_state_alloc_acquire(struct xfrm_state *x, in selinux_xfrm_state_alloc_acquire()
385 void selinux_xfrm_state_free(struct xfrm_state *x) in selinux_xfrm_state_free()
393 int selinux_xfrm_state_delete(struct xfrm_state *x) in selinux_xfrm_state_delete()
414 struct xfrm_state *x = sp->xvec[i]; in selinux_xfrm_sock_rcv_skb()
461 struct xfrm_state *x = iter->xfrm; in selinux_xfrm_postroute_last()
/Linux-v6.1/net/ipv4/
Dipcomp.c28 struct xfrm_state *x; in ipcomp4_err()
57 static struct xfrm_state *ipcomp_tunnel_create(struct xfrm_state *x) in ipcomp_tunnel_create()
60 struct xfrm_state *t; in ipcomp_tunnel_create()
96 static int ipcomp_tunnel_attach(struct xfrm_state *x) in ipcomp_tunnel_attach()
100 struct xfrm_state *t; in ipcomp_tunnel_attach()
120 static int ipcomp4_init_state(struct xfrm_state *x, in ipcomp4_init_state()
Dxfrm4_tunnel.c14 static int ipip_output(struct xfrm_state *x, struct sk_buff *skb) in ipip_output()
20 static int ipip_xfrm_rcv(struct xfrm_state *x, struct sk_buff *skb) in ipip_xfrm_rcv()
25 static int ipip_init_state(struct xfrm_state *x, struct netlink_ext_ack *extack) in ipip_init_state()
42 static void ipip_destroy(struct xfrm_state *x) in ipip_destroy()
Desp4_offload.c34 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()
119 static struct sk_buff *xfrm4_transport_gso_segment(struct xfrm_state *x, in xfrm4_transport_gso_segment()
135 static struct sk_buff *xfrm4_beet_gso_segment(struct xfrm_state *x, in xfrm4_beet_gso_segment()
176 static struct sk_buff *xfrm4_outer_mode_gso_segment(struct xfrm_state *x, in xfrm4_outer_mode_gso_segment()
195 struct xfrm_state *x; in esp4_gso_segment()
237 static int esp_input_tail(struct xfrm_state *x, struct sk_buff *skb) in esp_input_tail()
251 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()
134 static struct sock *esp_find_tcp_sk(struct xfrm_state *x) in esp_find_tcp_sk()
191 static int esp_output_tcp_finish(struct xfrm_state *x, struct sk_buff *skb) in esp_output_tcp_finish()
219 struct xfrm_state *x = dst->xfrm; in esp_output_tcp_encap_cb()
224 static int esp_output_tail_tcp(struct xfrm_state *x, struct sk_buff *skb) in esp_output_tail_tcp()
239 static int esp_output_tail_tcp(struct xfrm_state *x, struct sk_buff *skb) in esp_output_tail_tcp()
252 struct xfrm_state *x; in esp_output_done()
306 struct xfrm_state *x, in esp_output_set_extra()
375 static struct ip_esp_hdr *esp_output_tcp_encap(struct xfrm_state *x, in esp_output_tcp_encap()
401 static struct ip_esp_hdr *esp_output_tcp_encap(struct xfrm_state *x, in esp_output_tcp_encap()
[all …]
/Linux-v6.1/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_init_state(struct xfrm_state *x, struct netlink_ext_ack *extack) in mip6_destopt_init_state()
273 static void mip6_destopt_destroy(struct xfrm_state *x) in mip6_destopt_destroy()
288 static int mip6_rthdr_input(struct xfrm_state *x, struct sk_buff *skb) in mip6_rthdr_input()
306 static int mip6_rthdr_output(struct xfrm_state *x, struct sk_buff *skb) in mip6_rthdr_output()
335 static int mip6_rthdr_init_state(struct xfrm_state *x, struct netlink_ext_ack *extack) in mip6_rthdr_init_state()
355 static void mip6_rthdr_destroy(struct xfrm_state *x) in mip6_rthdr_destroy()
Desp6.c115 static void esp_ssg_unref(struct xfrm_state *x, void *tmp) in esp_ssg_unref()
151 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 …]
Desp6_offload.c55 struct xfrm_state *x; in esp6_gro_receive()
120 static void esp6_gso_encap(struct xfrm_state *x, struct sk_buff *skb) in esp6_gso_encap()
144 static struct sk_buff *xfrm6_tunnel_gso_segment(struct xfrm_state *x, in xfrm6_tunnel_gso_segment()
154 static struct sk_buff *xfrm6_transport_gso_segment(struct xfrm_state *x, in xfrm6_transport_gso_segment()
170 static struct sk_buff *xfrm6_beet_gso_segment(struct xfrm_state *x, in xfrm6_beet_gso_segment()
215 static struct sk_buff *xfrm6_outer_mode_gso_segment(struct xfrm_state *x, in xfrm6_outer_mode_gso_segment()
234 struct xfrm_state *x; in esp6_gso_segment()
274 static int esp6_input_tail(struct xfrm_state *x, struct sk_buff *skb) in esp6_input_tail()
288 static int esp6_xmit(struct xfrm_state *x, struct sk_buff *skb, netdev_features_t features) in esp6_xmit()
/Linux-v6.1/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
Dipsec.c43 static struct mlx5e_ipsec_sa_entry *to_ipsec_sa_entry(struct xfrm_state *x) in to_ipsec_sa_entry()
48 struct xfrm_state *mlx5e_ipsec_sadb_rx_lookup(struct mlx5e_ipsec *ipsec, in mlx5e_ipsec_sadb_rx_lookup()
52 struct xfrm_state *ret = NULL; in mlx5e_ipsec_sadb_rx_lookup()
136 struct xfrm_state *x = sa_entry->x; in mlx5e_ipsec_build_accel_xfrm_attrs()
189 static inline int mlx5e_xfrm_validate_state(struct xfrm_state *x) in mlx5e_xfrm_validate_state()
269 static int mlx5e_xfrm_add_state(struct xfrm_state *x) in mlx5e_xfrm_add_state()
329 static void mlx5e_xfrm_del_state(struct xfrm_state *x) in mlx5e_xfrm_del_state()
337 static void mlx5e_xfrm_free_state(struct xfrm_state *x) in mlx5e_xfrm_free_state()
400 static bool mlx5e_ipsec_offload_ok(struct sk_buff *skb, struct xfrm_state *x) in mlx5e_ipsec_offload_ok()
415 static void mlx5e_xfrm_advance_esn_state(struct xfrm_state *x) in mlx5e_xfrm_advance_esn_state()
Dipsec_rxtx.h49 struct xfrm_state *x;
57 void mlx5e_ipsec_set_iv_esn(struct sk_buff *skb, struct xfrm_state *x,
59 void mlx5e_ipsec_set_iv(struct sk_buff *skb, struct xfrm_state *x,
95 struct xfrm_state *x = sp->xvec[0]; in mlx5e_ipsec_feature_check()
Dipsec_rxtx.c46 static int mlx5e_ipsec_remove_trailer(struct sk_buff *skb, struct xfrm_state *x) in mlx5e_ipsec_remove_trailer()
150 void mlx5e_ipsec_set_iv_esn(struct sk_buff *skb, struct xfrm_state *x, in mlx5e_ipsec_set_iv_esn()
172 void mlx5e_ipsec_set_iv(struct sk_buff *skb, struct xfrm_state *x, in mlx5e_ipsec_set_iv()
194 struct xfrm_state *x, in mlx5e_ipsec_set_state()
221 struct xfrm_state *x; in mlx5e_ipsec_tx_build_eseg()
265 struct xfrm_state *x; in mlx5e_ipsec_handle_tx_skb()
317 struct xfrm_state *xs; in mlx5e_ipsec_offload_handle_rx_skb()
Dipsec.h138 struct xfrm_state *x;
141 void (*set_iv_op)(struct sk_buff *skb, struct xfrm_state *x,
153 struct xfrm_state *mlx5e_ipsec_sadb_rx_lookup(struct mlx5e_ipsec *dev,
/Linux-v6.1/drivers/net/ethernet/chelsio/inline_crypto/ch_ipsec/
Dchcr_ipsec.c76 static bool ch_ipsec_offload_ok(struct sk_buff *skb, struct xfrm_state *x);
80 static void ch_ipsec_advance_esn_state(struct xfrm_state *x);
81 static void ch_ipsec_xfrm_free_state(struct xfrm_state *x);
82 static void ch_ipsec_xfrm_del_state(struct xfrm_state *x);
83 static int ch_ipsec_xfrm_add_state(struct xfrm_state *x);
142 static int ch_ipsec_setauthsize(struct xfrm_state *x, in ch_ipsec_setauthsize()
166 static int ch_ipsec_setkey(struct xfrm_state *x, in ch_ipsec_setkey()
229 static int ch_ipsec_xfrm_add_state(struct xfrm_state *x) in ch_ipsec_xfrm_add_state()
303 static void ch_ipsec_xfrm_del_state(struct xfrm_state *x) in ch_ipsec_xfrm_del_state()
310 static void ch_ipsec_xfrm_free_state(struct xfrm_state *x) in ch_ipsec_xfrm_free_state()
[all …]
/Linux-v6.1/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()
/Linux-v6.1/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