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()166 struct xfrm_replay_state_esn *replay_esn = x->replay_esn; in xfrm_replay_overflow_bmp() local170 XFRM_SKB_CB(skb)->seq.output.low = ++replay_esn->oseq; in xfrm_replay_overflow_bmp()172 if (unlikely(replay_esn->oseq == 0) && in xfrm_replay_overflow_bmp()174 replay_esn->oseq--; in xfrm_replay_overflow_bmp()191 struct xfrm_replay_state_esn *replay_esn = x->replay_esn; in xfrm_replay_check_bmp() local194 u32 diff = replay_esn->seq - seq; in xfrm_replay_check_bmp()[all …]
429 static inline int xfrm_replay_verify_len(struct xfrm_replay_state_esn *replay_esn, in xfrm_replay_verify_len() argument435 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() argument481 *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() local532 replay_esn = nla_data(re); in xfrm_update_ae_params()533 memcpy(x->replay_esn, replay_esn, in xfrm_update_ae_params()[all …]
489 kfree(x->replay_esn); in ___xfrm_state_destroy()1539 if (orig->replay_esn) { in xfrm_state_clone()
113 struct xfrm_replay_state_esn *replay_esn; in mlx5e_ipsec_update_esn_state() local122 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()
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()
216 struct xfrm_replay_state_esn *replay_esn; member1799 static inline unsigned int xfrm_replay_state_esn_len(struct xfrm_replay_state_esn *replay_esn) in xfrm_replay_state_esn_len() argument1801 return sizeof(*replay_esn) + replay_esn->bmp_len * sizeof(__u32); in xfrm_replay_state_esn_len()1809 x->replay_esn = kmemdup(orig->replay_esn, in xfrm_replay_clone()1810 xfrm_replay_state_esn_len(orig->replay_esn), in xfrm_replay_clone()1812 if (!x->replay_esn) in xfrm_replay_clone()