Searched refs:replay_esn (Results 1 – 6 of 6) sorted by relevance
15 struct xfrm_replay_state_esn *replay_esn = x->replay_esn; in xfrm_replay_seqhi() local21 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()165 struct xfrm_replay_state_esn *replay_esn = x->replay_esn; in xfrm_replay_overflow_bmp() local169 XFRM_SKB_CB(skb)->seq.output.low = ++replay_esn->oseq; in xfrm_replay_overflow_bmp()171 if (unlikely(replay_esn->oseq == 0)) { in xfrm_replay_overflow_bmp()172 replay_esn->oseq--; in xfrm_replay_overflow_bmp()189 struct xfrm_replay_state_esn *replay_esn = x->replay_esn; in xfrm_replay_check_bmp() local192 u32 diff = replay_esn->seq - seq; in xfrm_replay_check_bmp()[all …]
424 static inline int xfrm_replay_verify_len(struct xfrm_replay_state_esn *replay_esn, in xfrm_replay_verify_len() argument430 if (!replay_esn || !rp) in xfrm_replay_verify_len()439 xfrm_replay_state_esn_len(replay_esn) != ulen || in xfrm_replay_verify_len()440 replay_esn->bmp_len != up->bmp_len) in xfrm_replay_verify_len()449 static int xfrm_alloc_replay_state_esn(struct xfrm_replay_state_esn **replay_esn, in xfrm_alloc_replay_state_esn() argument476 *replay_esn = p; in xfrm_alloc_replay_state_esn()525 struct xfrm_replay_state_esn *replay_esn; in xfrm_update_ae_params() local526 replay_esn = nla_data(re); in xfrm_update_ae_params()527 memcpy(x->replay_esn, replay_esn, in xfrm_update_ae_params()528 xfrm_replay_state_esn_len(replay_esn)); in xfrm_update_ae_params()[all …]
490 kfree(x->replay_esn); in ___xfrm_state_destroy()1504 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()
171 struct xfrm_replay_state_esn *replay_esn = x->replay_esn; in mlx5e_ipsec_set_iv_esn() local172 __u32 oseq = replay_esn->oseq; in mlx5e_ipsec_set_iv_esn()
208 struct xfrm_replay_state_esn *replay_esn; member1763 static inline unsigned int xfrm_replay_state_esn_len(struct xfrm_replay_state_esn *replay_esn) in xfrm_replay_state_esn_len() argument1765 return sizeof(*replay_esn) + replay_esn->bmp_len * sizeof(__u32); in xfrm_replay_state_esn_len()1772 x->replay_esn = kzalloc(xfrm_replay_state_esn_len(orig->replay_esn), in xfrm_replay_clone()1774 if (!x->replay_esn) in xfrm_replay_clone()1777 x->replay_esn->bmp_len = orig->replay_esn->bmp_len; in xfrm_replay_clone()1778 x->replay_esn->replay_window = orig->replay_esn->replay_window; in xfrm_replay_clone()1780 x->preplay_esn = kmemdup(x->replay_esn, in xfrm_replay_clone()1781 xfrm_replay_state_esn_len(x->replay_esn), in xfrm_replay_clone()1784 kfree(x->replay_esn); in xfrm_replay_clone()