/linux/include/net/ |
H A D | xfrm.h | 176 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 D | ipcomp.h | 20 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 D | esp.h | 8 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 D | xfrm_replay.c | 12 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 D | xfrm_output.c | 29 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 D | xfrm_state_bpf.c | 64 __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 D | xfrm_ipcomp.c | 38 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 D | xfrm_device.c | 23 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 D | xfrm.c | 65 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 D | xfrm.h | 22 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 D | ipcomp.c | 28 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 D | esp4.c | 99 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 D | xfrm4_tunnel.c | 14 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 D | ah4.c | 122 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 D | ipcomp6.c | 52 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 D | esp6.c | 116 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 D | mip6.c | 119 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 D | ipsec_rxtx.h | 49 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 D | ipsec_rxtx.c | 47 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 D | ipsec.c | 49 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 D | chcr_ipsec.c | 74 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 D | ipsec.c | 19 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 D | ipsec.h | 19 struct xfrm_state *xs; 36 struct xfrm_state *xs;
|
/linux/drivers/net/ethernet/intel/ixgbe/ |
H A D | ixgbe_ipsec.h | 33 struct xfrm_state *xs; 51 struct xfrm_state *xs;
|
H A D | ixgbe_ipsec.c | 12 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 …]
|