Home
last modified time | relevance | path

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

/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
Dmacsec.c78 struct mlx5e_macsec_rx_sc *rx_sc; member
700 const struct macsec_rx_sc *ctx_rx_sc = ctx->rx_sc; in mlx5e_macsec_add_rxsc()
702 struct mlx5e_macsec_rx_sc *rx_sc; in mlx5e_macsec_add_rxsc() local
717 rx_sc = mlx5e_macsec_get_rx_sc_from_sc_list(rx_sc_list, ctx_rx_sc->sci); in mlx5e_macsec_add_rxsc()
718 if (rx_sc) { in mlx5e_macsec_add_rxsc()
725 rx_sc = kzalloc(sizeof(*rx_sc), GFP_KERNEL); in mlx5e_macsec_add_rxsc()
726 if (!rx_sc) { in mlx5e_macsec_add_rxsc()
737 sc_xarray_element->rx_sc = rx_sc; in mlx5e_macsec_add_rxsc()
748 rx_sc->md_dst = metadata_dst_alloc(0, METADATA_MACSEC, GFP_KERNEL); in mlx5e_macsec_add_rxsc()
749 if (!rx_sc->md_dst) { in mlx5e_macsec_add_rxsc()
[all …]
/linux-6.1.9/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()
844 struct macsec_rx_sc *rx_sc = rx_sa->sc; in macsec_decrypt_done() local
873 macsec_rxsc_put(rx_sc); in macsec_decrypt_done()
980 struct macsec_rx_sc *rx_sc; in find_rx_sc() local
[all …]
/linux-6.1.9/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.1.9/include/net/
Dmacsec.h244 struct macsec_rx_sc __rcu *rx_sc; member
258 struct macsec_rx_sc *rx_sc; member
/linux-6.1.9/drivers/net/ethernet/marvell/octeontx2/nic/
Dcn10k_macsec.c60 struct macsec_rx_sc *rx_sc) in cn10k_mcs_get_rxsc() argument
65 if (rxsc->sw_rxsc == rx_sc && rxsc->sw_secy == secy) in cn10k_mcs_get_rxsc()
931 for (sw_rx_sc = rcu_dereference_bh(secy->rx_sc); sw_rx_sc && sw_rx_sc->active; in cn10k_mcs_secy_rx_cfg()
964 for (sw_rx_sc = rcu_dereference_bh(secy->rx_sc); sw_rx_sc && sw_rx_sc->active; in cn10k_mcs_disable_rxscs()
1275 rxsc->sw_rxsc = ctx->rx_sc; in cn10k_mdo_add_rxsc()
1296 bool enable = ctx->rx_sc->active; in cn10k_mdo_upd_rxsc()
1299 rxsc = cn10k_mcs_get_rxsc(cfg, secy, ctx->rx_sc); in cn10k_mdo_upd_rxsc()
1316 rxsc = cn10k_mcs_get_rxsc(cfg, ctx->secy, ctx->rx_sc); in cn10k_mdo_del_rxsc()
1512 rxsc = cn10k_mcs_get_rxsc(cfg, secy, ctx->rx_sc); in cn10k_mdo_get_rx_sc_stats()
/linux-6.1.9/drivers/net/phy/mscc/
Dmscc_macsec.c814 flow->rx_sa->sc->sci == ctx->rx_sc->sci) in vsc8584_macsec_del_rxsc()