Home
last modified time | relevance | path

Searched refs:rx_sc (Results 1 – 7 of 7) sorted by relevance

/linux-6.6.21/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
Dmacsec.c76 struct mlx5e_macsec_rx_sc *rx_sc; member
655 const struct macsec_rx_sc *ctx_rx_sc = ctx->rx_sc; in mlx5e_macsec_add_rxsc()
657 struct mlx5e_macsec_rx_sc *rx_sc; in mlx5e_macsec_add_rxsc() local
672 rx_sc = mlx5e_macsec_get_rx_sc_from_sc_list(rx_sc_list, ctx_rx_sc->sci); in mlx5e_macsec_add_rxsc()
673 if (rx_sc) { in mlx5e_macsec_add_rxsc()
680 rx_sc = kzalloc(sizeof(*rx_sc), GFP_KERNEL); in mlx5e_macsec_add_rxsc()
681 if (!rx_sc) { in mlx5e_macsec_add_rxsc()
692 sc_xarray_element->rx_sc = rx_sc; in mlx5e_macsec_add_rxsc()
703 rx_sc->md_dst = metadata_dst_alloc(0, METADATA_MACSEC, GFP_KERNEL); in mlx5e_macsec_add_rxsc()
704 if (!rx_sc->md_dst) { in mlx5e_macsec_add_rxsc()
[all …]
/linux-6.6.21/drivers/net/
Dmacsec.c54 for (sc = rcu_dereference_bh(secy->rx_sc); \
58 for (sc = rtnl_dereference(secy->rx_sc); \
154 static struct macsec_rx_sa *macsec_active_rxsa_get(struct macsec_rx_sc *rx_sc) in macsec_active_rxsa_get() argument
160 sa = macsec_rxsa_get(rx_sc->sa[an]); in macsec_active_rxsa_get()
169 struct macsec_rx_sc *rx_sc = container_of(head, struct macsec_rx_sc, rcu_head); in free_rx_sc_rcu() local
171 free_percpu(rx_sc->stats); in free_rx_sc_rcu()
172 kfree(rx_sc); in free_rx_sc_rcu()
833 struct macsec_rx_sc *rx_sc = rx_sa->sc; in macsec_decrypt_done() local
862 macsec_rxsc_put(rx_sc); in macsec_decrypt_done()
969 struct macsec_rx_sc *rx_sc; in find_rx_sc() local
[all …]
/linux-6.6.21/drivers/net/ethernet/aquantia/atlantic/
Daq_macsec.c691 const struct macsec_rx_sc *rx_sc = aq_rxsc->sw_rxsc; in aq_set_rxsc() local
699 put_unaligned_be64((__force u64)rx_sc->sci, pre_class_record.sci); in aq_set_rxsc()
705 aq_ether_addr_to_mac(pre_class_record.mac_sa, (char *)&rx_sc->sci); in aq_set_rxsc()
763 cfg->aq_rxsc[rxsc_idx].sw_rxsc = ctx->rx_sc; in aq_mdo_add_rxsc()
782 rxsc_idx = aq_get_rxsc_idx_from_rxsc(nic->macsec_cfg, ctx->rx_sc); in aq_mdo_upd_rxsc()
795 struct aq_macsec_rxsc *rx_sc = &nic->macsec_cfg->aq_rxsc[rxsc_idx]; in aq_clear_rxsc() local
800 for_each_set_bit (sa_num, &rx_sc->rx_sa_idx_busy, AQ_MACSEC_MAX_SA) { in aq_clear_rxsc()
801 ret = aq_clear_rxsa(nic, rx_sc, sa_num, clear_type); in aq_clear_rxsc()
825 rx_sc->hw_sc_idx); in aq_clear_rxsc()
832 rx_sc->sw_secy = NULL; in aq_clear_rxsc()
[all …]
/linux-6.6.21/drivers/net/netdevsim/
Dmacsec.c131 __func__, sci_to_cpu(ctx->rx_sc->sci), idx); in nsim_macsec_add_rxsc()
133 secy->nsim_rxsc[idx].sci = ctx->rx_sc->sci; in nsim_macsec_add_rxsc()
153 idx = nsim_macsec_find_rxsc(secy, ctx->rx_sc->sci); in nsim_macsec_upd_rxsc()
156 __func__, sci_to_cpu(ctx->rx_sc->sci)); in nsim_macsec_upd_rxsc()
161 __func__, sci_to_cpu(ctx->rx_sc->sci), idx); in nsim_macsec_upd_rxsc()
180 idx = nsim_macsec_find_rxsc(secy, ctx->rx_sc->sci); in nsim_macsec_del_rxsc()
183 __func__, sci_to_cpu(ctx->rx_sc->sci)); in nsim_macsec_del_rxsc()
188 __func__, sci_to_cpu(ctx->rx_sc->sci), idx); in nsim_macsec_del_rxsc()
/linux-6.6.21/include/net/
Dmacsec.h245 struct macsec_rx_sc __rcu *rx_sc; member
259 struct macsec_rx_sc *rx_sc; member
/linux-6.6.21/drivers/net/ethernet/marvell/octeontx2/nic/
Dcn10k_macsec.c111 struct macsec_rx_sc *rx_sc) in cn10k_mcs_get_rxsc() argument
116 if (rxsc->sw_rxsc == rx_sc && rxsc->sw_secy == secy) in cn10k_mcs_get_rxsc()
1066 for (sw_rx_sc = rcu_dereference_bh(secy->rx_sc); sw_rx_sc && sw_rx_sc->active; in cn10k_mcs_secy_rx_cfg()
1099 for (sw_rx_sc = rcu_dereference_bh(secy->rx_sc); sw_rx_sc && sw_rx_sc->active; in cn10k_mcs_disable_rxscs()
1414 rxsc->sw_rxsc = ctx->rx_sc; in cn10k_mdo_add_rxsc()
1435 bool enable = ctx->rx_sc->active; in cn10k_mdo_upd_rxsc()
1438 rxsc = cn10k_mcs_get_rxsc(cfg, secy, ctx->rx_sc); in cn10k_mdo_upd_rxsc()
1455 rxsc = cn10k_mcs_get_rxsc(cfg, ctx->secy, ctx->rx_sc); in cn10k_mdo_del_rxsc()
1657 rxsc = cn10k_mcs_get_rxsc(cfg, secy, ctx->rx_sc); in cn10k_mdo_get_rx_sc_stats()
/linux-6.6.21/drivers/net/phy/mscc/
Dmscc_macsec.c821 flow->rx_sa->sc->sci == ctx->rx_sc->sci) in vsc8584_macsec_del_rxsc()