Searched refs:tx_sc (Results 1 – 5 of 5) sorted by relevance
/linux/drivers/net/ |
H A D | macsec.c | 282 const struct macsec_tx_sc *tx_sc = &secy->tx_sc; in macsec_fill_sectag() local 292 if (tx_sc->end_station) in macsec_fill_sectag() 294 if (tx_sc->scb) in macsec_fill_sectag() 301 if (tx_sc->encrypt) in macsec_fill_sectag() 306 h->tci_an |= tx_sc->encoding_sa; in macsec_fill_sectag() 490 static void macsec_count_tx(struct sk_buff *skb, struct macsec_tx_sc *tx_sc, in macsec_count_tx() argument 494 struct pcpu_tx_sc_stats *txsc_stats = this_cpu_ptr(tx_sc->stats); in macsec_count_tx() 497 if (tx_sc->encrypt) { in macsec_count_tx() 526 macsec_count_tx(skb, &macsec->secy.tx_sc, macsec_skb_cb(skb)->tx_sa); in macsec_encrypt_done() 580 struct macsec_tx_sc *tx_sc; in macsec_encrypt() local [all …]
|
/linux/drivers/net/phy/ |
H A D | nxp-c45-tja11xx-macsec.c | 616 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.end_station ? "on" : "off"); in nxp_c45_tx_sc_update() [all …]
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ |
H A D | macsec.c | 342 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/drivers/net/ethernet/aquantia/atlantic/ |
H A D | aq_macsec.c | 344 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/phy/mscc/ |
H A D | mscc_macsec.c | 438 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()
|