Home
last modified time | relevance | path

Searched refs:tx_sa (Results 1 – 3 of 3) sorted by relevance

/Linux-v4.19/drivers/net/
Dmacsec.c303 struct macsec_tx_sa *tx_sa; member
540 static u32 tx_sa_update_pn(struct macsec_tx_sa *tx_sa, struct macsec_secy *secy) in tx_sa_update_pn() argument
544 spin_lock_bh(&tx_sa->lock); in tx_sa_update_pn()
545 pn = tx_sa->next_pn; in tx_sa_update_pn()
547 tx_sa->next_pn++; in tx_sa_update_pn()
548 if (tx_sa->next_pn == 0) { in tx_sa_update_pn()
550 tx_sa->active = false; in tx_sa_update_pn()
554 spin_unlock_bh(&tx_sa->lock); in tx_sa_update_pn()
569 struct macsec_tx_sa *tx_sa) in macsec_count_tx() argument
577 this_cpu_inc(tx_sa->stats->OutPktsEncrypted); in macsec_count_tx()
[all …]
/Linux-v4.19/drivers/net/ethernet/intel/ixgbe/
Dixgbe_ipsec.h48 struct tx_sa { struct
67 struct tx_sa *tx_tbl; argument
Dixgbe_ipsec.c319 struct tx_sa *tsa = &ipsec->tx_tbl[i]; in ixgbe_ipsec_restore()
677 struct tx_sa tsa; in ixgbe_ipsec_add_sa()
776 memset(&ipsec->tx_tbl[sa_idx], 0, sizeof(struct tx_sa)); in ixgbe_ipsec_del_sa()
826 struct tx_sa *tsa; in ixgbe_ipsec_tx()
1006 size = sizeof(struct tx_sa) * IXGBE_IPSEC_MAX_SA_COUNT; in ixgbe_init_ipsec_offload()