Lines Matching refs:assoc_num

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()
1627 rx_sa = rtnl_dereference(rx_sc->sa[*assoc_num]); in get_rxsa_from_nl()
1738 unsigned char assoc_num; in macsec_add_rxsa() local
1763 assoc_num = nla_get_u8(tb_sa[MACSEC_SA_ATTR_AN]); in macsec_add_rxsa()
1796 rx_sa = rtnl_dereference(rx_sc->sa[assoc_num]); in macsec_add_rxsa()
1844 ctx.sa.assoc_num = assoc_num; in macsec_add_rxsa()
1857 rcu_assign_pointer(rx_sc->sa[assoc_num], rx_sa); in macsec_add_rxsa()
1982 unsigned char assoc_num; in macsec_add_txsa() local
2007 assoc_num = nla_get_u8(tb_sa[MACSEC_SA_ATTR_AN]); in macsec_add_txsa()
2039 tx_sa = rtnl_dereference(tx_sc->sa[assoc_num]); in macsec_add_txsa()
2067 if (assoc_num == tx_sc->encoding_sa && tx_sa->active) in macsec_add_txsa()
2087 ctx.sa.assoc_num = assoc_num; in macsec_add_txsa()
2100 rcu_assign_pointer(tx_sc->sa[assoc_num], tx_sa); in macsec_add_txsa()
2120 u8 assoc_num; in macsec_del_rxsa() local
2136 &dev, &secy, &rx_sc, &assoc_num); in macsec_del_rxsa()
2158 ctx.sa.assoc_num = assoc_num; in macsec_del_rxsa()
2167 RCU_INIT_POINTER(rx_sc->sa[assoc_num], NULL); in macsec_del_rxsa()
2249 u8 assoc_num; in macsec_del_txsa() local
2261 &dev, &secy, &tx_sc, &assoc_num); in macsec_del_txsa()
2283 ctx.sa.assoc_num = assoc_num; in macsec_del_txsa()
2292 RCU_INIT_POINTER(tx_sc->sa[assoc_num], NULL); in macsec_del_txsa()
2334 u8 assoc_num; in macsec_upd_txsa() local
2353 &dev, &secy, &tx_sc, &assoc_num); in macsec_upd_txsa()
2381 if (assoc_num == tx_sc->encoding_sa) in macsec_upd_txsa()
2395 ctx.sa.assoc_num = assoc_num; in macsec_upd_txsa()
2428 u8 assoc_num; in macsec_upd_rxsa() local
2451 &dev, &secy, &rx_sc, &assoc_num); in macsec_upd_rxsa()
2489 ctx.sa.assoc_num = assoc_num; in macsec_upd_rxsa()
2729 ctx.sa.assoc_num = an; in get_tx_sa_stats()
2773 ctx.sa.assoc_num = an; in get_rx_sa_stats()