Home
last modified time | relevance | path

Searched refs:replay_window (Results 1 – 18 of 18) sorted by relevance

/linux-6.12.1/net/xfrm/
Dxfrm_replay.c22 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()
127 if (!x->props.replay_window) in xfrm_replay_check_legacy()
137 if (diff >= x->props.replay_window) { in xfrm_replay_check_legacy()
138 x->stats.replay_window++; in xfrm_replay_check_legacy()
169 if (!x->props.replay_window) in xfrm_replay_advance()
175 if (diff < x->props.replay_window) in xfrm_replay_advance()
222 if (!replay_esn->replay_window) in xfrm_replay_check_bmp()
231 if (diff >= replay_esn->replay_window) { in xfrm_replay_check_bmp()
232 x->stats.replay_window++; in xfrm_replay_check_bmp()
[all …]
Dxfrm_user.c166 if (p->replay_window != 0) { in verify_replay()
172 if (rs->replay_window) { in verify_replay()
418 if (p->replay_window) { in verify_newsa_info()
647 if (up->replay_window > up->bmp_len * sizeof(__u32) * 8) { in xfrm_replay_verify_len()
705 x->props.replay_window = min_t(unsigned int, p->replay_window, in copy_from_user_state()
1014 put_unaligned(x->stats.replay_window, &p->stats.replay_window); in copy_to_user_state()
1019 p->replay_window = x->props.replay_window; in copy_to_user_state()
Dxfrm_compat.c41 u8 mode, replay_window, flags; member
Dxfrm_state.c1728 x->props.replay_window = orig->props.replay_window; in xfrm_state_clone()
/linux-6.12.1/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
Dipsec.c124 if (esn >= x->replay_esn->replay_window) in mlx5e_ipsec_update_esn_state()
125 seq_bottom = esn - x->replay_esn->replay_window + 1; in mlx5e_ipsec_update_esn_state()
356 switch (x->replay_esn->replay_window) { in mlx5e_ipsec_build_accel_xfrm_attrs()
358 attrs->replay_esn.replay_window = in mlx5e_ipsec_build_accel_xfrm_attrs()
362 attrs->replay_esn.replay_window = in mlx5e_ipsec_build_accel_xfrm_attrs()
366 attrs->replay_esn.replay_window = in mlx5e_ipsec_build_accel_xfrm_attrs()
370 attrs->replay_esn.replay_window = in mlx5e_ipsec_build_accel_xfrm_attrs()
516 x->replay_esn->replay_window != 32 && in mlx5e_xfrm_validate_state()
517 x->replay_esn->replay_window != 64 && in mlx5e_xfrm_validate_state()
518 x->replay_esn->replay_window != 128 && in mlx5e_xfrm_validate_state()
[all …]
Dipsec.h72 u32 replay_window; member
Dmacsec.c141 u32 replay_window; member
216 switch (attrs->replay_window) { in macsec_set_replay_protection()
382 obj_attrs.replay_window = ctx->secy->replay_window; in mlx5e_macsec_init_sa()
Dipsec_offload.c104 attrs->replay_esn.replay_window); in mlx5e_ipsec_packet_setup()
/linux-6.12.1/include/uapi/linux/
Dxfrm.h99 __u32 replay_window; member
124 __u32 replay_window; member
391 __u8 replay_window; member
/linux-6.12.1/drivers/net/phy/
Dnxp-c45-tja11xx-macsec.c468 u32 replay_window) in nxp_c45_sa_set_pn() argument
479 if (pn > replay_window) in nxp_c45_sa_set_pn()
480 lnpn.full64 = pn - replay_window; in nxp_c45_sa_set_pn()
828 phy_secy->secy->replay_window); in nxp_c45_rx_sc_update()
832 phy_secy->secy->replay_window); in nxp_c45_rx_sc_update()
1214 ctx->secy->replay_window); in nxp_c45_mdo_add_rxsa()
1245 ctx->secy->replay_window); in nxp_c45_mdo_upd_rxsa()
/linux-6.12.1/include/net/
Dmacsec.h243 u32 replay_window; member
Dxfrm.h206 u8 replay_window; member
/linux-6.12.1/drivers/net/
Dmacsec.c718 if (rx_sa->next_pn_halves.lower >= secy->replay_window) in macsec_post_decrypt()
719 lowest_pn = rx_sa->next_pn_halves.lower - secy->replay_window; in macsec_post_decrypt()
1222 late = rx_sa->next_pn_halves.lower >= secy->replay_window && in macsec_handle_frame()
1223 hdr_pn < (rx_sa->next_pn_halves.lower - secy->replay_window); in macsec_handle_frame()
3062 if (nla_put_u32(skb, MACSEC_SECY_ATTR_WINDOW, secy->replay_window)) in nla_put_secy()
3887 secy->replay_window = nla_get_u32(data[IFLA_MACSEC_WINDOW]); in macsec_changelink_common()
3892 secy->replay_window > MACSEC_XPN_MAX_REPLAY_WINDOW) in macsec_changelink_common()
4397 if (nla_put_u32(skb, IFLA_MACSEC_WINDOW, secy->replay_window)) in macsec_fill_info()
/linux-6.12.1/tools/testing/selftests/bpf/progs/
Dtest_tunnel_kern.c1019 xfrm_replay_window = x->replay_esn->replay_window; in xfrm_get_state_xdp()
/linux-6.12.1/drivers/net/phy/mscc/
Dmscc_macsec.c583 priv->secy->replay_window); in vsc8584_macsec_transformation()
/linux-6.12.1/drivers/net/ethernet/marvell/octeontx2/nic/
Dcn10k_macsec.c276 policy = FIELD_PREP(MCS_RX_SECY_PLCY_RW_MASK, secy->replay_window); in cn10k_mcs_write_rx_secy()
/linux-6.12.1/drivers/net/ethernet/aquantia/atlantic/
Daq_macsec.c733 sc_record.anti_replay_window = secy->replay_window; in aq_set_rxsc()
/linux-6.12.1/net/key/
Daf_key.c839 sa->sadb_sa_replay = x->props.replay_window; in __pfkey_xfrm_state2msg()
1128 x->props.replay_window = min_t(unsigned int, sa->sadb_sa_replay, in pfkey_msg2xfrm_state()