Home
last modified time | relevance | path

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

/linux-6.3-rc2/net/xfrm/
A Dxfrm_replay.c15 struct xfrm_replay_state_esn *replay_esn = x->replay_esn; in xfrm_replay_seqhi() local
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
217 struct xfrm_replay_state_esn *replay_esn = x->replay_esn; in xfrm_replay_check_bmp() local
236 pos = (replay_esn->seq - 1) % replay_esn->replay_window; in xfrm_replay_check_bmp()
261 struct xfrm_replay_state_esn *replay_esn = x->replay_esn; in xfrm_replay_advance_bmp() local
268 pos = (replay_esn->seq - 1) % replay_esn->replay_window; in xfrm_replay_advance_bmp()
308 struct xfrm_replay_state_esn *replay_esn = x->replay_esn; in xfrm_replay_notify_bmp() local
360 struct xfrm_replay_state_esn *replay_esn = x->replay_esn; in xfrm_replay_notify_esn() local
[all …]
A Dxfrm_user.c524 if (!replay_esn || !rp) in xfrm_replay_verify_len()
542 if (replay_esn->bmp_len != up->bmp_len) { in xfrm_replay_verify_len()
582 *replay_esn = p; in xfrm_alloc_replay_state_esn()
633 replay_esn = nla_data(re); in xfrm_update_ae_params()
634 memcpy(x->replay_esn, replay_esn, in xfrm_update_ae_params()
636 memcpy(x->preplay_esn, replay_esn, in xfrm_update_ae_params()
1123 if (x->replay_esn) in copy_to_user_state_extra()
1126 x->replay_esn); in copy_to_user_state_extra()
2371 if (x->replay_esn) { in build_aevent()
2374 x->replay_esn); in build_aevent()
[all …]
A Dxfrm_state.c532 kfree(x->replay_esn); in ___xfrm_state_destroy()
1726 if (orig->replay_esn) { in xfrm_state_clone()
/linux-6.3-rc2/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
A Dipsec.c55 struct xfrm_replay_state_esn *replay_esn; in mlx5e_ipsec_update_esn_state() local
64 replay_esn = sa_entry->x->replay_esn; in mlx5e_ipsec_update_esn_state()
65 if (replay_esn->seq >= replay_esn->replay_window) in mlx5e_ipsec_update_esn_state()
66 seq_bottom = replay_esn->seq - replay_esn->replay_window + 1; in mlx5e_ipsec_update_esn_state()
148 attrs->replay_window = x->replay_esn->replay_window; in mlx5e_ipsec_build_accel_xfrm_attrs()
261 if (x->replay_esn && x->replay_esn->replay_window != 32 && in mlx5e_xfrm_validate_state()
262 x->replay_esn->replay_window != 64 && in mlx5e_xfrm_validate_state()
263 x->replay_esn->replay_window != 128 && in mlx5e_xfrm_validate_state()
264 x->replay_esn->replay_window != 256) { in mlx5e_xfrm_validate_state()
A Dipsec_rxtx.c153 struct xfrm_replay_state_esn *replay_esn = x->replay_esn; in mlx5e_ipsec_set_iv_esn() local
154 __u32 oseq = replay_esn->oseq; in mlx5e_ipsec_set_iv_esn()
/linux-6.3-rc2/include/net/
A Dxfrm.h236 struct xfrm_replay_state_esn *replay_esn; member
1869 static inline unsigned int xfrm_replay_state_esn_len(struct xfrm_replay_state_esn *replay_esn) in xfrm_replay_state_esn_len() argument
1871 return sizeof(*replay_esn) + replay_esn->bmp_len * sizeof(__u32); in xfrm_replay_state_esn_len()
1879 x->replay_esn = kmemdup(orig->replay_esn, in xfrm_replay_clone()
1880 xfrm_replay_state_esn_len(orig->replay_esn), in xfrm_replay_clone()
1882 if (!x->replay_esn) in xfrm_replay_clone()

Completed in 28 milliseconds