Searched refs:replay_esn (Results 1 – 6 of 6) sorted by relevance
27 struct xfrm_replay_state_esn *replay_esn = x->replay_esn; in xfrm_replay_seqhi() local33 seq_hi = replay_esn->seq_hi; in xfrm_replay_seqhi()34 bottom = replay_esn->seq - replay_esn->replay_window + 1; in xfrm_replay_seqhi()36 if (likely(replay_esn->seq >= replay_esn->replay_window - 1)) { in xfrm_replay_seqhi()177 struct xfrm_replay_state_esn *replay_esn = x->replay_esn; in xfrm_replay_overflow_bmp() local181 XFRM_SKB_CB(skb)->seq.output.low = ++replay_esn->oseq; in xfrm_replay_overflow_bmp()183 if (unlikely(replay_esn->oseq == 0)) { in xfrm_replay_overflow_bmp()184 replay_esn->oseq--; in xfrm_replay_overflow_bmp()201 struct xfrm_replay_state_esn *replay_esn = x->replay_esn; in xfrm_replay_check_bmp() local204 u32 diff = replay_esn->seq - seq; in xfrm_replay_check_bmp()[all …]
404 static inline int xfrm_replay_verify_len(struct xfrm_replay_state_esn *replay_esn, in xfrm_replay_verify_len() argument410 if (!replay_esn || !rp) in xfrm_replay_verify_len()419 xfrm_replay_state_esn_len(replay_esn) != ulen || in xfrm_replay_verify_len()420 replay_esn->bmp_len != up->bmp_len) in xfrm_replay_verify_len()429 static int xfrm_alloc_replay_state_esn(struct xfrm_replay_state_esn **replay_esn, in xfrm_alloc_replay_state_esn() argument456 *replay_esn = p; in xfrm_alloc_replay_state_esn()505 struct xfrm_replay_state_esn *replay_esn; in xfrm_update_ae_params() local506 replay_esn = nla_data(re); in xfrm_update_ae_params()507 memcpy(x->replay_esn, replay_esn, in xfrm_update_ae_params()508 xfrm_replay_state_esn_len(replay_esn)); in xfrm_update_ae_params()[all …]
439 kfree(x->replay_esn); in xfrm_state_gc_destroy()1391 if (orig->replay_esn) { in xfrm_state_clone()
117 struct xfrm_replay_state_esn *replay_esn; in mlx5e_ipsec_update_esn_state() local127 replay_esn = sa_entry->x->replay_esn; in mlx5e_ipsec_update_esn_state()128 seq_bottom = replay_esn->seq - replay_esn->replay_window + 1; in mlx5e_ipsec_update_esn_state()
183 struct xfrm_replay_state_esn *replay_esn = x->replay_esn; in mlx5e_ipsec_set_iv_esn() local184 __u32 oseq = replay_esn->oseq; in mlx5e_ipsec_set_iv_esn()
197 struct xfrm_replay_state_esn *replay_esn; member1843 static inline unsigned int xfrm_replay_state_esn_len(struct xfrm_replay_state_esn *replay_esn) in xfrm_replay_state_esn_len() argument1845 return sizeof(*replay_esn) + replay_esn->bmp_len * sizeof(__u32); in xfrm_replay_state_esn_len()1852 x->replay_esn = kzalloc(xfrm_replay_state_esn_len(orig->replay_esn), in xfrm_replay_clone()1854 if (!x->replay_esn) in xfrm_replay_clone()1857 x->replay_esn->bmp_len = orig->replay_esn->bmp_len; in xfrm_replay_clone()1858 x->replay_esn->replay_window = orig->replay_esn->replay_window; in xfrm_replay_clone()1860 x->preplay_esn = kmemdup(x->replay_esn, in xfrm_replay_clone()1861 xfrm_replay_state_esn_len(x->replay_esn), in xfrm_replay_clone()1864 kfree(x->replay_esn); in xfrm_replay_clone()