Home
last modified time | relevance | path

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

123

/linux/include/net/
H A Dxfrm.h176 struct xfrm_state { struct
247 struct xfrm_state *tunnel; argument
308 static inline struct net *xs_net(struct xfrm_state *x) in xs_net() argument
385 void km_state_notify(struct xfrm_state *x, const struct km_event *c);
388 int km_query(struct xfrm_state *x, struct xfrm_tmpl *t,
390 void km_state_expired(struct xfrm_state *x, int hard, u32 portid);
391 int __xfrm_state_delete(struct xfrm_state *x);
429 void xfrm_state_delete_tunnel(struct xfrm_state *x);
440 int (*init_state)(struct xfrm_state *x,
442 void (*destructor)(struct xfrm_state *);
[all …]
H A 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);
H A 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/net/xfrm/
H A 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 …]
H A 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 …]
H A Dxfrm_state_bpf.c64 __bpf_kfunc struct xfrm_state *
69 struct xfrm_state *x; in bpf_xdp_get_xfrm_state()
113 __bpf_kfunc void bpf_xdp_xfrm_state_release(struct xfrm_state *x) in bpf_xdp_xfrm_state_release()
H A 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()
H A Dxfrm_device.c23 static void __xfrm_transport_prep(struct xfrm_state *x, struct sk_buff *skb, in __xfrm_transport_prep()
35 static void __xfrm_mode_tunnel_prep(struct xfrm_state *x, struct sk_buff *skb, in __xfrm_mode_tunnel_prep()
48 static void __xfrm_mode_beet_prep(struct xfrm_state *x, struct sk_buff *skb, in __xfrm_mode_beet_prep()
68 static void xfrm_outer_mode_prep(struct xfrm_state *x, struct sk_buff *skb) in xfrm_outer_mode_prep()
117 struct xfrm_state *x; in validate_xmit_xfrm()
233 int xfrm_dev_state_add(struct net *net, struct xfrm_state *x, in xfrm_dev_state_add()
410 bool xfrm_dev_offload_ok(struct sk_buff *skb, struct xfrm_state *x) in xfrm_dev_offload_ok()
/linux/security/selinux/
H A Dxfrm.c65 static inline int selinux_authorizable_xfrm(struct xfrm_state *x) in selinux_authorizable_xfrm()
170 int selinux_xfrm_state_pol_flow_match(struct xfrm_state *x, in selinux_xfrm_state_pol_flow_match()
210 struct xfrm_state *x; in selinux_xfrm_skb_sid_egress()
231 struct xfrm_state *x = sp->xvec[i]; in selinux_xfrm_skb_sid_ingress()
328 int selinux_xfrm_state_alloc(struct xfrm_state *x, in selinux_xfrm_state_alloc()
338 int selinux_xfrm_state_alloc_acquire(struct xfrm_state *x, in selinux_xfrm_state_alloc_acquire()
379 void selinux_xfrm_state_free(struct xfrm_state *x) in selinux_xfrm_state_free()
387 int selinux_xfrm_state_delete(struct xfrm_state *x) in selinux_xfrm_state_delete()
408 struct xfrm_state *x = sp->xvec[i]; in selinux_xfrm_sock_rcv_skb()
454 struct xfrm_state *x = iter->xfrm; in selinux_xfrm_postroute_last()
/linux/security/selinux/include/
H A 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/net/ipv4/
H A 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()
H A Desp4.c99 static void esp_ssg_unref(struct xfrm_state *x, void *tmp, struct sk_buff *skb) in esp_ssg_unref()
136 static struct sock *esp_find_tcp_sk(struct xfrm_state *x) in esp_find_tcp_sk()
193 static int esp_output_tcp_finish(struct xfrm_state *x, struct sk_buff *skb) in esp_output_tcp_finish()
221 struct xfrm_state *x = dst->xfrm; in esp_output_tcp_encap_cb()
226 static int esp_output_tail_tcp(struct xfrm_state *x, struct sk_buff *skb) in esp_output_tail_tcp()
241 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()
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 …]
H A 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()
H A Dah4.c122 struct xfrm_state *x = skb_dst(skb)->xfrm; in ah_output_done()
144 static int ah_output(struct xfrm_state *x, struct sk_buff *skb) in ah_output()
268 struct xfrm_state *x = xfrm_input_state(skb); in ah_input_done()
300 static int ah_input(struct xfrm_state *x, struct sk_buff *skb) in ah_input()
444 struct xfrm_state *x; in ah4_err()
471 static int ah_init_state(struct xfrm_state *x, struct netlink_ext_ack *extack) in ah_init_state()
542 static void ah_destroy(struct xfrm_state *x) in ah_destroy()
/linux/net/ipv6/
H A 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()
H A Desp6.c116 static void esp_ssg_unref(struct xfrm_state *x, void *tmp, struct sk_buff *skb) in esp_ssg_unref()
153 static struct sock *esp6_find_tcp_sk(struct xfrm_state *x) in esp6_find_tcp_sk()
210 static int esp_output_tcp_finish(struct xfrm_state *x, struct sk_buff *skb) in esp_output_tcp_finish()
238 struct xfrm_state *x = dst->xfrm; in esp_output_tcp_encap_cb()
243 static int esp_output_tail_tcp(struct xfrm_state *x, struct sk_buff *skb) in esp_output_tail_tcp()
258 static int esp_output_tail_tcp(struct xfrm_state *x, struct sk_buff *skb) in esp_output_tail_tcp()
287 struct xfrm_state *x; in esp_output_done()
343 struct xfrm_state *x, in esp_output_set_esn()
405 static struct ip_esp_hdr *esp6_output_tcp_encap(struct xfrm_state *x, in esp6_output_tcp_encap()
431 static struct ip_esp_hdr *esp6_output_tcp_encap(struct xfrm_state *x, in esp6_output_tcp_encap()
[all …]
H A 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()
/linux/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
H A Dipsec_rxtx.h49 struct xfrm_state *x;
56 void mlx5e_ipsec_set_iv_esn(struct sk_buff *skb, struct xfrm_state *x,
58 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()
H A 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()
H A 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_sw_limits()
92 struct xfrm_state *x = sa_entry->x; in mlx5e_ipsec_update_esn_state()
155 struct xfrm_state *x = sa_entry->x; in mlx5e_ipsec_init_limits()
269 struct xfrm_state *x = sa_entry->x; in mlx5e_ipsec_init_macs()
316 struct xfrm_state *x = sa_entry->x; in mlx5e_ipsec_build_accel_xfrm_attrs()
407 struct xfrm_state *x, in mlx5e_xfrm_validate_state()
574 struct xfrm_state *x = sa_entry->x; in mlx5e_ipsec_set_esn_ops()
614 struct xfrm_state *x = sa_entry->x; in mlx5_ipsec_create_work()
667 struct xfrm_state *x = sa_entry->x; in mlx5e_ipsec_create_dwork()
[all …]
/linux/drivers/net/ethernet/chelsio/inline_crypto/ch_ipsec/
H A Dchcr_ipsec.c74 static bool ch_ipsec_offload_ok(struct sk_buff *skb, struct xfrm_state *x);
78 static void ch_ipsec_advance_esn_state(struct xfrm_state *x);
79 static void ch_ipsec_xfrm_free_state(struct xfrm_state *x);
80 static void ch_ipsec_xfrm_del_state(struct xfrm_state *x);
81 static int ch_ipsec_xfrm_add_state(struct xfrm_state *x,
141 static int ch_ipsec_setauthsize(struct xfrm_state *x, in ch_ipsec_setauthsize()
165 static int ch_ipsec_setkey(struct xfrm_state *x, in ch_ipsec_setkey()
228 static int ch_ipsec_xfrm_add_state(struct xfrm_state *x, in ch_ipsec_xfrm_add_state()
307 static void ch_ipsec_xfrm_del_state(struct xfrm_state *x) in ch_ipsec_xfrm_del_state()
314 static void ch_ipsec_xfrm_free_state(struct xfrm_state *x) in ch_ipsec_xfrm_free_state()
[all …]
/linux/drivers/net/ethernet/intel/ixgbevf/
H A 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()
H A Dipsec.h19 struct xfrm_state *xs;
36 struct xfrm_state *xs;
/linux/drivers/net/ethernet/intel/ixgbe/
H A Dixgbe_ipsec.h33 struct xfrm_state *xs;
51 struct xfrm_state *xs;
H A Dixgbe_ipsec.c12 static void ixgbe_ipsec_del_sa(struct xfrm_state *xs);
392 static struct xfrm_state *ixgbe_ipsec_find_rx_state(struct ixgbe_ipsec *ipsec, in ixgbe_ipsec_find_rx_state()
397 struct xfrm_state *ret = NULL; in ixgbe_ipsec_find_rx_state()
427 static int ixgbe_ipsec_parse_proto_keys(struct xfrm_state *xs, in ixgbe_ipsec_parse_proto_keys()
478 static int ixgbe_ipsec_check_mgmt_ip(struct xfrm_state *xs) in ixgbe_ipsec_check_mgmt_ip()
562 static int ixgbe_ipsec_add_sa(struct xfrm_state *xs, in ixgbe_ipsec_add_sa()
757 static void ixgbe_ipsec_del_sa(struct xfrm_state *xs) in ixgbe_ipsec_del_sa()
825 static bool ixgbe_ipsec_offload_ok(struct sk_buff *skb, struct xfrm_state *xs) in ixgbe_ipsec_offload_ok()
895 struct xfrm_state *xs; in ixgbe_ipsec_vf_add_sa()
1003 struct xfrm_state *xs; in ixgbe_ipsec_vf_del_sa()
[all …]

123