/kernel/linux/linux-6.6/include/net/ |
H A D | macsec.h | 229 * @tx_sc: transmit secure channel 244 struct macsec_tx_sc tx_sc; member 311 const struct macsec_tx_sc *tx_sc = &secy->tx_sc; in macsec_send_sci() local 313 return tx_sc->send_sci || in macsec_send_sci() 314 (secy->n_rx_sc > 1 && !tx_sc->end_station && !tx_sc->scb); in macsec_send_sci()
|
/kernel/linux/linux-6.6/drivers/net/ |
H A D | macsec.c | 292 const struct macsec_tx_sc *tx_sc = &secy->tx_sc; in macsec_fill_sectag() local 302 if (tx_sc->end_station) in macsec_fill_sectag() 304 if (tx_sc->scb) in macsec_fill_sectag() 311 if (tx_sc->encrypt) in macsec_fill_sectag() 316 h->tci_an |= tx_sc->encoding_sa; in macsec_fill_sectag() 500 static void macsec_count_tx(struct sk_buff *skb, struct macsec_tx_sc *tx_sc, in macsec_count_tx() argument 504 struct pcpu_tx_sc_stats *txsc_stats = this_cpu_ptr(tx_sc->stats); in macsec_count_tx() 507 if (tx_sc->encrypt) { in macsec_count_tx() 536 macsec_count_tx(skb, &macsec->secy.tx_sc, macsec_skb_c in macsec_encrypt_done() 590 struct macsec_tx_sc *tx_sc; macsec_encrypt() local 1534 struct macsec_tx_sc *tx_sc; get_txsa_from_nl() local 1969 struct macsec_tx_sc *tx_sc; macsec_add_txsa() local 2236 struct macsec_tx_sc *tx_sc; macsec_del_txsa() local 2321 struct macsec_tx_sc *tx_sc; macsec_upd_txsa() local 2573 struct macsec_tx_sc *tx_sc = &secy->tx_sc; macsec_is_configured() local 2983 struct macsec_tx_sc *tx_sc = &secy->tx_sc; nla_put_secy() local 3041 struct macsec_tx_sc *tx_sc = &secy->tx_sc; dump_secy() local 3737 struct macsec_tx_sc *tx_sc; macsec_changelink_common() local 3816 struct macsec_tx_sc tx_sc; macsec_changelink() local 4266 struct macsec_tx_sc *tx_sc; macsec_fill_info() local [all...] |
/kernel/linux/linux-5.10/drivers/net/ |
H A D | macsec.c | 260 const struct macsec_tx_sc *tx_sc = &secy->tx_sc; in send_sci() local 262 return tx_sc->send_sci || in send_sci() 263 (secy->n_rx_sc > 1 && !tx_sc->end_station && !tx_sc->scb); in send_sci() 309 const struct macsec_tx_sc *tx_sc = &secy->tx_sc; in macsec_fill_sectag() local 319 if (tx_sc->end_station) in macsec_fill_sectag() 321 if (tx_sc->scb) in macsec_fill_sectag() 328 if (tx_sc in macsec_fill_sectag() 522 macsec_count_tx(struct sk_buff *skb, struct macsec_tx_sc *tx_sc, struct macsec_tx_sa *tx_sa) macsec_count_tx() argument 618 struct macsec_tx_sc *tx_sc; macsec_encrypt() local 1551 struct macsec_tx_sc *tx_sc; get_txsa_from_nl() local 2000 struct macsec_tx_sc *tx_sc; macsec_add_txsa() local 2267 struct macsec_tx_sc *tx_sc; macsec_del_txsa() local 2352 struct macsec_tx_sc *tx_sc; macsec_upd_txsa() local 2604 struct macsec_tx_sc *tx_sc = &secy->tx_sc; macsec_is_configured() local 3020 struct macsec_tx_sc *tx_sc = &secy->tx_sc; nla_put_secy() local 3078 struct macsec_tx_sc *tx_sc = &secy->tx_sc; dump_secy() local 3762 struct macsec_tx_sc *tx_sc; macsec_changelink_common() local 3839 struct macsec_tx_sc tx_sc; macsec_changelink() local 4256 struct macsec_tx_sc *tx_sc = &secy->tx_sc; macsec_fill_info() local [all...] |
/kernel/linux/linux-5.10/drivers/net/ethernet/aquantia/atlantic/ |
H A D | aq_macsec.c | 350 if (secy->tx_sc.encrypt) in aq_set_txsc() 352 if (secy->tx_sc.scb) in aq_set_txsc() 354 if (secy->tx_sc.send_sci) in aq_set_txsc() 356 if (secy->tx_sc.end_station) in aq_set_txsc() 361 if (!(secy->icv_len == 16 && !secy->tx_sc.encrypt)) in aq_set_txsc() 381 sc_rec.curr_an = secy->tx_sc.encoding_sa; in aq_set_txsc() 507 struct aq_macsec_txsc *tx_sc = &nic->macsec_cfg->aq_txsc[txsc_idx]; in aq_clear_txsc() local 514 for_each_set_bit (sa_num, &tx_sc->tx_sa_idx_busy, AQ_MACSEC_MAX_SA) { in aq_clear_txsc() 515 ret = aq_clear_txsa(nic, tx_sc, sa_num, clear_type); in aq_clear_txsc() 528 tx_sc in aq_clear_txsc() [all...] |
/kernel/linux/linux-6.6/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 in aq_clear_txsc() [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ |
H A D | macsec.c | 463 if (!ctx->secy->tx_sc.encrypt) { in mlx5e_macsec_secy_features_validate() 502 const struct macsec_tx_sc *tx_sc = &ctx->secy->tx_sc; in mlx5e_macsec_add_txsa() local 553 err = mlx5e_macsec_init_sa(ctx, tx_sa, tx_sc->encrypt, true, NULL); in mlx5e_macsec_add_txsa() 575 const struct macsec_tx_sc *tx_sc = &ctx->secy->tx_sc; in mlx5e_macsec_upd_txsa() local 613 if (tx_sa->assoc_num != tx_sc->encoding_sa) in mlx5e_macsec_upd_txsa() 617 err = mlx5e_macsec_init_sa_fs(ctx, tx_sa, tx_sc->encrypt, true, NULL); in mlx5e_macsec_upd_txsa() 1169 const struct macsec_tx_sc *tx_sc = &ctx->secy->tx_sc; in mlx5e_macsec_upd_secy() local [all...] |
/kernel/linux/linux-5.10/include/net/ |
H A D | macsec.h | 211 * @tx_sc: transmit secure channel 226 struct macsec_tx_sc tx_sc; member
|
/kernel/linux/linux-6.6/drivers/net/ethernet/marvell/octeontx2/nic/ |
H A D | cn10k_macsec.c | 514 sw_tx_sc = &secy->tx_sc; in cn10k_mcs_write_tx_secy() 1187 sw_tx_sa = rcu_dereference_bh(secy->tx_sc.sa[sa_num]); in cn10k_mdo_open() 1229 txsc->encoding_sa = secy->tx_sc.encoding_sa; in cn10k_mdo_add_secy() 1258 if (txsc->encoding_sa != secy->tx_sc.encoding_sa) { in cn10k_mdo_upd_secy() 1259 txsc->encoding_sa = secy->tx_sc.encoding_sa; in cn10k_mdo_upd_secy() 1261 sw_tx_sa = rcu_dereference_bh(secy->tx_sc.sa[sa_num]); in cn10k_mdo_upd_secy() 1759 sw_tx_sa = rcu_dereference_bh(secy->tx_sc.sa[an]); in cn10k_handle_mcs_event()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx5/core/lib/ |
H A D | macsec_fs.c | 617 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()
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-6.6/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()
|