Home
last modified time | relevance | path

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

/linux/drivers/net/
H A Dmacsec.c312 const struct macsec_tx_sc *tx_sc = &secy->tx_sc; in macsec_fill_sectag()
322 if (tx_sc->end_station) in macsec_fill_sectag()
324 if (tx_sc->scb) in macsec_fill_sectag()
331 if (tx_sc->encrypt) in macsec_fill_sectag()
336 h->tci_an |= tx_sc->encoding_sa; in macsec_fill_sectag()
527 static void macsec_count_tx(struct sk_buff *skb, struct macsec_tx_sc *tx_sc, in macsec_count_tx()
531 struct pcpu_tx_sc_stats *txsc_stats = this_cpu_ptr(tx_sc->stats); in macsec_count_tx()
534 if (tx_sc->encrypt) { in macsec_count_tx()
563 macsec_count_tx(skb, &macsec->secy.tx_sc, macsec_skb_c in macsec_encrypt_done()
311 const struct macsec_tx_sc *tx_sc = &secy->tx_sc; macsec_fill_sectag() local
519 macsec_count_tx(struct sk_buff * skb,struct macsec_tx_sc * tx_sc,struct macsec_tx_sa * tx_sa) macsec_count_tx() argument
609 struct macsec_tx_sc *tx_sc; macsec_encrypt() local
1581 struct macsec_tx_sc *tx_sc; get_txsa_from_nl() local
1958 struct macsec_tx_sc *tx_sc; macsec_add_txsa() local
2217 struct macsec_tx_sc *tx_sc; macsec_del_txsa() local
2291 struct macsec_tx_sc *tx_sc; macsec_upd_txsa() local
2543 struct macsec_tx_sc *tx_sc = &secy->tx_sc; macsec_is_configured() local
3029 struct macsec_tx_sc *tx_sc = &secy->tx_sc; nla_put_secy() local
3087 struct macsec_tx_sc *tx_sc = &secy->tx_sc; dump_secy() local
3896 struct macsec_tx_sc *tx_sc; macsec_changelink_common() local
3977 struct macsec_tx_sc tx_sc; macsec_changelink() local
4392 const struct macsec_tx_sc *tx_sc; macsec_fill_info() local
[all...]
/linux/include/net/
H A Dmacsec.h247 struct macsec_tx_sc tx_sc; member
365 const struct macsec_tx_sc *tx_sc = &secy->tx_sc; in macsec_send_sci() local
367 return tx_sc->send_sci || in macsec_send_sci()
368 (secy->n_rx_sc > 1 && !tx_sc->end_station && !tx_sc->scb); in macsec_send_sci()
/linux/drivers/net/phy/
H A Dnxp-c45-tja11xx-macsec.c616 bool end_station = phy_secy->secy->tx_sc.end_station; in nxp_c45_secy_valid()
617 bool scb = phy_secy->secy->tx_sc.scb; in nxp_c45_secy_valid()
645 bool end_station = phy_secy->secy->tx_sc.end_station; in nxp_c45_rx_sc0_impl()
646 bool send_sci = phy_secy->secy->tx_sc.send_sci; in nxp_c45_rx_sc0_impl()
647 bool scb = phy_secy->secy->tx_sc.scb; in nxp_c45_rx_sc0_impl()
722 phy_secy->secy->tx_sc.encrypt ? "on" : "off"); in nxp_c45_tx_sc_update()
723 if (phy_secy->secy->tx_sc.encrypt) in nxp_c45_tx_sc_update()
736 phy_secy->secy->tx_sc.send_sci ? "on" : "off"); in nxp_c45_tx_sc_update()
737 if (phy_secy->secy->tx_sc.send_sci) in nxp_c45_tx_sc_update()
743 phy_secy->secy->tx_sc in nxp_c45_tx_sc_update()
[all...]
/linux/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
H A Dmacsec.c344 const struct macsec_tx_sc *tx_sc = &ctx->secy->tx_sc; in mlx5e_macsec_init_sa_fs()
348 if (is_tx && tx_sc->encoding_sa != sa->assoc_num) in mlx5e_macsec_init_sa_fs()
469 if (!ctx->secy->tx_sc.encrypt) { in mlx5e_macsec_secy_features_validate()
508 const struct macsec_tx_sc *tx_sc = &ctx->secy->tx_sc; in mlx5e_macsec_add_txsa()
559 err = mlx5e_macsec_init_sa(ctx, tx_sa, tx_sc->encrypt, true, NULL); in mlx5e_macsec_add_txsa()
581 const struct macsec_tx_sc *tx_sc = &ctx->secy->tx_sc; in mlx5e_macsec_upd_txsa()
619 if (tx_sa->assoc_num != tx_sc in mlx5e_macsec_upd_txsa()
343 const struct macsec_tx_sc *tx_sc = &ctx->secy->tx_sc; mlx5e_macsec_init_sa_fs() local
507 const struct macsec_tx_sc *tx_sc = &ctx->secy->tx_sc; mlx5e_macsec_add_txsa() local
580 const struct macsec_tx_sc *tx_sc = &ctx->secy->tx_sc; mlx5e_macsec_upd_txsa() local
1183 const struct macsec_tx_sc *tx_sc = &ctx->secy->tx_sc; mlx5e_macsec_upd_secy() local
[all...]
/linux/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()
495 struct aq_macsec_txsc *tx_sc = &nic->macsec_cfg->aq_txsc[txsc_idx]; in aq_clear_txsc() local
502 for_each_set_bit (sa_num, &tx_sc->tx_sa_idx_busy, AQ_MACSEC_MAX_SA) { in aq_clear_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()
[all …]
/linux/drivers/net/ethernet/marvell/octeontx2/nic/
H A Dcn10k_macsec.c484 sw_tx_sc = &secy->tx_sc; in cn10k_mcs_write_tx_secy()
1158 sw_tx_sa = rcu_dereference_bh(secy->tx_sc.sa[sa_num]); in cn10k_mdo_open()
1200 txsc->encoding_sa = secy->tx_sc.encoding_sa; in cn10k_mdo_add_secy()
1229 if (txsc->encoding_sa != secy->tx_sc.encoding_sa) { in cn10k_mdo_upd_secy()
1230 txsc->encoding_sa = secy->tx_sc.encoding_sa; in cn10k_mdo_upd_secy()
1232 sw_tx_sa = rcu_dereference_bh(secy->tx_sc.sa[sa_num]); in cn10k_mdo_upd_secy()
1730 sw_tx_sa = rcu_dereference_bh(secy->tx_sc.sa[an]); in cn10k_handle_mcs_event()
/linux/drivers/net/ethernet/mellanox/mlx5/core/lib/
H A Dmacsec_fs.c614 const struct macsec_tx_sc *tx_sc; in macsec_fs_tx_create_sectag_header()
616 tx_sc = &secy->tx_sc; in macsec_fs_tx_create_sectag_header()
624 if (tx_sc->end_station) in macsec_fs_tx_create_sectag_header()
626 if (tx_sc->scb) in macsec_fs_tx_create_sectag_header()
631 if (tx_sc->encrypt) in macsec_fs_tx_create_sectag_header()
636 sectag.tci_an |= tx_sc->encoding_sa; in macsec_fs_tx_create_sectag_header()
613 const struct macsec_tx_sc *tx_sc; macsec_fs_tx_create_sectag_header() local
/linux/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()