Home
last modified time | relevance | path

Searched refs:tx_sc (Results 1 – 8 of 8) sorted by relevance

/linux-6.15/drivers/net/
H A Dmacsec.c283 const struct macsec_tx_sc *tx_sc = &secy->tx_sc; in macsec_fill_sectag() local
588 tx_sc = &secy->tx_sc; in macsec_encrypt()
1562 tx_sc = &secy->tx_sc; in get_txsa_from_nl()
2006 tx_sc = &secy->tx_sc; in macsec_add_txsa()
2585 struct macsec_tx_sc *tx_sc = &secy->tx_sc; in macsec_is_configured() local
3042 struct macsec_tx_sc *tx_sc = &secy->tx_sc; in nla_put_secy() local
3100 struct macsec_tx_sc *tx_sc = &secy->tx_sc; in dump_secy() local
3859 tx_sc = &secy->tx_sc; in macsec_changelink_common()
3952 memcpy(&tx_sc, &macsec->secy.tx_sc, sizeof(tx_sc)); in macsec_changelink()
3988 memcpy(&macsec->secy.tx_sc, &tx_sc, sizeof(tx_sc)); in macsec_changelink()
[all …]
/linux-6.15/include/net/
H A Dmacsec.h244 struct macsec_tx_sc tx_sc; member
362 const struct macsec_tx_sc *tx_sc = &secy->tx_sc; in macsec_send_sci() local
364 return tx_sc->send_sci || in macsec_send_sci()
365 (secy->n_rx_sc > 1 && !tx_sc->end_station && !tx_sc->scb); in macsec_send_sci()
/linux-6.15/drivers/net/phy/
H A Dnxp-c45-tja11xx-macsec.c617 bool scb = phy_secy->secy->tx_sc.scb; in nxp_c45_secy_valid()
647 bool scb = phy_secy->secy->tx_sc.scb; in nxp_c45_rx_sc0_impl()
723 if (phy_secy->secy->tx_sc.encrypt) in nxp_c45_tx_sc_update()
737 if (phy_secy->secy->tx_sc.send_sci) in nxp_c45_tx_sc_update()
744 if (phy_secy->secy->tx_sc.end_station) in nxp_c45_tx_sc_update()
750 phy_secy->secy->tx_sc.scb ? "on" : "off"); in nxp_c45_tx_sc_update()
751 if (phy_secy->secy->tx_sc.scb) in nxp_c45_tx_sc_update()
1137 if (phy_secy->secy->tx_sc.end_station && in nxp_c45_mdo_add_rxsc()
1305 if (ctx->secy->tx_sc.encoding_sa == sa->an) in nxp_c45_mdo_add_txsa()
1335 if (ctx->secy->tx_sc.encoding_sa == sa->an) in nxp_c45_mdo_upd_txsa()
[all …]
/linux-6.15/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
H A Dmacsec.c342 const struct macsec_tx_sc *tx_sc = &ctx->secy->tx_sc; in mlx5e_macsec_init_sa_fs() local
346 if (is_tx && tx_sc->encoding_sa != sa->assoc_num) in mlx5e_macsec_init_sa_fs()
467 if (!ctx->secy->tx_sc.encrypt) { in mlx5e_macsec_secy_features_validate()
506 const struct macsec_tx_sc *tx_sc = &ctx->secy->tx_sc; in mlx5e_macsec_add_txsa() local
557 err = mlx5e_macsec_init_sa(ctx, tx_sa, tx_sc->encrypt, true, NULL); in mlx5e_macsec_add_txsa()
579 const struct macsec_tx_sc *tx_sc = &ctx->secy->tx_sc; in mlx5e_macsec_upd_txsa() local
617 if (tx_sa->assoc_num != tx_sc->encoding_sa) in mlx5e_macsec_upd_txsa()
621 err = mlx5e_macsec_init_sa_fs(ctx, tx_sa, tx_sc->encrypt, true, NULL); in mlx5e_macsec_upd_txsa()
1173 const struct macsec_tx_sc *tx_sc = &ctx->secy->tx_sc; in mlx5e_macsec_upd_secy() local
1213 if (tx_sa->assoc_num == tx_sc->encoding_sa && tx_sa->active) { in mlx5e_macsec_upd_secy()
[all …]
/linux-6.15/drivers/net/ethernet/aquantia/atlantic/
H A Daq_macsec.c344 if (secy->tx_sc.encrypt) in aq_set_txsc()
346 if (secy->tx_sc.scb) in aq_set_txsc()
348 if (secy->tx_sc.send_sci) in aq_set_txsc()
350 if (secy->tx_sc.end_station) in aq_set_txsc()
355 if (!(secy->icv_len == 16 && !secy->tx_sc.encrypt)) in aq_set_txsc()
375 sc_rec.curr_an = secy->tx_sc.encoding_sa; in aq_set_txsc()
503 ret = aq_clear_txsa(nic, tx_sc, sa_num, clear_type); in aq_clear_txsc()
516 tx_sc->hw_sc_idx); in aq_clear_txsc()
1074 tx_sa = rcu_dereference_bh(secy->tx_sc.sa[ctx->sa.assoc_num]); in aq_mdo_get_tx_sa_stats()
1187 tx_sa = rcu_dereference_bh(secy->tx_sc.sa[i]); in apply_txsc_cfg()
[all …]
/linux-6.15/drivers/net/ethernet/marvell/octeontx2/nic/
H A Dcn10k_macsec.c512 sw_tx_sc = &secy->tx_sc; in cn10k_mcs_write_tx_secy()
1186 sw_tx_sa = rcu_dereference_bh(secy->tx_sc.sa[sa_num]); in cn10k_mdo_open()
1228 txsc->encoding_sa = secy->tx_sc.encoding_sa; in cn10k_mdo_add_secy()
1257 if (txsc->encoding_sa != secy->tx_sc.encoding_sa) { in cn10k_mdo_upd_secy()
1258 txsc->encoding_sa = secy->tx_sc.encoding_sa; in cn10k_mdo_upd_secy()
1260 sw_tx_sa = rcu_dereference_bh(secy->tx_sc.sa[sa_num]); in cn10k_mdo_upd_secy()
1758 sw_tx_sa = rcu_dereference_bh(secy->tx_sc.sa[an]); in cn10k_handle_mcs_event()
/linux-6.15/drivers/net/ethernet/mellanox/mlx5/core/lib/
H A Dmacsec_fs.c617 const struct macsec_tx_sc *tx_sc; in macsec_fs_tx_create_sectag_header() local
619 tx_sc = &secy->tx_sc; in macsec_fs_tx_create_sectag_header()
627 if (tx_sc->end_station) in macsec_fs_tx_create_sectag_header()
629 if (tx_sc->scb) in macsec_fs_tx_create_sectag_header()
634 if (tx_sc->encrypt) in macsec_fs_tx_create_sectag_header()
639 sectag.tci_an |= tx_sc->encoding_sa; in macsec_fs_tx_create_sectag_header()
/linux-6.15/drivers/net/phy/mscc/
H A Dmscc_macsec.c438 if (priv->secy->tx_sc.encrypt) in vsc8584_macsec_flow()
440 if (priv->secy->tx_sc.send_sci) in vsc8584_macsec_flow()
546 (CONTROL_TYPE_EGRESS | CONTROL_AN(priv->secy->tx_sc.encoding_sa)) : in vsc8584_macsec_transformation()