| /linux-6.15/include/net/ |
| H A D | xfrm.h | 177 struct xfrm_state { struct 248 struct xfrm_state *tunnel; argument 444 int (*init_state)(struct xfrm_state *x, 498 int (*init_state)(struct xfrm_state *x); 499 int (*clone_state)(struct xfrm_state *x, struct xfrm_state *orig); 1272 struct xfrm_state *x; in __xfrm_policy_check2() 1729 void xfrm_state_sort(struct xfrm_state **dst, struct xfrm_state **src, int n, 1737 static inline void xfrm_state_sort(struct xfrm_state **d, struct xfrm_state **s, in xfrm_state_sort() 1893 struct xfrm_state *xfrm_state_migrate(struct xfrm_state *x, 2007 struct xfrm_state *orig) in xfrm_replay_clone() [all …]
|
| H A D | ipcomp.h | 9 struct xfrm_state; 11 int ipcomp_input(struct xfrm_state *x, struct sk_buff *skb); 12 int ipcomp_output(struct xfrm_state *x, struct sk_buff *skb); 13 void ipcomp_destroy(struct xfrm_state *x); 14 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-6.15/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() 121 static int xfrm_replay_check_legacy(struct xfrm_state *x, in xfrm_replay_check_legacy() 156 void xfrm_replay_advance(struct xfrm_state *x, __be32 net_seq) in xfrm_replay_advance() 213 static int xfrm_replay_check_bmp(struct xfrm_state *x, in xfrm_replay_check_bmp() 451 static int xfrm_replay_check_esn(struct xfrm_state *x, in xfrm_replay_check_esn() 510 int xfrm_replay_check(struct xfrm_state *x, in xfrm_replay_check() 525 static int xfrm_replay_recheck_esn(struct xfrm_state *x, in xfrm_replay_recheck_esn() [all …]
|
| H A D | xfrm_state.c | 125 struct xfrm_state *x; in xfrm_hash_transfer() 623 struct xfrm_state *x; in xfrm_state_gc_task() 639 struct xfrm_state *x = container_of(me, struct xfrm_state, mtimer); in xfrm_timer_handler() 731 struct xfrm_state *x; in xfrm_state_alloc() 1360 struct xfrm_state * 1658 struct xfrm_state * 1961 static struct xfrm_state *xfrm_state_clone(struct xfrm_state *orig, in xfrm_state_clone() 2121 struct xfrm_state *xfrm_state_migrate(struct xfrm_state *x, in xfrm_state_migrate() 2292 struct xfrm_state * 2308 struct xfrm_state * [all …]
|
| H A D | xfrm_ipcomp.c | 35 struct xfrm_state *x; 114 static struct acomp_req *ipcomp_setup_req(struct xfrm_state *x, in ipcomp_setup_req() 199 static int ipcomp_decompress(struct xfrm_state *x, struct sk_buff *skb) in ipcomp_decompress() 218 int ipcomp_input(struct xfrm_state *x, struct sk_buff *skb) in ipcomp_input() 240 static int ipcomp_output_done2(struct xfrm_state *x, struct sk_buff *skb, in ipcomp_output_done2() 272 static int ipcomp_compress(struct xfrm_state *x, struct sk_buff *skb) in ipcomp_compress() 293 int ipcomp_output(struct xfrm_state *x, struct sk_buff *skb) in ipcomp_output() 311 void ipcomp_destroy(struct xfrm_state *x) in ipcomp_destroy() 322 int ipcomp_init_state(struct xfrm_state *x, struct netlink_ext_ack *extack) in ipcomp_init_state()
|
| 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() 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() 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() 427 static int xfrm6_prepare_output(struct xfrm_state *x, struct sk_buff *skb) in xfrm6_prepare_output() 495 struct xfrm_state *x = dst->xfrm; in xfrm_output_one() 615 static int xfrm_dev_direct_output(struct sock *sk, struct xfrm_state *x, in xfrm_dev_direct_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_iptfs.c | 153 struct xfrm_state *x; /* owning state */ 1659 struct xfrm_state *x; in iptfs_drop_timer() 1703 static int iptfs_input(struct xfrm_state *x, struct sk_buff *skb) in iptfs_input() 1822 struct xfrm_state *x = dst->xfrm; in iptfs_output_collect() 2309 struct xfrm_state *x; in iptfs_delay_timer() 2508 static int iptfs_user_init(struct net *net, struct xfrm_state *x, in iptfs_user_init() 2565 static unsigned int iptfs_sa_len(const struct xfrm_state *x) in iptfs_sa_len() 2624 static void __iptfs_init_state(struct xfrm_state *x, in __iptfs_init_state() 2648 static int iptfs_clone_state(struct xfrm_state *x, struct xfrm_state *orig) in iptfs_clone_state() 2672 static int iptfs_init_state(struct xfrm_state *x) in iptfs_init_state() [all …]
|
| /linux-6.15/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-6.15/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-6.15/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 | 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()
|
| H A D | esp6.c | 140 static struct sock *esp6_find_tcp_sk(struct xfrm_state *x) in esp6_find_tcp_sk() 197 struct xfrm_state *x = dst->xfrm; in esp_output_tcp_encap_cb() 246 struct xfrm_state *x; in esp_output_done() 302 struct xfrm_state *x, in esp_output_set_esn() 698 struct xfrm_state *x = xfrm_input_state(skb); in esp_remove_trailer() 739 struct xfrm_state *x = xfrm_input_state(skb); in esp6_input_done2() 853 struct xfrm_state *x = xfrm_input_state(skb); in esp_input_set_header() 876 static int esp6_input(struct xfrm_state *x, struct sk_buff *skb) in esp6_input() 979 struct xfrm_state *x; in esp6_err() 1000 static void esp6_destroy(struct xfrm_state *x) in esp6_destroy() [all …]
|
| H A D | esp6_offload.c | 58 struct xfrm_state *x; in esp6_gro_receive() 133 static void esp6_gso_encap(struct xfrm_state *x, struct sk_buff *skb) in esp6_gso_encap() 157 static struct sk_buff *xfrm6_tunnel_gso_segment(struct xfrm_state *x, in xfrm6_tunnel_gso_segment() 167 static struct sk_buff *xfrm6_transport_gso_segment(struct xfrm_state *x, in xfrm6_transport_gso_segment() 183 static struct sk_buff *xfrm6_beet_gso_segment(struct xfrm_state *x, in xfrm6_beet_gso_segment() 228 static struct sk_buff *xfrm6_outer_mode_gso_segment(struct xfrm_state *x, in xfrm6_outer_mode_gso_segment() 247 struct xfrm_state *x; in esp6_gso_segment() 287 static int esp6_input_tail(struct xfrm_state *x, struct sk_buff *skb) in esp6_input_tail() 301 static int esp6_xmit(struct xfrm_state *x, struct sk_buff *skb, netdev_features_t features) in esp6_xmit()
|
| /linux-6.15/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 | 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 | esp4.c | 123 static struct sock *esp_find_tcp_sk(struct xfrm_state *x) in esp_find_tcp_sk() 180 struct xfrm_state *x = dst->xfrm; in esp_output_tcp_encap_cb() 212 struct xfrm_state *x; in esp_output_done() 266 struct xfrm_state *x, in esp_output_set_extra() 666 struct xfrm_state *x = xfrm_input_state(skb); in esp_remove_trailer() 708 struct xfrm_state *x = xfrm_input_state(skb); in esp_input_done2() 810 struct xfrm_state *x = xfrm_input_state(skb); in esp_input_set_header() 838 static int esp_input(struct xfrm_state *x, struct sk_buff *skb) in esp_input() 936 struct xfrm_state *x; in esp4_err() 963 static void esp_destroy(struct xfrm_state *x) in esp_destroy() [all …]
|
| H A D | esp4_offload.c | 35 struct xfrm_state *x; in esp4_gro_receive() 104 static void esp4_gso_encap(struct xfrm_state *x, struct sk_buff *skb) in esp4_gso_encap() 121 static struct sk_buff *xfrm4_tunnel_gso_segment(struct xfrm_state *x, in xfrm4_tunnel_gso_segment() 131 static struct sk_buff *xfrm4_transport_gso_segment(struct xfrm_state *x, in xfrm4_transport_gso_segment() 147 static struct sk_buff *xfrm4_beet_gso_segment(struct xfrm_state *x, in xfrm4_beet_gso_segment() 188 static struct sk_buff *xfrm4_outer_mode_gso_segment(struct xfrm_state *x, in xfrm4_outer_mode_gso_segment() 207 struct xfrm_state *x; in esp4_gso_segment() 249 static int esp_input_tail(struct xfrm_state *x, struct sk_buff *skb) in esp_input_tail() 263 static int esp_xmit(struct xfrm_state *x, struct sk_buff *skb, netdev_features_t features) in esp_xmit()
|
| /linux-6.15/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 | 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() 148 struct xfrm_state *x = sa_entry->x; in mlx5e_ipsec_init_limits() 262 struct xfrm_state *x = sa_entry->x; in mlx5e_ipsec_init_macs() 319 struct xfrm_state *x = sa_entry->x; in mlx5e_ipsec_build_accel_xfrm_attrs() 412 struct xfrm_state *x, in mlx5e_xfrm_validate_state() 580 struct xfrm_state *x = sa_entry->x; in mlx5e_ipsec_set_esn_ops() 620 struct xfrm_state *x = sa_entry->x; in mlx5_ipsec_create_work() 673 struct xfrm_state *x = sa_entry->x; in mlx5e_ipsec_create_dwork() 695 static int mlx5e_xfrm_add_state(struct xfrm_state *x, in mlx5e_xfrm_add_state() [all …]
|
| /linux-6.15/drivers/net/ethernet/chelsio/inline_crypto/ch_ipsec/ |
| H A D | chcr_ipsec.c | 77 static void ch_ipsec_advance_esn_state(struct xfrm_state *x); 78 static void ch_ipsec_xfrm_free_state(struct xfrm_state *x); 79 static void ch_ipsec_xfrm_del_state(struct xfrm_state *x); 80 static int ch_ipsec_xfrm_add_state(struct xfrm_state *x, 139 static int ch_ipsec_setauthsize(struct xfrm_state *x, in ch_ipsec_setauthsize() 163 static int ch_ipsec_setkey(struct xfrm_state *x, in ch_ipsec_setkey() 226 static int ch_ipsec_xfrm_add_state(struct xfrm_state *x, in ch_ipsec_xfrm_add_state() 305 static void ch_ipsec_xfrm_del_state(struct xfrm_state *x) in ch_ipsec_xfrm_del_state() 312 static void ch_ipsec_xfrm_free_state(struct xfrm_state *x) in ch_ipsec_xfrm_free_state() 324 static void ch_ipsec_advance_esn_state(struct xfrm_state *x) in ch_ipsec_advance_esn_state() [all …]
|
| /linux-6.15/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() 448 struct xfrm_state *xs; in ixgbevf_ipsec_tx() 544 struct xfrm_state *xs = NULL; in ixgbevf_ipsec_rx()
|
| H A D | ipsec.h | 19 struct xfrm_state *xs; 36 struct xfrm_state *xs;
|