Home
last modified time | relevance | path

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

/Linux-v5.10/drivers/net/ethernet/aquantia/atlantic/
Daq_macsec.c608 set_bit(ctx->sa.assoc_num, &aq_txsc->tx_sa_idx_busy); in aq_mdo_add_txsa()
610 memcpy(aq_txsc->tx_sa_key[ctx->sa.assoc_num], ctx->sa.key, in aq_mdo_add_txsa()
616 ctx->sa.assoc_num); in aq_mdo_add_txsa()
640 ctx->sa.tx_sa, NULL, ctx->sa.assoc_num); in aq_mdo_upd_txsa()
687 ret = aq_clear_txsa(nic, &cfg->aq_txsc[txsc_idx], ctx->sa.assoc_num, in aq_mdo_del_txsa()
955 set_bit(ctx->sa.assoc_num, &aq_rxsc->rx_sa_idx_busy); in aq_mdo_add_rxsa()
957 memcpy(aq_rxsc->rx_sa_key[ctx->sa.assoc_num], ctx->sa.key, in aq_mdo_add_rxsa()
963 ctx->sa.assoc_num); in aq_mdo_add_rxsa()
987 ctx->sa.assoc_num); in aq_mdo_upd_rxsa()
1035 ret = aq_clear_rxsa(nic, &cfg->aq_rxsc[rxsc_idx], ctx->sa.assoc_num, in aq_mdo_del_rxsa()
[all …]
/Linux-v5.10/drivers/net/
Dmacsec.c144 u8 assoc_num; member
1127 macsec_skb_cb(skb)->assoc_num = hdr->tci_an & MACSEC_AN_MASK; in macsec_handle_frame()
1160 rx_sa = macsec_rxsa_get(rx_sc->sa[macsec_skb_cb(skb)->assoc_num]); in macsec_handle_frame()
1507 u8 *assoc_num) in get_txsa_from_nl() argument
1517 *assoc_num = nla_get_u8(tb_sa[MACSEC_SA_ATTR_AN]); in get_txsa_from_nl()
1523 if (*assoc_num >= MACSEC_NUM_AN) in get_txsa_from_nl()
1529 tx_sa = rtnl_dereference(tx_sc->sa[*assoc_num]); in get_txsa_from_nl()
1577 u8 *assoc_num) in get_rxsa_from_nl() argument
1585 *assoc_num = nla_get_u8(tb_sa[MACSEC_SA_ATTR_AN]); in get_rxsa_from_nl()
1586 if (*assoc_num >= MACSEC_NUM_AN) in get_rxsa_from_nl()
[all …]
/Linux-v5.10/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()
717 flow->assoc_num = ctx->sa.assoc_num; in __vsc8584_macsec_add_rxsa()
744 flow->assoc_num = ctx->sa.assoc_num; in __vsc8584_macsec_add_txsa()
Dmscc_macsec.h78 int assoc_num; member
/Linux-v5.10/include/net/
Dmacsec.h243 unsigned char assoc_num; member