| /linux/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ |
| H A D | macsec.c | 77 struct mlx5e_macsec_rx_sc *rx_sc; member 121 /* Rx fs_id -> rx_sc mapping */ 680 const struct macsec_rx_sc *ctx_rx_sc = ctx->rx_sc; in mlx5e_macsec_add_rxsc() 682 struct mlx5e_macsec_rx_sc *rx_sc; in mlx5e_macsec_add_rxsc() 697 rx_sc = mlx5e_macsec_get_rx_sc_from_sc_list(rx_sc_list, ctx_rx_sc->sci); in mlx5e_macsec_add_rxsc() 698 if (rx_sc) { in mlx5e_macsec_add_rxsc() 699 netdev_err(ctx->netdev, "MACsec offload: rx_sc (sci %lld) already exists\n", in mlx5e_macsec_add_rxsc() 705 rx_sc = kzalloc_obj(*rx_sc); in mlx5e_macsec_add_rxsc() 706 if (!rx_sc) { in mlx5e_macsec_add_rxsc() 681 struct mlx5e_macsec_rx_sc *rx_sc; mlx5e_macsec_add_rxsc() local 770 struct mlx5e_macsec_rx_sc *rx_sc; mlx5e_macsec_upd_rxsc() local 815 macsec_del_rxsc_ctx(struct mlx5e_macsec * macsec,struct mlx5e_macsec_rx_sc * rx_sc,struct net_device * netdev) macsec_del_rxsc_ctx() argument 850 struct mlx5e_macsec_rx_sc *rx_sc; mlx5e_macsec_del_rxsc() local 889 struct mlx5e_macsec_rx_sc *rx_sc; mlx5e_macsec_add_rxsa() local 973 struct mlx5e_macsec_rx_sc *rx_sc; mlx5e_macsec_upd_rxsa() local 1030 struct mlx5e_macsec_rx_sc *rx_sc; mlx5e_macsec_del_rxsa() local 1136 struct mlx5e_macsec_rx_sc *rx_sc, *tmp; macsec_upd_secy_hw_address() local 1240 struct mlx5e_macsec_rx_sc *rx_sc, *tmp; mlx5e_macsec_del_secy() local 1695 struct mlx5e_macsec_rx_sc *rx_sc; mlx5e_macsec_offload_handle_rx_skb() local [all...] |
| /linux/drivers/net/ |
| H A D | macsec.c | 58 for (sc = rcu_dereference_bh(secy->rx_sc); \ 62 for (sc = rtnl_dereference(secy->rx_sc); \ 163 struct macsec_rx_sc *rx_sc = container_of(head, struct macsec_rx_sc, rcu_head); in free_rx_sc_rcu() 165 free_percpu(rx_sc->stats); in free_rx_sc_rcu() 166 kfree(rx_sc); in free_rx_sc_rcu() 257 struct macsec_rx_sc *rx_sc = rcu_dereference_bh(secy->rx_sc); in macsec_active_sci() 260 if (rx_sc && !rcu_dereference_bh(rx_sc->next)) in macsec_active_sci() 261 return (rx_sc in macsec_active_sci() 162 struct macsec_rx_sc *rx_sc = container_of(head, struct macsec_rx_sc, rcu_head); free_rx_sc_rcu() local 256 struct macsec_rx_sc *rx_sc = rcu_dereference_bh(secy->rx_sc); macsec_active_sci() local 853 struct macsec_rx_sc *rx_sc = rx_sa->sc; macsec_decrypt_done() local 989 struct macsec_rx_sc *rx_sc; find_rx_sc() local 1001 struct macsec_rx_sc *rx_sc; find_rx_sc_rtnl() local 1043 struct macsec_rx_sc *rx_sc; handle_not_macsec() local 1136 struct macsec_rx_sc *rx_sc; macsec_handle_frame() local 1427 free_rx_sc(struct macsec_rx_sc * rx_sc) free_rx_sc() argument 1444 struct macsec_rx_sc *rx_sc, __rcu **rx_scp; del_rx_sc() local 1463 struct macsec_rx_sc *rx_sc; create_rx_sc() local 1614 struct macsec_rx_sc *rx_sc; get_rxsc_from_nl() local 1646 struct macsec_rx_sc *rx_sc; get_rxsa_from_nl() local 1749 struct macsec_rx_sc *rx_sc; macsec_add_rxsa() local 1879 struct macsec_rx_sc *rx_sc; macsec_add_rxsc() local 2088 struct macsec_rx_sc *rx_sc; macsec_del_rxsa() local 2154 struct macsec_rx_sc *rx_sc; macsec_del_rxsc() local 2385 struct macsec_rx_sc *rx_sc; macsec_upd_rxsa() local 2477 struct macsec_rx_sc *rx_sc; macsec_upd_rxsc() local 2762 get_rx_sa_stats(struct net_device * dev,struct macsec_rx_sc * rx_sc,int an,struct macsec_rx_sa * rx_sa,struct macsec_rx_sa_stats * sum) get_rx_sa_stats() argument 2816 get_rx_sc_stats(struct net_device * dev,struct macsec_rx_sc * rx_sc,struct macsec_rx_sc_stats * sum) get_rx_sc_stats() argument 3089 struct macsec_rx_sc *rx_sc; dump_secy() local 4041 struct macsec_rx_sc *rx_sc = rtnl_dereference(macsec->secy.rx_sc); macsec_del_dev() local [all...] |
| /linux/drivers/net/ethernet/aquantia/atlantic/ |
| H A D | aq_macsec.c | 691 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() 759 cfg->aq_rxsc[rxsc_idx].sw_rxsc = ctx->rx_sc; in aq_mdo_add_rxsc() 778 rxsc_idx = aq_get_rxsc_idx_from_rxsc(nic->macsec_cfg, ctx->rx_sc); in aq_mdo_upd_rxsc() 791 struct aq_macsec_rxsc *rx_sc = &nic->macsec_cfg->aq_rxsc[rxsc_idx]; in aq_clear_rxsc() local 796 for_each_set_bit (sa_num, &rx_sc->rx_sa_idx_busy, AQ_MACSEC_MAX_SA) { in aq_clear_rxsc() 797 ret = aq_clear_rxsa(nic, rx_sc, sa_num, clear_type); in aq_clear_rxsc() 821 rx_sc->hw_sc_idx); in aq_clear_rxsc() 828 rx_sc->sw_secy = NULL; in aq_clear_rxsc() [all …]
|
| /linux/drivers/net/phy/ |
| H A D | nxp-c45-tja11xx-macsec.c | 193 struct macsec_rx_sc *rx_sc; member 624 if (!phy_secy->rx_sc) in nxp_c45_secy_valid() 626 return nxp_c45_port_is_1(phy_secy->rx_sc->sci); in nxp_c45_secy_valid() 801 struct macsec_rx_sc *rx_sc, bool en) in nxp_c45_rx_sc_en() argument 806 if (rx_sc->active && en) in nxp_c45_rx_sc_en() 816 struct macsec_rx_sc *rx_sc = phy_secy->rx_sc; in nxp_c45_rx_sc_update() local 837 phydev_dbg(phydev, "rx_sc->active %s\n", in nxp_c45_rx_sc_update() 838 rx_sc->active ? "on" : "off"); in nxp_c45_rx_sc_update() 839 if (rx_sc in nxp_c45_rx_sc_update() [all...] |
| /linux/include/net/ |
| H A D | macsec.h | 248 struct macsec_rx_sc __rcu *rx_sc; member 279 struct macsec_rx_sc *rx_sc; member
|
| /linux/drivers/net/ethernet/marvell/octeontx2/nic/ |
| H A D | cn10k_macsec.c | 82 struct macsec_rx_sc *rx_sc) in cn10k_mcs_get_rxsc() argument 87 if (rxsc->sw_rxsc == rx_sc && rxsc->sw_secy == secy) in cn10k_mcs_get_rxsc() 1037 for (sw_rx_sc = rcu_dereference_bh(secy->rx_sc); sw_rx_sc && sw_rx_sc->active; in cn10k_mcs_secy_rx_cfg() 1070 for (sw_rx_sc = rcu_dereference_bh(secy->rx_sc); sw_rx_sc && sw_rx_sc->active; in cn10k_mcs_disable_rxscs() 1385 rxsc->sw_rxsc = ctx->rx_sc; in cn10k_mdo_add_rxsc() 1406 bool enable = ctx->rx_sc->active; in cn10k_mdo_upd_rxsc() 1409 rxsc = cn10k_mcs_get_rxsc(cfg, secy, ctx->rx_sc); in cn10k_mdo_upd_rxsc() 1426 rxsc = cn10k_mcs_get_rxsc(cfg, ctx->secy, ctx->rx_sc); in cn10k_mdo_del_rxsc() 1628 rxsc = cn10k_mcs_get_rxsc(cfg, secy, ctx->rx_sc); in cn10k_mdo_get_rx_sc_stats()
|
| /linux/drivers/net/phy/mscc/ |
| H A D | mscc_macsec.c | 821 flow->rx_sa->sc->sci == ctx->rx_sc->sci) in vsc8584_macsec_del_rxsc()
|