/linux/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ |
H A D | macsec.c | 60 u8 assoc_num; member 347 rule_attrs.assoc_num = sa->assoc_num; in mlx5e_macsec_init_sa_fs() 507 u8 assoc_num = ctx->sa.assoc_num; in mlx5e_macsec_add_txsa() local 522 if (macsec_device->tx_sa[assoc_num]) { in mlx5e_macsec_add_txsa() 523 netdev_err(ctx->netdev, "MACsec offload tx_sa: %d already exist\n", assoc_num); in mlx5e_macsec_add_txsa() 537 tx_sa->assoc_num = assoc_num; in mlx5e_macsec_add_txsa() 549 macsec_device->tx_sa[assoc_num] = tx_sa; in mlx5e_macsec_add_txsa() 562 macsec_device->tx_sa[assoc_num] = NULL; in mlx5e_macsec_add_txsa() 578 u8 assoc_num = ctx->sa.assoc_num; in mlx5e_macsec_upd_txsa() local 595 tx_sa = macsec_device->tx_sa[assoc_num]; in mlx5e_macsec_upd_txsa() [all …]
|
/linux/drivers/net/ethernet/aquantia/atlantic/ |
H A D | aq_macsec.c | 591 set_bit(ctx->sa.assoc_num, &aq_txsc->tx_sa_idx_busy); in aq_mdo_add_txsa() 593 memcpy(aq_txsc->tx_sa_key[ctx->sa.assoc_num], ctx->sa.key, in aq_mdo_add_txsa() 599 ctx->sa.assoc_num); in aq_mdo_add_txsa() 620 ctx->sa.tx_sa, NULL, ctx->sa.assoc_num); in aq_mdo_upd_txsa() 664 ret = aq_clear_txsa(nic, &cfg->aq_txsc[txsc_idx], ctx->sa.assoc_num, in aq_mdo_del_txsa() 921 set_bit(ctx->sa.assoc_num, &aq_rxsc->rx_sa_idx_busy); in aq_mdo_add_rxsa() 923 memcpy(aq_rxsc->rx_sa_key[ctx->sa.assoc_num], ctx->sa.key, in aq_mdo_add_rxsa() 929 ctx->sa.assoc_num); in aq_mdo_add_rxsa() 950 ctx->sa.assoc_num); in aq_mdo_upd_rxsa() 995 ret = aq_clear_rxsa(nic, &cfg->aq_rxsc[rxsc_idx], ctx->sa.assoc_num, in aq_mdo_del_rxsa() [all …]
|
/linux/drivers/net/ethernet/marvell/octeontx2/nic/ |
H A D | cn10k_macsec.c | 424 u8 assoc_num, bool sa_in_use) in cn10k_mcs_write_rx_sa_plcy() argument 427 u8 *sak = rxsc->sa_key[assoc_num]; in cn10k_mcs_write_rx_sa_plcy() 428 u8 *salt = rxsc->salt[assoc_num]; in cn10k_mcs_write_rx_sa_plcy() 449 salt, rxsc->ssci[assoc_num]); in cn10k_mcs_write_rx_sa_plcy() 453 plcy_req->sa_index[0] = rxsc->hw_sa_id[assoc_num]; in cn10k_mcs_write_rx_sa_plcy() 457 map_req->sa_index = rxsc->hw_sa_id[assoc_num]; in cn10k_mcs_write_rx_sa_plcy() 460 map_req->an = assoc_num; in cn10k_mcs_write_rx_sa_plcy() 472 u8 assoc_num, u64 next_pn) in cn10k_mcs_write_rx_sa_pn() argument 486 req->pn_id = rxsc->hw_sa_id[assoc_num]; in cn10k_mcs_write_rx_sa_pn() 662 u8 assoc_num) in cn10k_mcs_write_tx_sa_plcy() argument [all …]
|
/linux/drivers/net/netdevsim/ |
H A D | macsec.c | 214 __func__, sci_to_cpu(ctx->sa.rx_sa->sc->sci), ctx->sa.assoc_num); in nsim_macsec_add_rxsa() 241 __func__, sci_to_cpu(ctx->sa.rx_sa->sc->sci), ctx->sa.assoc_num); in nsim_macsec_upd_rxsa() 268 __func__, sci_to_cpu(ctx->sa.rx_sa->sc->sci), ctx->sa.assoc_num); in nsim_macsec_del_rxsa() 286 __func__, sci_to_cpu(ctx->secy->sci), ctx->sa.assoc_num); in nsim_macsec_add_txsa() 304 __func__, sci_to_cpu(ctx->secy->sci), ctx->sa.assoc_num); in nsim_macsec_upd_txsa() 322 __func__, sci_to_cpu(ctx->secy->sci), ctx->sa.assoc_num); in nsim_macsec_del_txsa()
|
/linux/drivers/net/ |
H A D | macsec.c | 139 u8 assoc_num; member 1157 macsec_skb_cb(skb)->assoc_num = hdr->tci_an & MACSEC_AN_MASK; in macsec_handle_frame() 1191 rx_sa = macsec_rxsa_get(rx_sc->sa[macsec_skb_cb(skb)->assoc_num]); in macsec_handle_frame() 1541 u8 *assoc_num) in get_txsa_from_nl() argument 1551 *assoc_num = nla_get_u8(tb_sa[MACSEC_SA_ATTR_AN]); in get_txsa_from_nl() 1557 if (*assoc_num >= MACSEC_NUM_AN) in get_txsa_from_nl() 1563 tx_sa = rtnl_dereference(tx_sc->sa[*assoc_num]); in get_txsa_from_nl() 1611 u8 *assoc_num) in get_rxsa_from_nl() argument 1619 *assoc_num = nla_get_u8(tb_sa[MACSEC_SA_ATTR_AN]); in get_rxsa_from_nl() 1620 if (*assoc_num >= MACSEC_NUM_AN) in get_rxsa_from_nl() [all …]
|
/linux/drivers/net/phy/mscc/ |
H A D | mscc_macsec.c | 382 if (bank == MACSEC_INGR && flow->assoc_num >= 0) { in vsc8584_macsec_flow() 383 match |= MSCC_MS_SAM_MISC_MATCH_AN(flow->assoc_num); in vsc8584_macsec_flow() 455 if (pos->assoc_num == ctx->sa.assoc_num && pos->bank == bank) in vsc8584_macsec_find_flow() 621 flow->assoc_num = -1; in vsc8584_macsec_alloc_flow() 697 flow->assoc_num = ctx->sa.assoc_num; in __vsc8584_macsec_add_rxsa() 724 flow->assoc_num = ctx->sa.assoc_num; in __vsc8584_macsec_add_txsa()
|
H A D | mscc_macsec.h | 78 int assoc_num; member
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/lib/ |
H A D | macsec_fs.h | 23 u8 assoc_num; member
|
H A D | macsec_fs.c | 1685 u8 tci_an = (sci_present << MLX5_MACSEC_SECTAG_TCI_SC_FIELD_OFFSET) | attrs->assoc_num; in macsec_fs_rx_setup_fte()
|
/linux/drivers/net/phy/ |
H A D | nxp-c45-tja11xx-macsec.c | 1197 u8 an = ctx->sa.assoc_num; in nxp_c45_mdo_add_rxsa() 1227 u8 an = ctx->sa.assoc_num; in nxp_c45_mdo_upd_rxsa() 1257 u8 an = ctx->sa.assoc_num; in nxp_c45_mdo_del_rxsa() 1287 u8 an = ctx->sa.assoc_num; in nxp_c45_mdo_add_txsa() 1317 u8 an = ctx->sa.assoc_num; in nxp_c45_mdo_upd_txsa() 1346 u8 an = ctx->sa.assoc_num; in nxp_c45_mdo_del_txsa() 1452 u8 an = ctx->sa.assoc_num; in nxp_c45_mdo_get_tx_sa_stats() 1531 u8 an = ctx->sa.assoc_num; in nxp_c45_mdo_get_rx_sa_stats()
|
/linux/include/net/ |
H A D | macsec.h | 279 unsigned char assoc_num; member
|