Home
last modified time | relevance | path

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

123

/linux-6.6.21/include/net/
Dxfrm.h173 struct xfrm_state { struct
234 struct xfrm_state *tunnel; argument
294 static inline struct net *xs_net(struct xfrm_state *x) in xs_net() argument
366 void km_state_notify(struct xfrm_state *x, const struct km_event *c);
369 int km_query(struct xfrm_state *x, struct xfrm_tmpl *t,
371 void km_state_expired(struct xfrm_state *x, int hard, u32 portid);
372 int __xfrm_state_delete(struct xfrm_state *x);
410 void xfrm_state_delete_tunnel(struct xfrm_state *x);
421 int (*init_state)(struct xfrm_state *x,
423 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-6.6.21/net/xfrm/
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_state.c53 static inline bool xfrm_state_hold_rcu(struct xfrm_state __rcu *x) in xfrm_state_hold_rcu()
89 struct xfrm_state *_x = NULL; \
114 struct xfrm_state *x; in xfrm_hash_transfer()
218 int __xfrm_state_delete(struct xfrm_state *x);
220 int km_query(struct xfrm_state *x, struct xfrm_tmpl *t, struct xfrm_policy *pol);
222 void km_state_expired(struct xfrm_state *x, int hard, u32 portid);
516 void xfrm_state_free(struct xfrm_state *x) in xfrm_state_free()
522 static void ___xfrm_state_destroy(struct xfrm_state *x) in ___xfrm_state_destroy()
549 struct xfrm_state *x; in xfrm_state_gc_task()
565 struct xfrm_state *x = container_of(me, struct xfrm_state, mtimer); in xfrm_timer_handler()
[all …]
Dxfrm_output.c29 static int xfrm_inner_extract_output(struct xfrm_state *x, struct sk_buff *skb);
65 static int xfrm4_transport_output(struct xfrm_state *x, struct sk_buff *skb) in xfrm4_transport_output()
142 static int xfrm6_hdr_offset(struct xfrm_state *x, struct sk_buff *skb, u8 **prevhdr) in xfrm6_hdr_offset()
163 static int xfrm6_transport_output(struct xfrm_state *x, struct sk_buff *skb) in xfrm6_transport_output()
194 static int xfrm6_ro_output(struct xfrm_state *x, struct sk_buff *skb) in xfrm6_ro_output()
224 static int xfrm4_beet_encap_add(struct xfrm_state *x, struct sk_buff *skb) in xfrm4_beet_encap_add()
273 static int xfrm4_tunnel_encap_add(struct xfrm_state *x, struct sk_buff *skb) in xfrm4_tunnel_encap_add()
319 static int xfrm6_tunnel_encap_add(struct xfrm_state *x, struct sk_buff *skb) in xfrm6_tunnel_encap_add()
354 static int xfrm6_beet_encap_add(struct xfrm_state *x, struct sk_buff *skb) in xfrm6_beet_encap_add()
405 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()
94 int ipcomp_input(struct xfrm_state *x, struct sk_buff *skb) in ipcomp_input()
122 static int ipcomp_compress(struct xfrm_state *x, struct sk_buff *skb) in ipcomp_compress()
155 int ipcomp_output(struct xfrm_state *x, struct sk_buff *skb) in ipcomp_output()
313 void ipcomp_destroy(struct xfrm_state *x) in ipcomp_destroy()
326 int ipcomp_init_state(struct xfrm_state *x, struct netlink_ext_ack *extack) in ipcomp_init_state()
Dxfrm_input.c177 static int xfrm4_remove_beet_encap(struct xfrm_state *x, struct sk_buff *skb) in xfrm4_remove_beet_encap()
233 static int xfrm4_remove_tunnel_encap(struct xfrm_state *x, struct sk_buff *skb) in xfrm4_remove_tunnel_encap()
270 static int xfrm6_remove_tunnel_encap(struct xfrm_state *x, struct sk_buff *skb) in xfrm6_remove_tunnel_encap()
299 static int xfrm6_remove_beet_encap(struct xfrm_state *x, struct sk_buff *skb) in xfrm6_remove_beet_encap()
337 xfrm_inner_mode_encap_remove(struct xfrm_state *x, in xfrm_inner_mode_encap_remove()
364 static int xfrm_prepare_input(struct xfrm_state *x, struct sk_buff *skb) in xfrm_prepare_input()
389 static int xfrm4_transport_input(struct xfrm_state *x, struct sk_buff *skb) in xfrm4_transport_input()
403 static int xfrm6_transport_input(struct xfrm_state *x, struct sk_buff *skb) in xfrm6_transport_input()
423 static int xfrm_inner_mode_input(struct xfrm_state *x, in xfrm_inner_mode_input()
454 struct xfrm_state *x = NULL; in xfrm_input()
/linux-6.6.21/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-6.6.21/security/selinux/
Dxfrm.c65 static inline int selinux_authorizable_xfrm(struct xfrm_state *x) in selinux_authorizable_xfrm()
173 int selinux_xfrm_state_pol_flow_match(struct xfrm_state *x, in selinux_xfrm_state_pol_flow_match()
213 struct xfrm_state *x; in selinux_xfrm_skb_sid_egress()
234 struct xfrm_state *x = sp->xvec[i]; in selinux_xfrm_skb_sid_ingress()
331 int selinux_xfrm_state_alloc(struct xfrm_state *x, in selinux_xfrm_state_alloc()
341 int selinux_xfrm_state_alloc_acquire(struct xfrm_state *x, in selinux_xfrm_state_alloc_acquire()
382 void selinux_xfrm_state_free(struct xfrm_state *x) in selinux_xfrm_state_free()
390 int selinux_xfrm_state_delete(struct xfrm_state *x) in selinux_xfrm_state_delete()
411 struct xfrm_state *x = sp->xvec[i]; in selinux_xfrm_sock_rcv_skb()
457 struct xfrm_state *x = iter->xfrm; in selinux_xfrm_postroute_last()
/linux-6.6.21/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.c35 struct xfrm_state *x; in esp4_gro_receive()
93 static void esp4_gso_encap(struct xfrm_state *x, struct sk_buff *skb) in esp4_gso_encap()
110 static struct sk_buff *xfrm4_tunnel_gso_segment(struct xfrm_state *x, in xfrm4_tunnel_gso_segment()
120 static struct sk_buff *xfrm4_transport_gso_segment(struct xfrm_state *x, in xfrm4_transport_gso_segment()
136 static struct sk_buff *xfrm4_beet_gso_segment(struct xfrm_state *x, in xfrm4_beet_gso_segment()
177 static struct sk_buff *xfrm4_outer_mode_gso_segment(struct xfrm_state *x, in xfrm4_outer_mode_gso_segment()
196 struct xfrm_state *x; in esp4_gso_segment()
238 static int esp_input_tail(struct xfrm_state *x, struct sk_buff *skb) in esp_input_tail()
252 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-6.6.21/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.c56 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-6.6.21/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
Dipsec_rxtx.h50 struct xfrm_state *x;
58 void mlx5e_ipsec_set_iv_esn(struct sk_buff *skb, struct xfrm_state *x,
60 void mlx5e_ipsec_set_iv(struct sk_buff *skb, struct xfrm_state *x,
97 struct xfrm_state *x = sp->xvec[0]; in mlx5e_ipsec_feature_check()
Dipsec.c49 static struct mlx5e_ipsec_sa_entry *to_ipsec_sa_entry(struct xfrm_state *x) in to_ipsec_sa_entry()
64 struct xfrm_state *x = sa_entry->x; in mlx5e_ipsec_handle_tx_limit()
86 struct xfrm_state *x = sa_entry->x; in mlx5e_ipsec_update_esn_state()
149 struct xfrm_state *x = sa_entry->x; in mlx5e_ipsec_init_limits()
263 struct xfrm_state *x = sa_entry->x; in mlx5e_ipsec_init_macs()
310 struct xfrm_state *x = sa_entry->x; in mlx5e_ipsec_build_accel_xfrm_attrs()
401 struct xfrm_state *x, in mlx5e_xfrm_validate_state()
562 struct xfrm_state *x = sa_entry->x; in mlx5e_ipsec_set_esn_ops()
602 struct xfrm_state *x = sa_entry->x; in mlx5_ipsec_create_work()
655 struct xfrm_state *x = sa_entry->x; in mlx5e_ipsec_create_dwork()
[all …]
Dipsec_rxtx.c47 static int mlx5e_ipsec_remove_trailer(struct sk_buff *skb, struct xfrm_state *x) in mlx5e_ipsec_remove_trailer()
153 void mlx5e_ipsec_set_iv_esn(struct sk_buff *skb, struct xfrm_state *x, in mlx5e_ipsec_set_iv_esn()
175 void mlx5e_ipsec_set_iv(struct sk_buff *skb, struct xfrm_state *x, in mlx5e_ipsec_set_iv()
197 struct xfrm_state *x, in mlx5e_ipsec_set_state()
224 struct xfrm_state *x; in mlx5e_ipsec_tx_build_eseg()
268 struct xfrm_state *x; in mlx5e_ipsec_handle_tx_skb()
/linux-6.6.21/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,
143 static int ch_ipsec_setauthsize(struct xfrm_state *x, in ch_ipsec_setauthsize()
167 static int ch_ipsec_setkey(struct xfrm_state *x, in ch_ipsec_setkey()
230 static int ch_ipsec_xfrm_add_state(struct xfrm_state *x, in ch_ipsec_xfrm_add_state()
309 static void ch_ipsec_xfrm_del_state(struct xfrm_state *x) in ch_ipsec_xfrm_del_state()
316 static void ch_ipsec_xfrm_free_state(struct xfrm_state *x) in ch_ipsec_xfrm_free_state()
[all …]
/linux-6.6.21/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()
262 static int ixgbevf_ipsec_add_sa(struct xfrm_state *xs, in ixgbevf_ipsec_add_sa()
393 static void ixgbevf_ipsec_del_sa(struct xfrm_state *xs) in ixgbevf_ipsec_del_sa()
436 static bool ixgbevf_ipsec_offload_ok(struct sk_buff *skb, struct xfrm_state *xs) in ixgbevf_ipsec_offload_ok()
469 struct xfrm_state *xs; in ixgbevf_ipsec_tx()
565 struct xfrm_state *xs = NULL; in ixgbevf_ipsec_rx()
Dipsec.h19 struct xfrm_state *xs;
36 struct xfrm_state *xs;
/linux-6.6.21/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()
200 static void nsim_ipsec_del_sa(struct xfrm_state *xs) in nsim_ipsec_del_sa()
217 static bool nsim_ipsec_offload_ok(struct sk_buff *skb, struct xfrm_state *xs) in nsim_ipsec_offload_ok()
237 struct xfrm_state *xs; in nsim_ipsec_tx()

123