Home
last modified time | relevance | path

Searched refs:replay_esn (Results 1 – 8 of 8) sorted by relevance

/linux-6.6.21/net/xfrm/
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->oseq; in xfrm_replay_overflow_bmp()
198 if (unlikely(replay_esn->oseq == 0) && in xfrm_replay_overflow_bmp()
200 replay_esn->oseq--; in xfrm_replay_overflow_bmp()
217 struct xfrm_replay_state_esn *replay_esn = x->replay_esn; in xfrm_replay_check_bmp() local
220 u32 diff = replay_esn->seq - seq; in xfrm_replay_check_bmp()
[all …]
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_esn, in xfrm_update_ae_params()
[all …]
Dxfrm_state.c532 kfree(x->replay_esn); in ___xfrm_state_destroy()
1723 if (orig->replay_esn) { in xfrm_state_clone()
/linux-6.6.21/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
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.esn_msb = sa_entry->esn_state.esn_msb; in mlx5e_ipsec_build_accel_xfrm_attrs()
[all …]
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()
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()
Dipsec.h99 struct mlx5_replay_esn replay_esn; member
/linux-6.6.21/include/net/
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()