/linux-6.12.1/net/xfrm/ |
D | xfrm_replay.c | 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() 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 …]
|
D | xfrm_user.c | 166 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()
|
D | xfrm_compat.c | 41 u8 mode, replay_window, flags; member
|
D | xfrm_state.c | 1728 x->props.replay_window = orig->props.replay_window; in xfrm_state_clone()
|
/linux-6.12.1/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ |
D | ipsec.c | 124 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 …]
|
D | ipsec.h | 72 u32 replay_window; member
|
D | macsec.c | 141 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()
|
D | ipsec_offload.c | 104 attrs->replay_esn.replay_window); in mlx5e_ipsec_packet_setup()
|
/linux-6.12.1/include/uapi/linux/ |
D | xfrm.h | 99 __u32 replay_window; member 124 __u32 replay_window; member 391 __u8 replay_window; member
|
/linux-6.12.1/drivers/net/phy/ |
D | nxp-c45-tja11xx-macsec.c | 468 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/ |
D | macsec.h | 243 u32 replay_window; member
|
D | xfrm.h | 206 u8 replay_window; member
|
/linux-6.12.1/drivers/net/ |
D | macsec.c | 718 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/ |
D | test_tunnel_kern.c | 1019 xfrm_replay_window = x->replay_esn->replay_window; in xfrm_get_state_xdp()
|
/linux-6.12.1/drivers/net/phy/mscc/ |
D | mscc_macsec.c | 583 priv->secy->replay_window); in vsc8584_macsec_transformation()
|
/linux-6.12.1/drivers/net/ethernet/marvell/octeontx2/nic/ |
D | cn10k_macsec.c | 276 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/ |
D | aq_macsec.c | 733 sc_record.anti_replay_window = secy->replay_window; in aq_set_rxsc()
|
/linux-6.12.1/net/key/ |
D | af_key.c | 839 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()
|