Home
last modified time | relevance | path

Searched refs:next_pn_halves (Results 1 – 5 of 5) sorted by relevance

/Linux-v6.1/include/net/
Dmacsec.h131 pn_t next_pn_halves; member
182 pn_t next_pn_halves; member
/Linux-v6.1/drivers/net/
Dmacsec.c469 pn = tx_sa->next_pn_halves; in tx_sa_update_pn()
473 tx_sa->next_pn_halves.lower++; in tx_sa_update_pn()
734 if (rx_sa->next_pn_halves.lower >= secy->replay_window) in macsec_post_decrypt()
735 lowest_pn = rx_sa->next_pn_halves.lower - secy->replay_window; in macsec_post_decrypt()
795 if (pn + 1 > rx_sa->next_pn_halves.lower) { in macsec_post_decrypt()
796 rx_sa->next_pn_halves.lower = pn + 1; in macsec_post_decrypt()
798 !pn_same_half(pn, rx_sa->next_pn_halves.lower)) { in macsec_post_decrypt()
799 rx_sa->next_pn_halves.upper++; in macsec_post_decrypt()
800 rx_sa->next_pn_halves.lower = pn + 1; in macsec_post_decrypt()
912 pn_t recovered_pn = rx_sa->next_pn_halves; in macsec_decrypt()
[all …]
/Linux-v6.1/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
Dmacsec.c502 const pn_t *next_pn_halves) in update_macsec_epn() argument
508 epn_state->epn_msb = next_pn_halves->upper; in update_macsec_epn()
509 epn_state->overlap = next_pn_halves->lower < MLX5_MACSEC_EPN_SCOPE_MID ? 0 : 1; in update_macsec_epn()
548 tx_sa->next_pn = ctx_tx_sa->next_pn_halves.lower; in mlx5e_macsec_add_txsa()
553 update_macsec_epn(tx_sa, &ctx_tx_sa->key, &ctx_tx_sa->next_pn_halves); in mlx5e_macsec_add_txsa()
616 if (tx_sa->next_pn != ctx_tx_sa->next_pn_halves.lower) { in mlx5e_macsec_upd_txsa()
948 update_macsec_epn(rx_sa, &ctx_rx_sa->key, &ctx_rx_sa->next_pn_halves); in mlx5e_macsec_add_rxsa()
1020 if (rx_sa->next_pn != ctx_rx_sa->next_pn_halves.lower) { in mlx5e_macsec_upd_rxsa()
/Linux-v6.1/drivers/net/ethernet/marvell/octeontx2/nic/
Dcn10k_macsec.c909 sw_tx_sa->next_pn_halves.lower); in cn10k_mcs_secy_tx_cfg()
945 sw_rx_sa->next_pn_halves.lower); in cn10k_mcs_secy_rx_cfg()
1191 sw_tx_sa->next_pn_halves.lower); in cn10k_mdo_add_txsa()
1224 sw_tx_sa->next_pn_halves.lower); in cn10k_mdo_upd_txsa()
1334 u64 next_pn = rx_sa->next_pn_halves.lower; in cn10k_mdo_add_rxsa()
1374 u64 next_pn = rx_sa->next_pn_halves.lower; in cn10k_mdo_upd_rxsa()
/Linux-v6.1/drivers/net/ethernet/aquantia/atlantic/
Daq_macsec.c547 const u32 next_pn = tx_sa->next_pn_halves.lower; in aq_update_txsa()
864 const u32 next_pn = rx_sa->next_pn_halves.lower; in aq_update_rxsa()