| /Linux-v5.4/include/net/ |
| D | xfrm.h | 147 struct xfrm_state { struct 201 struct xfrm_state *tunnel; argument 262 static inline struct net *xs_net(struct xfrm_state *x) in xs_net() argument 297 void (*advance)(struct xfrm_state *x, __be32 net_seq); 298 int (*check)(struct xfrm_state *x, 301 int (*recheck)(struct xfrm_state *x, 304 void (*notify)(struct xfrm_state *x, int event); 305 int (*overflow)(struct xfrm_state *x, struct sk_buff *skb); 340 void km_state_notify(struct xfrm_state *x, const struct km_event *c); 343 int km_query(struct xfrm_state *x, struct xfrm_tmpl *t, [all …]
|
| D | ipcomp.h | 18 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);
|
| D | esp.h | 27 int esp_output_head(struct xfrm_state *x, struct sk_buff *skb, struct esp_info *esp); 28 int esp_output_tail(struct xfrm_state *x, struct sk_buff *skb, struct esp_info *esp); 30 int esp6_output_head(struct xfrm_state *x, struct sk_buff *skb, struct esp_info *esp); 31 int esp6_output_tail(struct xfrm_state *x, struct sk_buff *skb, struct esp_info *esp);
|
| /Linux-v5.4/net/xfrm/ |
| D | xfrm_state.c | 53 static inline bool xfrm_state_hold_rcu(struct xfrm_state __rcu *x) in xfrm_state_hold_rcu() 89 struct xfrm_state *x; in xfrm_hash_transfer() 176 int __xfrm_state_delete(struct xfrm_state *x); 178 int km_query(struct xfrm_state *x, struct xfrm_tmpl *t, struct xfrm_policy *pol); 180 void km_state_expired(struct xfrm_state *x, int hard, u32 portid); 474 void xfrm_state_free(struct xfrm_state *x) in xfrm_state_free() 480 static void ___xfrm_state_destroy(struct xfrm_state *x) in ___xfrm_state_destroy() 507 struct xfrm_state *x; in xfrm_state_gc_task() 523 struct xfrm_state *x = container_of(me, struct xfrm_state, mtimer); in xfrm_timer_handler() 611 struct xfrm_state *xfrm_state_alloc(struct net *net) in xfrm_state_alloc() [all …]
|
| 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(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() 106 static int xfrm_replay_check(struct xfrm_state *x, in xfrm_replay_check() 138 static void xfrm_replay_advance(struct xfrm_state *x, __be32 net_seq) in xfrm_replay_advance() 162 static int xfrm_replay_overflow_bmp(struct xfrm_state *x, struct sk_buff *skb) in xfrm_replay_overflow_bmp() 185 static int xfrm_replay_check_bmp(struct xfrm_state *x, in xfrm_replay_check_bmp() 229 static void xfrm_replay_advance_bmp(struct xfrm_state *x, __be32 net_seq) in xfrm_replay_advance_bmp() 277 static void xfrm_replay_notify_bmp(struct xfrm_state *x, int event) in xfrm_replay_notify_bmp() 328 static void xfrm_replay_notify_esn(struct xfrm_state *x, int event) in xfrm_replay_notify_esn() [all …]
|
| D | xfrm_output.c | 22 static int xfrm_inner_extract_output(struct xfrm_state *x, struct sk_buff *skb); 58 static int xfrm4_transport_output(struct xfrm_state *x, struct sk_buff *skb) in xfrm4_transport_output() 79 static int xfrm6_transport_output(struct xfrm_state *x, struct sk_buff *skb) in xfrm6_transport_output() 110 static int xfrm6_ro_output(struct xfrm_state *x, struct sk_buff *skb) in xfrm6_ro_output() 142 static int xfrm4_beet_encap_add(struct xfrm_state *x, struct sk_buff *skb) in xfrm4_beet_encap_add() 191 static int xfrm4_tunnel_encap_add(struct xfrm_state *x, struct sk_buff *skb) in xfrm4_tunnel_encap_add() 236 static int xfrm6_tunnel_encap_add(struct xfrm_state *x, struct sk_buff *skb) in xfrm6_tunnel_encap_add() 271 static int xfrm6_beet_encap_add(struct xfrm_state *x, struct sk_buff *skb) in xfrm6_beet_encap_add() 322 static int xfrm4_prepare_output(struct xfrm_state *x, struct sk_buff *skb) in xfrm4_prepare_output() 344 static int xfrm6_prepare_output(struct xfrm_state *x, struct sk_buff *skb) in xfrm6_prepare_output() [all …]
|
| D | xfrm_ipcomp.c | 38 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()
|
| D | xfrm_device.c | 22 static void __xfrm_transport_prep(struct xfrm_state *x, struct sk_buff *skb, in __xfrm_transport_prep() 36 static void __xfrm_mode_tunnel_prep(struct xfrm_state *x, struct sk_buff *skb, in __xfrm_mode_tunnel_prep() 50 static void xfrm_outer_mode_prep(struct xfrm_state *x, struct sk_buff *skb) in xfrm_outer_mode_prep() 80 struct xfrm_state *x; in validate_xmit_xfrm() 192 int xfrm_dev_state_add(struct net *net, struct xfrm_state *x, in xfrm_dev_state_add() 263 bool xfrm_dev_offload_ok(struct sk_buff *skb, struct xfrm_state *x) in xfrm_dev_offload_ok()
|
| /Linux-v5.4/security/selinux/include/ |
| D | xfrm.h | 20 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,
|
| /Linux-v5.4/security/selinux/ |
| D | xfrm.c | 65 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()
|
| /Linux-v5.4/net/ipv6/ |
| 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() 110 static int ipcomp6_tunnel_attach(struct xfrm_state *x) in ipcomp6_tunnel_attach() 114 struct xfrm_state *t = NULL; in ipcomp6_tunnel_attach() 138 static int ipcomp6_init_state(struct xfrm_state *x) in ipcomp6_init_state()
|
| 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_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 …]
|
| D | esp6_offload.c | 54 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() 136 static struct sk_buff *xfrm6_tunnel_gso_segment(struct xfrm_state *x, in xfrm6_tunnel_gso_segment() 144 static struct sk_buff *xfrm6_transport_gso_segment(struct xfrm_state *x, in xfrm6_transport_gso_segment() 160 static struct sk_buff *xfrm6_outer_mode_gso_segment(struct xfrm_state *x, in xfrm6_outer_mode_gso_segment() 177 struct xfrm_state *x; in esp6_gso_segment() 215 static int esp6_input_tail(struct xfrm_state *x, struct sk_buff *skb) in esp6_input_tail() 229 static int esp6_xmit(struct xfrm_state *x, struct sk_buff *skb, netdev_features_t features) in esp6_xmit()
|
| D | xfrm6_output.c | 19 int xfrm6_find_1stfragopt(struct xfrm_state *x, struct sk_buff *skb, in xfrm6_find_1stfragopt() 97 int xfrm6_extract_output(struct xfrm_state *x, struct sk_buff *skb) in xfrm6_extract_output() 121 static int __xfrm6_output_state_finish(struct xfrm_state *x, struct sock *sk, in __xfrm6_output_state_finish() 140 struct xfrm_state *x = skb_dst(skb)->xfrm; in __xfrm6_output_finish() 148 struct xfrm_state *x = dst->xfrm; in __xfrm6_output()
|
| D | esp6.c | 105 static void esp_ssg_unref(struct xfrm_state *x, void *tmp) in esp_ssg_unref() 132 struct xfrm_state *x; in esp_output_done() 178 struct xfrm_state *x, in esp_output_set_esn() 226 int esp6_output_head(struct xfrm_state *x, struct sk_buff *skb, struct esp_info *esp) in esp6_output_head() 307 int esp6_output_tail(struct xfrm_state *x, struct sk_buff *skb, struct esp_info *esp) in esp6_output_tail() 425 static int esp6_output(struct xfrm_state *x, struct sk_buff *skb) in esp6_output() 475 struct xfrm_state *x = xfrm_input_state(skb); in esp_remove_trailer() 520 struct xfrm_state *x = xfrm_input_state(skb); in esp6_input_done2() 568 struct xfrm_state *x = xfrm_input_state(skb); in esp_input_set_header() 591 static int esp6_input(struct xfrm_state *x, struct sk_buff *skb) in esp6_input() [all …]
|
| /Linux-v5.4/net/ipv4/ |
| D | ipcomp.c | 28 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() 94 static int ipcomp_tunnel_attach(struct xfrm_state *x) in ipcomp_tunnel_attach() 98 struct xfrm_state *t; in ipcomp_tunnel_attach() 118 static int ipcomp4_init_state(struct xfrm_state *x) in ipcomp4_init_state()
|
| D | xfrm4_tunnel.c | 16 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()
|
| D | esp4_offload.c | 33 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_outer_mode_gso_segment(struct xfrm_state *x, in xfrm4_outer_mode_gso_segment() 150 struct xfrm_state *x; in esp4_gso_segment() 190 static int esp_input_tail(struct xfrm_state *x, struct sk_buff *skb) in esp_input_tail() 204 static int esp_xmit(struct xfrm_state *x, struct sk_buff *skb, netdev_features_t features) in esp_xmit()
|
| D | esp4.c | 96 static void esp_ssg_unref(struct xfrm_state *x, void *tmp) in esp_ssg_unref() 125 struct xfrm_state *x; in esp_output_done() 175 struct xfrm_state *x, in esp_output_set_extra() 228 static int esp_output_udp_encap(struct xfrm_state *x, struct sk_buff *skb, struct esp_info *esp) in esp_output_udp_encap() 272 int esp_output_head(struct xfrm_state *x, struct sk_buff *skb, struct esp_info *esp) in esp_output_head() 365 int esp_output_tail(struct xfrm_state *x, struct sk_buff *skb, struct esp_info *esp) in esp_output_tail() 484 static int esp_output(struct xfrm_state *x, struct sk_buff *skb) in esp_output() 536 struct xfrm_state *x = xfrm_input_state(skb); in esp_remove_trailer() 582 struct xfrm_state *x = xfrm_input_state(skb); in esp_input_done2() 668 struct xfrm_state *x = xfrm_input_state(skb); in esp_input_set_header() [all …]
|
| /Linux-v5.4/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ |
| D | ipsec.c | 45 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() 153 struct xfrm_state *x = sa_entry->x; in mlx5e_ipsec_build_accel_xfrm_attrs() 204 static inline int mlx5e_xfrm_validate_state(struct xfrm_state *x) in mlx5e_xfrm_validate_state() 281 static int mlx5e_xfrm_add_state(struct xfrm_state *x) in mlx5e_xfrm_add_state() 369 static void mlx5e_xfrm_del_state(struct xfrm_state *x) in mlx5e_xfrm_del_state() 380 static void mlx5e_xfrm_free_state(struct xfrm_state *x) in mlx5e_xfrm_free_state() 444 static bool mlx5e_ipsec_offload_ok(struct sk_buff *skb, struct xfrm_state *x) in mlx5e_ipsec_offload_ok() 481 static void mlx5e_xfrm_advance_esn_state(struct xfrm_state *x) in mlx5e_xfrm_advance_esn_state()
|
| D | ipsec_rxtx.c | 109 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() 244 struct xfrm_state *x; in mlx5e_ipsec_handle_tx_skb() 291 static inline struct xfrm_state * 297 struct xfrm_state *xs; in mlx5e_ipsec_build_sp() 345 struct xfrm_state *xs; in mlx5e_ipsec_handle_rx_skb() 368 struct xfrm_state *x; in mlx5e_ipsec_feature_check()
|
| D | ipsec.h | 99 struct xfrm_state *x; 103 void (*set_iv_op)(struct sk_buff *skb, struct xfrm_state *x, 117 struct xfrm_state *mlx5e_ipsec_sadb_rx_lookup(struct mlx5e_ipsec *dev,
|
| D | ipsec_rxtx.h | 51 void mlx5e_ipsec_set_iv_esn(struct sk_buff *skb, struct xfrm_state *x, 53 void mlx5e_ipsec_set_iv(struct sk_buff *skb, struct xfrm_state *x,
|
| /Linux-v5.4/drivers/crypto/chelsio/ |
| D | chcr_ipsec.c | 75 static int chcr_xfrm_add_state(struct xfrm_state *x); 76 static void chcr_xfrm_del_state(struct xfrm_state *x); 77 static void chcr_xfrm_free_state(struct xfrm_state *x); 78 static bool chcr_ipsec_offload_ok(struct sk_buff *skb, struct xfrm_state *x); 79 static void chcr_advance_esn_state(struct xfrm_state *x); 108 static inline int chcr_ipsec_setauthsize(struct xfrm_state *x, in chcr_ipsec_setauthsize() 132 static inline int chcr_ipsec_setkey(struct xfrm_state *x, in chcr_ipsec_setkey() 195 static int chcr_xfrm_add_state(struct xfrm_state *x) in chcr_xfrm_add_state() 269 static void chcr_xfrm_del_state(struct xfrm_state *x) in chcr_xfrm_del_state() 276 static void chcr_xfrm_free_state(struct xfrm_state *x) in chcr_xfrm_free_state() [all …]
|
| /Linux-v5.4/drivers/net/ethernet/intel/ixgbevf/ |
| 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() 261 static int ixgbevf_ipsec_add_sa(struct xfrm_state *xs) in ixgbevf_ipsec_add_sa() 379 static void ixgbevf_ipsec_del_sa(struct xfrm_state *xs) in ixgbevf_ipsec_del_sa() 419 static bool ixgbevf_ipsec_offload_ok(struct sk_buff *skb, struct xfrm_state *xs) in ixgbevf_ipsec_offload_ok() 452 struct xfrm_state *xs; in ixgbevf_ipsec_tx() 548 struct xfrm_state *xs = NULL; in ixgbevf_ipsec_rx()
|