Home
last modified time | relevance | path

Searched refs:rx_sa (Results 1 – 12 of 12) sorted by relevance

/linux-6.6.21/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
Dmacsec.c82 struct mlx5e_macsec_sa *rx_sa[MACSEC_NUM_AN]; member
396 struct mlx5e_macsec_sa *rx_sa, in macsec_rx_sa_active_update() argument
403 if (rx_sa->active == active) in macsec_rx_sa_active_update()
406 rx_sa->active = active; in macsec_rx_sa_active_update()
408 mlx5e_macsec_cleanup_sa(macsec, rx_sa, false, ctx->secy->netdev, *fs_id); in macsec_rx_sa_active_update()
412 err = mlx5e_macsec_init_sa(ctx, rx_sa, true, false, fs_id); in macsec_rx_sa_active_update()
414 rx_sa->active = false; in macsec_rx_sa_active_update()
738 struct mlx5e_macsec_sa *rx_sa; in mlx5e_macsec_upd_rxsc() local
766 rx_sa = rx_sc->rx_sa[i]; in mlx5e_macsec_upd_rxsc()
767 if (!rx_sa) in mlx5e_macsec_upd_rxsc()
[all …]
/linux-6.6.21/drivers/net/
Dmacsec.c134 struct macsec_rx_sa *rx_sa; member
722 struct macsec_rx_sa *rx_sa = macsec_skb_cb(skb)->rx_sa; in macsec_post_decrypt() local
723 struct pcpu_rx_sc_stats *rxsc_stats = this_cpu_ptr(rx_sa->sc->stats); in macsec_post_decrypt()
727 spin_lock(&rx_sa->lock); in macsec_post_decrypt()
728 if (rx_sa->next_pn_halves.lower >= secy->replay_window) in macsec_post_decrypt()
729 lowest_pn = rx_sa->next_pn_halves.lower - secy->replay_window; in macsec_post_decrypt()
736 spin_unlock(&rx_sa->lock); in macsec_post_decrypt()
755 spin_unlock(&rx_sa->lock); in macsec_post_decrypt()
763 this_cpu_inc(rx_sa->stats->InPktsNotValid); in macsec_post_decrypt()
771 this_cpu_inc(rx_sa->stats->InPktsInvalid); in macsec_post_decrypt()
[all …]
/linux-6.6.21/drivers/net/netdevsim/
Dmacsec.c211 idx = nsim_macsec_find_rxsc(secy, ctx->sa.rx_sa->sc->sci); in nsim_macsec_add_rxsa()
214 __func__, sci_to_cpu(ctx->sa.rx_sa->sc->sci)); in nsim_macsec_add_rxsa()
219 __func__, sci_to_cpu(ctx->sa.rx_sa->sc->sci), ctx->sa.assoc_num); in nsim_macsec_add_rxsa()
238 idx = nsim_macsec_find_rxsc(secy, ctx->sa.rx_sa->sc->sci); in nsim_macsec_upd_rxsa()
241 __func__, sci_to_cpu(ctx->sa.rx_sa->sc->sci)); in nsim_macsec_upd_rxsa()
246 __func__, sci_to_cpu(ctx->sa.rx_sa->sc->sci), ctx->sa.assoc_num); in nsim_macsec_upd_rxsa()
265 idx = nsim_macsec_find_rxsc(secy, ctx->sa.rx_sa->sc->sci); in nsim_macsec_del_rxsa()
268 __func__, sci_to_cpu(ctx->sa.rx_sa->sc->sci)); in nsim_macsec_del_rxsa()
273 __func__, sci_to_cpu(ctx->sa.rx_sa->sc->sci), ctx->sa.assoc_num); in nsim_macsec_del_rxsa()
/linux-6.6.21/drivers/net/ethernet/intel/ixgbevf/
Dipsec.h17 struct rx_sa { struct
53 struct rx_sa *rx_tbl;
Dipsec.c112 struct rx_sa *r = &ipsec->rx_tbl[i]; in ixgbevf_ipsec_restore()
183 struct rx_sa *rsa; in ixgbevf_ipsec_find_rx_state()
290 struct rx_sa rsa; in ixgbevf_ipsec_add_sa()
414 memset(&ipsec->rx_tbl[sa_idx], 0, sizeof(struct rx_sa)); in ixgbevf_ipsec_del_sa()
643 size = sizeof(struct rx_sa) * IXGBE_IPSEC_MAX_SA_COUNT; in ixgbevf_init_ipsec_offload()
/linux-6.6.21/drivers/net/ethernet/intel/ixgbe/
Dixgbe_ipsec.h31 struct rx_sa { struct
70 struct rx_sa *rx_tbl;
Dixgbe_ipsec.c319 struct rx_sa *r = &ipsec->rx_tbl[i]; in ixgbe_ipsec_restore()
396 struct rx_sa *rsa; in ixgbe_ipsec_find_rx_state()
595 struct rx_sa rsa; in ixgbe_ipsec_add_sa()
767 struct rx_sa *rsa; in ixgbe_ipsec_del_sa()
797 memset(rsa, 0, sizeof(struct rx_sa)); in ixgbe_ipsec_del_sa()
1013 struct rx_sa *rsa; in ixgbe_ipsec_vf_del_sa()
1257 size = sizeof(struct rx_sa) * IXGBE_IPSEC_MAX_SA_COUNT; in ixgbe_init_ipsec_offload()
/linux-6.6.21/drivers/net/phy/mscc/
Dmscc_macsec.c387 if (bank == MACSEC_INGR && flow->match.sci && flow->rx_sa->sc->sci) { in vsc8584_macsec_flow()
388 u64 sci = (__force u64)flow->rx_sa->sc->sci; in vsc8584_macsec_flow()
467 if ((flow->bank == MACSEC_INGR && flow->rx_sa && !flow->rx_sa->active) || in vsc8584_macsec_flow_enable()
577 flow->rx_sa->next_pn : flow->tx_sa->next_pn); in vsc8584_macsec_transformation()
586 sci = (__force u64)(bank == MACSEC_INGR ? flow->rx_sa->sc->sci : priv->secy->sci); in vsc8584_macsec_transformation()
698 flow->rx_sa = ctx->sa.rx_sa; in __vsc8584_macsec_add_rxsa()
820 if (flow->bank == MACSEC_INGR && flow->rx_sa && in vsc8584_macsec_del_rxsc()
821 flow->rx_sa->sc->sci == ctx->rx_sc->sci) in vsc8584_macsec_del_rxsc()
Dmscc_macsec.h85 struct macsec_rx_sa *rx_sa; member
/linux-6.6.21/drivers/net/ethernet/aquantia/atlantic/
Daq_macsec.c860 const struct macsec_rx_sa *rx_sa, in aq_update_rxsa() argument
864 const u32 next_pn = rx_sa->next_pn_halves.lower; in aq_update_rxsa()
871 sa_record.valid = rx_sa->active; in aq_update_rxsa()
910 const struct macsec_rx_sc *rx_sc = ctx->sa.rx_sa->sc; in aq_mdo_add_rxsa()
928 ctx->sa.rx_sa, ctx->sa.key, in aq_mdo_add_rxsa()
937 const struct macsec_rx_sc *rx_sc = ctx->sa.rx_sa->sc; in aq_mdo_upd_rxsa()
949 secy, ctx->sa.rx_sa, NULL, in aq_mdo_upd_rxsa()
986 const struct macsec_rx_sc *rx_sc = ctx->sa.rx_sa->sc; in aq_mdo_del_rxsa()
1137 struct macsec_rx_sa *rx_sa; in aq_mdo_get_rx_sa_stats() local
1160 rx_sa = rcu_dereference_bh(aq_rxsc->sw_rxsc->sa[ctx->sa.assoc_num]); in aq_mdo_get_rx_sa_stats()
[all …]
/linux-6.6.21/drivers/net/ethernet/marvell/octeontx2/nic/
Dcn10k_macsec.c1470 struct macsec_rx_sc *sw_rx_sc = ctx->sa.rx_sa->sc; in cn10k_mdo_add_rxsa()
1472 struct macsec_rx_sa *rx_sa = ctx->sa.rx_sa; in cn10k_mdo_add_rxsa() local
1474 bool sa_in_use = rx_sa->active; in cn10k_mdo_add_rxsa()
1490 memcpy(&rxsc->salt[sa_num], rx_sa->key.salt.bytes, MACSEC_SALT_LEN); in cn10k_mdo_add_rxsa()
1491 rxsc->ssci[sa_num] = rx_sa->ssci; in cn10k_mdo_add_rxsa()
1502 rx_sa->next_pn); in cn10k_mdo_add_rxsa()
1513 struct macsec_rx_sc *sw_rx_sc = ctx->sa.rx_sa->sc; in cn10k_mdo_upd_rxsa()
1515 struct macsec_rx_sa *rx_sa = ctx->sa.rx_sa; in cn10k_mdo_upd_rxsa() local
1517 bool sa_in_use = rx_sa->active; in cn10k_mdo_upd_rxsa()
1538 rx_sa->next_pn); in cn10k_mdo_upd_rxsa()
[all …]
/linux-6.6.21/include/net/
Dmacsec.h265 struct macsec_rx_sa *rx_sa; member