Home
last modified time | relevance | path

Searched refs:assoc_num (Results 1 – 9 of 9) sorted by relevance

/Linux-v6.1/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
Dmacsec.c60 u8 assoc_num; member
389 rule_attrs.assoc_num = sa->assoc_num; in mlx5e_macsec_init_sa()
520 u8 assoc_num = ctx->sa.assoc_num; in mlx5e_macsec_add_txsa() local
535 if (macsec_device->tx_sa[assoc_num]) { in mlx5e_macsec_add_txsa()
536 netdev_err(ctx->netdev, "MACsec offload tx_sa: %d already exist\n", assoc_num); in mlx5e_macsec_add_txsa()
550 tx_sa->assoc_num = assoc_num; in mlx5e_macsec_add_txsa()
561 macsec_device->tx_sa[assoc_num] = tx_sa; in mlx5e_macsec_add_txsa()
563 assoc_num != tx_sc->encoding_sa || in mlx5e_macsec_add_txsa()
576 macsec_device->tx_sa[assoc_num] = NULL; in mlx5e_macsec_add_txsa()
592 u8 assoc_num = ctx->sa.assoc_num; in mlx5e_macsec_upd_txsa() local
[all …]
Dmacsec_fs.h19 u8 assoc_num; member
Dmacsec_fs.c1069 u8 tci_an = (sci_present << MLX5_MACSEC_SECTAG_TCI_SC_FIELD_OFFSET) | attrs->assoc_num; in macsec_fs_rx_setup_fte()
/Linux-v6.1/drivers/net/ethernet/aquantia/atlantic/
Daq_macsec.c591 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-v6.1/drivers/net/ethernet/marvell/octeontx2/nic/
Dcn10k_macsec.c305 u8 assoc_num, bool sa_in_use) in cn10k_mcs_write_rx_sa_plcy() argument
307 unsigned char *src = rxsc->sa_key[assoc_num]; in cn10k_mcs_write_rx_sa_plcy()
335 plcy_req->sa_index[0] = rxsc->hw_sa_id[assoc_num]; in cn10k_mcs_write_rx_sa_plcy()
339 map_req->sa_index = rxsc->hw_sa_id[assoc_num]; in cn10k_mcs_write_rx_sa_plcy()
342 map_req->an = assoc_num; in cn10k_mcs_write_rx_sa_plcy()
354 u8 assoc_num, u64 next_pn) in cn10k_mcs_write_rx_sa_pn() argument
368 req->pn_id = rxsc->hw_sa_id[assoc_num]; in cn10k_mcs_write_rx_sa_pn()
526 u8 assoc_num) in cn10k_mcs_write_tx_sa_plcy() argument
528 unsigned char *src = txsc->sa_key[assoc_num]; in cn10k_mcs_write_tx_sa_plcy()
547 plcy_req->plcy[0][8] = assoc_num; in cn10k_mcs_write_tx_sa_plcy()
[all …]
/Linux-v6.1/drivers/net/
Dmacsec.c136 u8 assoc_num; member
1142 macsec_skb_cb(skb)->assoc_num = hdr->tci_an & MACSEC_AN_MASK; in macsec_handle_frame()
1176 rx_sa = macsec_rxsa_get(rx_sc->sa[macsec_skb_cb(skb)->assoc_num]); in macsec_handle_frame()
1532 u8 *assoc_num) in get_txsa_from_nl() argument
1542 *assoc_num = nla_get_u8(tb_sa[MACSEC_SA_ATTR_AN]); in get_txsa_from_nl()
1548 if (*assoc_num >= MACSEC_NUM_AN) in get_txsa_from_nl()
1554 tx_sa = rtnl_dereference(tx_sc->sa[*assoc_num]); in get_txsa_from_nl()
1602 u8 *assoc_num) in get_rxsa_from_nl() argument
1610 *assoc_num = nla_get_u8(tb_sa[MACSEC_SA_ATTR_AN]); in get_rxsa_from_nl()
1611 if (*assoc_num >= MACSEC_NUM_AN) in get_rxsa_from_nl()
[all …]
/Linux-v6.1/drivers/net/phy/mscc/
Dmscc_macsec.c382 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()
710 flow->assoc_num = ctx->sa.assoc_num; in __vsc8584_macsec_add_rxsa()
726 flow->assoc_num = ctx->sa.assoc_num; in __vsc8584_macsec_add_txsa()
Dmscc_macsec.h78 int assoc_num; member
/Linux-v6.1/include/net/
Dmacsec.h260 unsigned char assoc_num; member