Home
last modified time | relevance | path

Searched refs:replay_esn (Results 1 - 14 of 14) sorted by relevance

/kernel/linux/linux-5.10/net/xfrm/
H A Dxfrm_replay.c15 struct xfrm_replay_state_esn *replay_esn = x->replay_esn; in xfrm_replay_seqhi() local
21 seq_hi = replay_esn->seq_hi; in xfrm_replay_seqhi()
22 bottom = replay_esn->seq - replay_esn->replay_window + 1; in xfrm_replay_seqhi()
24 if (likely(replay_esn->seq >= replay_esn->replay_window - 1)) { in xfrm_replay_seqhi()
166 struct xfrm_replay_state_esn *replay_esn = x->replay_esn; in xfrm_replay_overflow_bmp() local
170 XFRM_SKB_CB(skb)->seq.output.low = ++replay_esn in xfrm_replay_overflow_bmp()
191 struct xfrm_replay_state_esn *replay_esn = x->replay_esn; xfrm_replay_check_bmp() local
235 struct xfrm_replay_state_esn *replay_esn = x->replay_esn; xfrm_replay_advance_bmp() local
282 struct xfrm_replay_state_esn *replay_esn = x->replay_esn; xfrm_replay_notify_bmp() local
334 struct xfrm_replay_state_esn *replay_esn = x->replay_esn; xfrm_replay_notify_esn() local
399 struct xfrm_replay_state_esn *replay_esn = x->replay_esn; xfrm_replay_overflow_esn() local
430 struct xfrm_replay_state_esn *replay_esn = x->replay_esn; xfrm_replay_check_esn() local
501 struct xfrm_replay_state_esn *replay_esn = x->replay_esn; xfrm_replay_advance_esn() local
598 struct xfrm_replay_state_esn *replay_esn = x->replay_esn; xfrm_replay_overflow_offload_bmp() local
638 struct xfrm_replay_state_esn *replay_esn = x->replay_esn; xfrm_replay_overflow_offload_esn() local
734 struct xfrm_replay_state_esn *replay_esn = x->replay_esn; xfrm_init_replay() local
[all...]
H A Dxfrm_user.c429 static inline int xfrm_replay_verify_len(struct xfrm_replay_state_esn *replay_esn, in xfrm_replay_verify_len() argument
435 if (!replay_esn || !rp) in xfrm_replay_verify_len()
444 xfrm_replay_state_esn_len(replay_esn) != ulen || in xfrm_replay_verify_len()
445 replay_esn->bmp_len != up->bmp_len) in xfrm_replay_verify_len()
454 static int xfrm_alloc_replay_state_esn(struct xfrm_replay_state_esn **replay_esn, in xfrm_alloc_replay_state_esn() argument
481 *replay_esn = p; in xfrm_alloc_replay_state_esn()
530 if (re && x->replay_esn && x->preplay_esn) { in xfrm_update_ae_params()
531 struct xfrm_replay_state_esn *replay_esn; in xfrm_update_ae_params() local
532 replay_esn = nla_data(re); in xfrm_update_ae_params()
533 memcpy(x->replay_esn, replay_es in xfrm_update_ae_params()
[all...]
H A Dxfrm_state.c489 kfree(x->replay_esn); in ___xfrm_state_destroy()
1539 if (orig->replay_esn) { in xfrm_state_clone()
/kernel/linux/linux-6.6/net/xfrm/
H A Dxfrm_replay.c15 struct xfrm_replay_state_esn *replay_esn = x->replay_esn; in xfrm_replay_seqhi() local
21 seq_hi = replay_esn->seq_hi; in xfrm_replay_seqhi()
22 bottom = replay_esn->seq - replay_esn->replay_window + 1; in xfrm_replay_seqhi()
24 if (likely(replay_esn->seq >= replay_esn->replay_window - 1)) { in xfrm_replay_seqhi()
192 struct xfrm_replay_state_esn *replay_esn = x->replay_esn; in xfrm_replay_overflow_bmp() local
196 XFRM_SKB_CB(skb)->seq.output.low = ++replay_esn in xfrm_replay_overflow_bmp()
217 struct xfrm_replay_state_esn *replay_esn = x->replay_esn; xfrm_replay_check_bmp() local
261 struct xfrm_replay_state_esn *replay_esn = x->replay_esn; xfrm_replay_advance_bmp() local
308 struct xfrm_replay_state_esn *replay_esn = x->replay_esn; xfrm_replay_notify_bmp() local
360 struct xfrm_replay_state_esn *replay_esn = x->replay_esn; xfrm_replay_notify_esn() local
425 struct xfrm_replay_state_esn *replay_esn = x->replay_esn; xfrm_replay_overflow_esn() local
456 struct xfrm_replay_state_esn *replay_esn = x->replay_esn; xfrm_replay_check_esn() local
558 struct xfrm_replay_state_esn *replay_esn = x->replay_esn; xfrm_replay_advance_esn() local
655 struct xfrm_replay_state_esn *replay_esn = x->replay_esn; xfrm_replay_overflow_offload_bmp() local
695 struct xfrm_replay_state_esn *replay_esn = x->replay_esn; xfrm_replay_overflow_offload_esn() local
771 struct xfrm_replay_state_esn *replay_esn = x->replay_esn; xfrm_init_replay() local
[all...]
H A Dxfrm_user.c517 static inline int xfrm_replay_verify_len(struct xfrm_replay_state_esn *replay_esn, in xfrm_replay_verify_len() argument
524 if (!replay_esn || !rp) in xfrm_replay_verify_len()
537 if (xfrm_replay_state_esn_len(replay_esn) != ulen) { in xfrm_replay_verify_len()
542 if (replay_esn->bmp_len != up->bmp_len) { in xfrm_replay_verify_len()
555 static int xfrm_alloc_replay_state_esn(struct xfrm_replay_state_esn **replay_esn, in xfrm_alloc_replay_state_esn() argument
582 *replay_esn = p; in xfrm_alloc_replay_state_esn()
631 if (re && x->replay_esn && x->preplay_esn) { in xfrm_update_ae_params()
632 struct xfrm_replay_state_esn *replay_esn; in xfrm_update_ae_params() local
633 replay_esn = nla_data(re); in xfrm_update_ae_params()
634 memcpy(x->replay_esn, replay_es in xfrm_update_ae_params()
[all...]
H A Dxfrm_state.c532 kfree(x->replay_esn); in ___xfrm_state_destroy()
1723 if (orig->replay_esn) { in xfrm_state_clone()
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
H A Dipsec.c95 esn = x->replay_esn->seq; in mlx5e_ipsec_update_esn_state()
96 esn_msb = x->replay_esn->seq_hi; in mlx5e_ipsec_update_esn_state()
99 esn = x->replay_esn->oseq; in mlx5e_ipsec_update_esn_state()
100 esn_msb = x->replay_esn->oseq_hi; in mlx5e_ipsec_update_esn_state()
109 esn = x->replay_esn->seq; in mlx5e_ipsec_update_esn_state()
118 if (esn >= x->replay_esn->replay_window) in mlx5e_ipsec_update_esn_state()
119 seq_bottom = esn - x->replay_esn->replay_window + 1; in mlx5e_ipsec_update_esn_state()
343 attrs->replay_esn.trigger = true; in mlx5e_ipsec_build_accel_xfrm_attrs()
344 attrs->replay_esn.esn = sa_entry->esn_state.esn; in mlx5e_ipsec_build_accel_xfrm_attrs()
345 attrs->replay_esn in mlx5e_ipsec_build_accel_xfrm_attrs()
[all...]
H A Dipsec_offload.c97 if (attrs->replay_esn.trigger) { in mlx5e_ipsec_packet_setup()
102 attrs->replay_esn.replay_window); in mlx5e_ipsec_packet_setup()
107 attrs->replay_esn.esn); in mlx5e_ipsec_packet_setup()
159 if (attrs->replay_esn.trigger) { in mlx5_create_ipsec_obj()
161 MLX5_SET(ipsec_obj, obj, esn_msb, attrs->replay_esn.esn_msb); in mlx5_create_ipsec_obj()
162 MLX5_SET(ipsec_obj, obj, esn_overlap, attrs->replay_esn.overlap); in mlx5_create_ipsec_obj()
275 MLX5_SET(ipsec_obj, obj, esn_msb, attrs->replay_esn.esn_msb); in mlx5_modify_ipsec_obj()
276 MLX5_SET(ipsec_obj, obj, esn_overlap, attrs->replay_esn.overlap); in mlx5_modify_ipsec_obj()
461 if (attrs->replay_esn.trigger && in mlx5e_ipsec_handle_event()
H A Dipsec_rxtx.c156 struct xfrm_replay_state_esn *replay_esn = x->replay_esn; in mlx5e_ipsec_set_iv_esn() local
157 __u32 oseq = replay_esn->oseq; in mlx5e_ipsec_set_iv_esn()
H A Dipsec.h99 struct mlx5_replay_esn replay_esn; member
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
H A Dipsec.c113 struct xfrm_replay_state_esn *replay_esn; in mlx5e_ipsec_update_esn_state() local
122 replay_esn = sa_entry->x->replay_esn; in mlx5e_ipsec_update_esn_state()
123 if (replay_esn->seq >= replay_esn->replay_window) in mlx5e_ipsec_update_esn_state()
124 seq_bottom = replay_esn->seq - replay_esn->replay_window + 1; in mlx5e_ipsec_update_esn_state()
H A Dipsec_rxtx.c173 struct xfrm_replay_state_esn *replay_esn = x->replay_esn; in mlx5e_ipsec_set_iv_esn() local
174 __u32 oseq = replay_esn->oseq; in mlx5e_ipsec_set_iv_esn()
/kernel/linux/linux-5.10/include/net/
H A Dxfrm.h216 struct xfrm_replay_state_esn *replay_esn; member
1800 static inline unsigned int xfrm_replay_state_esn_len(struct xfrm_replay_state_esn *replay_esn) in xfrm_replay_state_esn_len() argument
1802 return sizeof(*replay_esn) + replay_esn->bmp_len * sizeof(__u32); in xfrm_replay_state_esn_len()
1810 x->replay_esn = kmemdup(orig->replay_esn, in xfrm_replay_clone()
1811 xfrm_replay_state_esn_len(orig->replay_esn), in xfrm_replay_clone()
1813 if (!x->replay_esn) in xfrm_replay_clone()
/kernel/linux/linux-6.6/include/net/
H A Dxfrm.h241 struct xfrm_replay_state_esn *replay_esn; member
1875 static inline unsigned int xfrm_replay_state_esn_len(struct xfrm_replay_state_esn *replay_esn) in xfrm_replay_state_esn_len() argument
1877 return sizeof(*replay_esn) + replay_esn->bmp_len * sizeof(__u32); in xfrm_replay_state_esn_len()
1885 x->replay_esn = kmemdup(orig->replay_esn, in xfrm_replay_clone()
1886 xfrm_replay_state_esn_len(orig->replay_esn), in xfrm_replay_clone()
1888 if (!x->replay_esn) in xfrm_replay_clone()

Completed in 31 milliseconds