Home
last modified time | relevance | path

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

/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
Dmacsec.c84 struct mlx5e_macsec_sa *rx_sa[MACSEC_NUM_AN]; member
427 struct mlx5e_macsec_sa *rx_sa, in macsec_rx_sa_active_update() argument
434 if (rx_sa->active == active) in macsec_rx_sa_active_update()
437 rx_sa->active = active; in macsec_rx_sa_active_update()
439 mlx5e_macsec_cleanup_sa(macsec, rx_sa, false); in macsec_rx_sa_active_update()
443 err = mlx5e_macsec_init_sa(ctx, rx_sa, true, false); in macsec_rx_sa_active_update()
445 rx_sa->active = false; in macsec_rx_sa_active_update()
783 struct mlx5e_macsec_sa *rx_sa; in mlx5e_macsec_upd_rxsc() local
811 rx_sa = rx_sc->rx_sa[i]; in mlx5e_macsec_upd_rxsc()
812 if (!rx_sa) in mlx5e_macsec_upd_rxsc()
[all …]
/drivers/net/
Dmacsec.c134 struct macsec_rx_sa *rx_sa; member
728 struct macsec_rx_sa *rx_sa = macsec_skb_cb(skb)->rx_sa; in macsec_post_decrypt() local
729 struct pcpu_rx_sc_stats *rxsc_stats = this_cpu_ptr(rx_sa->sc->stats); in macsec_post_decrypt()
733 spin_lock(&rx_sa->lock); in macsec_post_decrypt()
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()
742 spin_unlock(&rx_sa->lock); in macsec_post_decrypt()
761 spin_unlock(&rx_sa->lock); in macsec_post_decrypt()
769 this_cpu_inc(rx_sa->stats->InPktsNotValid); in macsec_post_decrypt()
777 this_cpu_inc(rx_sa->stats->InPktsInvalid); in macsec_post_decrypt()
[all …]
/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()
284 struct rx_sa rsa; in ixgbevf_ipsec_add_sa()
408 memset(&ipsec->rx_tbl[sa_idx], 0, sizeof(struct rx_sa)); in ixgbevf_ipsec_del_sa()
637 size = sizeof(struct rx_sa) * IXGBE_IPSEC_MAX_SA_COUNT; in ixgbevf_init_ipsec_offload()
/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()
589 struct rx_sa rsa; in ixgbe_ipsec_add_sa()
761 struct rx_sa *rsa; in ixgbe_ipsec_del_sa()
791 memset(rsa, 0, sizeof(struct rx_sa)); in ixgbe_ipsec_del_sa()
1007 struct rx_sa *rsa; in ixgbe_ipsec_vf_del_sa()
1251 size = sizeof(struct rx_sa) * IXGBE_IPSEC_MAX_SA_COUNT; in ixgbe_init_ipsec_offload()
/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()
711 flow->rx_sa = ctx->sa.rx_sa; in __vsc8584_macsec_add_rxsa()
813 if (flow->bank == MACSEC_INGR && flow->rx_sa && in vsc8584_macsec_del_rxsc()
814 flow->rx_sa->sc->sci == ctx->rx_sc->sci) in vsc8584_macsec_del_rxsc()
Dmscc_macsec.h87 struct macsec_rx_sa *rx_sa; member
/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()
909 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()
936 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()
985 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 …]
/drivers/net/ethernet/marvell/octeontx2/nic/
Dcn10k_macsec.c1352 struct macsec_rx_sc *sw_rx_sc = ctx->sa.rx_sa->sc; in cn10k_mdo_add_rxsa()
1355 struct macsec_rx_sa *rx_sa = ctx->sa.rx_sa; in cn10k_mdo_add_rxsa() local
1356 u64 next_pn = rx_sa->next_pn_halves.lower; in cn10k_mdo_add_rxsa()
1358 bool sa_in_use = rx_sa->active; in cn10k_mdo_add_rxsa()
1392 struct macsec_rx_sc *sw_rx_sc = ctx->sa.rx_sa->sc; in cn10k_mdo_upd_rxsa()
1395 struct macsec_rx_sa *rx_sa = ctx->sa.rx_sa; in cn10k_mdo_upd_rxsa() local
1396 u64 next_pn = rx_sa->next_pn_halves.lower; in cn10k_mdo_upd_rxsa()
1398 bool sa_in_use = rx_sa->active; in cn10k_mdo_upd_rxsa()
1425 struct macsec_rx_sc *sw_rx_sc = ctx->sa.rx_sa->sc; in cn10k_mdo_del_rxsa()
1570 struct macsec_rx_sc *sw_rx_sc = ctx->sa.rx_sa->sc; in cn10k_mdo_get_rx_sa_stats()