Home
last modified time | relevance | path

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

/linux-6.12.1/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
Dmacsec.c108 struct mlx5e_macsec_sa *tx_sa[MACSEC_NUM_AN]; member
503 const struct macsec_tx_sa *ctx_tx_sa = ctx->sa.tx_sa; in mlx5e_macsec_add_txsa()
508 struct mlx5e_macsec_sa *tx_sa; in mlx5e_macsec_add_txsa() local
522 if (macsec_device->tx_sa[assoc_num]) { in mlx5e_macsec_add_txsa()
528 tx_sa = kzalloc(sizeof(*tx_sa), GFP_KERNEL); in mlx5e_macsec_add_txsa()
529 if (!tx_sa) { in mlx5e_macsec_add_txsa()
534 tx_sa->active = ctx_tx_sa->active; in mlx5e_macsec_add_txsa()
535 tx_sa->next_pn = ctx_tx_sa->next_pn_halves.lower; in mlx5e_macsec_add_txsa()
536 tx_sa->sci = secy->sci; in mlx5e_macsec_add_txsa()
537 tx_sa->assoc_num = assoc_num; in mlx5e_macsec_add_txsa()
[all …]
/linux-6.12.1/drivers/net/
Dmacsec.c136 struct macsec_tx_sa *tx_sa; member
436 struct macsec_tx_sa *tx_sa) in __macsec_pn_wrapped() argument
439 tx_sa->active = false; in __macsec_pn_wrapped()
444 void macsec_pn_wrapped(struct macsec_secy *secy, struct macsec_tx_sa *tx_sa) in macsec_pn_wrapped() argument
446 spin_lock_bh(&tx_sa->lock); in macsec_pn_wrapped()
447 __macsec_pn_wrapped(secy, tx_sa); in macsec_pn_wrapped()
448 spin_unlock_bh(&tx_sa->lock); in macsec_pn_wrapped()
452 static pn_t tx_sa_update_pn(struct macsec_tx_sa *tx_sa, in tx_sa_update_pn() argument
457 spin_lock_bh(&tx_sa->lock); in tx_sa_update_pn()
459 pn = tx_sa->next_pn_halves; in tx_sa_update_pn()
[all …]
/linux-6.12.1/drivers/net/ethernet/intel/ixgbevf/
Dipsec.h35 struct tx_sa { struct
54 struct tx_sa *tx_tbl; argument
Dipsec.c113 struct tx_sa *t = &ipsec->tx_tbl[i]; in ixgbevf_ipsec_restore()
349 struct tx_sa tsa; in ixgbevf_ipsec_add_sa()
426 memset(&ipsec->tx_tbl[sa_idx], 0, sizeof(struct tx_sa)); in ixgbevf_ipsec_del_sa()
471 struct tx_sa *tsa; in ixgbevf_ipsec_tx()
648 size = sizeof(struct tx_sa) * IXGBE_IPSEC_MAX_SA_COUNT; in ixgbevf_init_ipsec_offload()
/linux-6.12.1/drivers/net/ethernet/intel/ixgbe/
Dixgbe_ipsec.h50 struct tx_sa { struct
71 struct tx_sa *tx_tbl; argument
Dixgbe_ipsec.c320 struct tx_sa *t = &ipsec->tx_tbl[i]; in ixgbe_ipsec_restore()
706 struct tx_sa tsa; in ixgbe_ipsec_add_sa()
809 memset(&ipsec->tx_tbl[sa_idx], 0, sizeof(struct tx_sa)); in ixgbe_ipsec_del_sa()
1035 struct tx_sa *tsa; in ixgbe_ipsec_vf_del_sa()
1080 struct tx_sa *tsa; in ixgbe_ipsec_tx()
1262 size = sizeof(struct tx_sa) * IXGBE_IPSEC_MAX_SA_COUNT; in ixgbe_init_ipsec_offload()
/linux-6.12.1/drivers/net/ethernet/aquantia/atlantic/
Daq_macsec.c544 const struct macsec_tx_sa *tx_sa, in aq_update_txsa() argument
547 const u32 next_pn = tx_sa->next_pn_halves.lower; in aq_update_txsa()
555 sa_rec.valid = tx_sa->active; in aq_update_txsa()
598 ctx->sa.tx_sa, ctx->sa.key, in aq_mdo_add_txsa()
620 ctx->sa.tx_sa, NULL, ctx->sa.assoc_num); in aq_mdo_upd_txsa()
1053 struct macsec_tx_sa *tx_sa; in aq_mdo_get_tx_sa_stats() local
1074 tx_sa = rcu_dereference_bh(secy->tx_sc.sa[ctx->sa.assoc_num]); in aq_mdo_get_tx_sa_stats()
1077 spin_lock_bh(&tx_sa->lock); in aq_mdo_get_tx_sa_stats()
1078 tx_sa->next_pn = next_pn; in aq_mdo_get_tx_sa_stats()
1079 spin_unlock_bh(&tx_sa->lock); in aq_mdo_get_tx_sa_stats()
[all …]
/linux-6.12.1/drivers/net/phy/
Dnxp-c45-tja11xx-macsec.c1283 struct macsec_tx_sa *tx_sa = ctx->sa.tx_sa; in nxp_c45_mdo_add_txsa() local
1291 an, ctx->sa.tx_sa->active ? "enabled" : "disabled", in nxp_c45_mdo_add_txsa()
1298 sa = nxp_c45_sa_alloc(&phy_secy->sa_list, tx_sa, TX_SA, an); in nxp_c45_mdo_add_txsa()
1303 nxp_c45_sa_set_pn(phydev, sa, tx_sa->next_pn, 0); in nxp_c45_mdo_add_txsa()
1304 nxp_c45_sa_set_key(ctx, sa->regs, tx_sa->key.salt.bytes, tx_sa->ssci); in nxp_c45_mdo_add_txsa()
1306 nxp_c45_tx_sa_update(phydev, sa, tx_sa->active); in nxp_c45_mdo_add_txsa()
1313 struct macsec_tx_sa *tx_sa = ctx->sa.tx_sa; in nxp_c45_mdo_upd_txsa() local
1321 an, ctx->sa.tx_sa->active ? "enabled" : "disabled", in nxp_c45_mdo_upd_txsa()
1334 nxp_c45_sa_set_pn(phydev, sa, tx_sa->next_pn, 0); in nxp_c45_mdo_upd_txsa()
1336 nxp_c45_tx_sa_update(phydev, sa, tx_sa->active); in nxp_c45_mdo_upd_txsa()
[all …]
/linux-6.12.1/include/net/
Dmacsec.h283 struct macsec_tx_sa *tx_sa; member
359 void macsec_pn_wrapped(struct macsec_secy *secy, struct macsec_tx_sa *tx_sa);
/linux-6.12.1/drivers/net/phy/mscc/
Dmscc_macsec.c468 (flow->bank == MACSEC_EGR && flow->tx_sa && !flow->tx_sa->active)) in vsc8584_macsec_flow_enable()
577 flow->rx_sa->next_pn : flow->tx_sa->next_pn); in vsc8584_macsec_transformation()
725 flow->tx_sa = ctx->sa.tx_sa; in __vsc8584_macsec_add_txsa()
996 macsec_pn_wrapped(priv->secy, flow->tx_sa); in vsc8584_handle_macsec_interrupt()
Dmscc_macsec.h86 struct macsec_tx_sa *tx_sa; member
/linux-6.12.1/drivers/net/ethernet/marvell/octeontx2/nic/
Dcn10k_macsec.c1299 struct macsec_tx_sa *sw_tx_sa = ctx->sa.tx_sa; in cn10k_mdo_add_txsa()
1344 struct macsec_tx_sa *sw_tx_sa = ctx->sa.tx_sa; in cn10k_mdo_upd_txsa()