/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ |
H A D | macsec.c | 108 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() 523 netdev_err(ctx->netdev, "MACsec offload tx_sa: %d already exist\n", 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 in mlx5e_macsec_add_txsa() 579 struct mlx5e_macsec_sa *tx_sa; mlx5e_macsec_upd_txsa() local 639 struct mlx5e_macsec_sa *tx_sa; mlx5e_macsec_del_txsa() local 1172 struct mlx5e_macsec_sa *tx_sa; mlx5e_macsec_upd_secy() local 1227 struct mlx5e_macsec_sa *tx_sa; mlx5e_macsec_del_secy() local [all...] |
/kernel/linux/linux-5.10/drivers/net/ |
H A D | macsec.c | 141 struct macsec_tx_sa *tx_sa; member 468 struct macsec_tx_sa *tx_sa) in __macsec_pn_wrapped() 471 tx_sa->active = false; in __macsec_pn_wrapped() 476 void macsec_pn_wrapped(struct macsec_secy *secy, struct macsec_tx_sa *tx_sa) in macsec_pn_wrapped() argument 478 spin_lock_bh(&tx_sa->lock); in macsec_pn_wrapped() 479 __macsec_pn_wrapped(secy, tx_sa); in macsec_pn_wrapped() 480 spin_unlock_bh(&tx_sa->lock); in macsec_pn_wrapped() 484 static pn_t tx_sa_update_pn(struct macsec_tx_sa *tx_sa, in tx_sa_update_pn() argument 489 spin_lock_bh(&tx_sa->lock); in tx_sa_update_pn() 491 pn = tx_sa in tx_sa_update_pn() 467 __macsec_pn_wrapped(struct macsec_secy *secy, struct macsec_tx_sa *tx_sa) __macsec_pn_wrapped() argument 522 macsec_count_tx(struct sk_buff *skb, struct macsec_tx_sc *tx_sc, struct macsec_tx_sa *tx_sa) macsec_count_tx() argument 619 struct macsec_tx_sa *tx_sa; macsec_encrypt() local 1469 init_tx_sa(struct macsec_tx_sa *tx_sa, char *sak, int key_len, int icv_len) init_tx_sa() argument 1490 clear_tx_sa(struct macsec_tx_sa *tx_sa) clear_tx_sa() argument 1552 struct macsec_tx_sa *tx_sa; get_txsa_from_nl() local 2001 struct macsec_tx_sa *tx_sa; macsec_add_txsa() local 2268 struct macsec_tx_sa *tx_sa; macsec_del_txsa() local 2353 struct macsec_tx_sa *tx_sa; macsec_upd_txsa() local 2709 get_tx_sa_stats(struct net_device *dev, int an, struct macsec_tx_sa *tx_sa, struct macsec_tx_sa_stats *sum) get_tx_sa_stats() argument 3130 struct macsec_tx_sa *tx_sa = rtnl_dereference(tx_sc->sa[i]); dump_secy() local 3768 struct macsec_tx_sa *tx_sa; macsec_changelink_common() local [all...] |
/kernel/linux/linux-6.6/drivers/net/ |
H A D | macsec.c | 133 struct macsec_tx_sa *tx_sa; member 446 struct macsec_tx_sa *tx_sa) in __macsec_pn_wrapped() 449 tx_sa->active = false; in __macsec_pn_wrapped() 454 void macsec_pn_wrapped(struct macsec_secy *secy, struct macsec_tx_sa *tx_sa) in macsec_pn_wrapped() argument 456 spin_lock_bh(&tx_sa->lock); in macsec_pn_wrapped() 457 __macsec_pn_wrapped(secy, tx_sa); in macsec_pn_wrapped() 458 spin_unlock_bh(&tx_sa->lock); in macsec_pn_wrapped() 462 static pn_t tx_sa_update_pn(struct macsec_tx_sa *tx_sa, in tx_sa_update_pn() argument 467 spin_lock_bh(&tx_sa->lock); in tx_sa_update_pn() 469 pn = tx_sa in tx_sa_update_pn() 445 __macsec_pn_wrapped(struct macsec_secy *secy, struct macsec_tx_sa *tx_sa) __macsec_pn_wrapped() argument 500 macsec_count_tx(struct sk_buff *skb, struct macsec_tx_sc *tx_sc, struct macsec_tx_sa *tx_sa) macsec_count_tx() argument 591 struct macsec_tx_sa *tx_sa; macsec_encrypt() local 1452 init_tx_sa(struct macsec_tx_sa *tx_sa, char *sak, int key_len, int icv_len) init_tx_sa() argument 1473 clear_tx_sa(struct macsec_tx_sa *tx_sa) clear_tx_sa() argument 1535 struct macsec_tx_sa *tx_sa; get_txsa_from_nl() local 1970 struct macsec_tx_sa *tx_sa; macsec_add_txsa() local 2237 struct macsec_tx_sa *tx_sa; macsec_del_txsa() local 2322 struct macsec_tx_sa *tx_sa; macsec_upd_txsa() local 2672 get_tx_sa_stats(struct net_device *dev, int an, struct macsec_tx_sa *tx_sa, struct macsec_tx_sa_stats *sum) get_tx_sa_stats() argument 3093 struct macsec_tx_sa *tx_sa = rtnl_dereference(tx_sc->sa[i]); dump_secy() local 3743 struct macsec_tx_sa *tx_sa; macsec_changelink_common() local [all...] |
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/ixgbevf/ |
H A D | ipsec.h | 35 struct tx_sa { struct 54 struct tx_sa *tx_tbl;
|
H A D | ipsec.c | 113 struct tx_sa *t = &ipsec->tx_tbl[i]; in ixgbevf_ipsec_restore() 343 struct tx_sa tsa; in ixgbevf_ipsec_add_sa() 420 memset(&ipsec->tx_tbl[sa_idx], 0, sizeof(struct tx_sa)); in ixgbevf_ipsec_del_sa() 465 struct tx_sa *tsa; in ixgbevf_ipsec_tx() 641 size = sizeof(struct tx_sa) * IXGBE_IPSEC_MAX_SA_COUNT; in ixgbevf_init_ipsec_offload()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/intel/ixgbevf/ |
H A D | ipsec.h | 35 struct tx_sa { struct 54 struct tx_sa *tx_tbl;
|
H A D | ipsec.c | 113 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()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/ixgbe/ |
H A D | ixgbe_ipsec.h | 50 struct tx_sa { struct 71 struct tx_sa *tx_tbl;
|
H A D | ixgbe_ipsec.c | 320 struct tx_sa *t = &ipsec->tx_tbl[i]; in ixgbe_ipsec_restore() 700 struct tx_sa tsa; in ixgbe_ipsec_add_sa() 803 memset(&ipsec->tx_tbl[sa_idx], 0, sizeof(struct tx_sa)); in ixgbe_ipsec_del_sa() 1030 struct tx_sa *tsa; in ixgbe_ipsec_vf_del_sa() 1075 struct tx_sa *tsa; in ixgbe_ipsec_tx() 1257 size = sizeof(struct tx_sa) * IXGBE_IPSEC_MAX_SA_COUNT; in ixgbe_init_ipsec_offload()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/intel/ixgbe/ |
H A D | ixgbe_ipsec.h | 50 struct tx_sa { struct 71 struct tx_sa *tx_tbl;
|
H A D | ixgbe_ipsec.c | 320 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()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/aquantia/atlantic/ |
H A D | aq_macsec.c | 559 const struct macsec_tx_sa *tx_sa, in aq_update_txsa() 562 const u32 next_pn = tx_sa->next_pn_halves.lower; in aq_update_txsa() 570 sa_rec.valid = tx_sa->active; in aq_update_txsa() 616 ctx->sa.tx_sa, ctx->sa.key, in aq_mdo_add_txsa() 641 ctx->sa.tx_sa, NULL, ctx->sa.assoc_num); in aq_mdo_upd_txsa() 1101 struct macsec_tx_sa *tx_sa; in aq_mdo_get_tx_sa_stats() local 1125 tx_sa = rcu_dereference_bh(secy->tx_sc.sa[ctx->sa.assoc_num]); in aq_mdo_get_tx_sa_stats() 1128 spin_lock_bh(&tx_sa->lock); in aq_mdo_get_tx_sa_stats() 1129 tx_sa->next_pn = next_pn; in aq_mdo_get_tx_sa_stats() 1130 spin_unlock_bh(&tx_sa in aq_mdo_get_tx_sa_stats() 557 aq_update_txsa(struct aq_nic_s *nic, const unsigned int sc_idx, const struct macsec_secy *secy, const struct macsec_tx_sa *tx_sa, const unsigned char *key, const unsigned char an) aq_update_txsa() argument 1232 struct macsec_tx_sa *tx_sa; apply_txsc_cfg() local 1403 struct macsec_tx_sa *tx_sa; aq_check_txsa_expiration() local [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/aquantia/atlantic/ |
H A D | aq_macsec.c | 544 const struct macsec_tx_sa *tx_sa, in aq_update_txsa() 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 in aq_mdo_get_tx_sa_stats() 542 aq_update_txsa(struct aq_nic_s *nic, const unsigned int sc_idx, const struct macsec_secy *secy, const struct macsec_tx_sa *tx_sa, const unsigned char *key, const unsigned char an) aq_update_txsa() argument 1175 struct macsec_tx_sa *tx_sa; apply_txsc_cfg() local 1346 struct macsec_tx_sa *tx_sa; aq_check_txsa_expiration() local [all...] |
/kernel/linux/linux-5.10/include/net/ |
H A D | macsec.h | 248 struct macsec_tx_sa *tx_sa; member 292 void macsec_pn_wrapped(struct macsec_secy *secy, struct macsec_tx_sa *tx_sa);
|
/kernel/linux/linux-6.6/include/net/ |
H A D | macsec.h | 266 struct macsec_tx_sa *tx_sa; member 308 void macsec_pn_wrapped(struct macsec_secy *secy, struct macsec_tx_sa *tx_sa);
|
/kernel/linux/linux-5.10/drivers/net/phy/mscc/ |
H A D | mscc_macsec.c | 468 (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() 746 flow->tx_sa = ctx->sa.tx_sa; in __vsc8584_macsec_add_txsa() 1028 macsec_pn_wrapped(priv->secy, flow->tx_sa); in vsc8584_handle_macsec_interrupt()
|
H A D | mscc_macsec.h | 88 struct macsec_tx_sa *tx_sa; member
|
/kernel/linux/linux-6.6/drivers/net/phy/mscc/ |
H A D | mscc_macsec.c | 468 (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()
|
H A D | mscc_macsec.h | 86 struct macsec_tx_sa *tx_sa; member
|
/kernel/linux/linux-6.6/drivers/net/ethernet/marvell/octeontx2/nic/ |
H A D | cn10k_macsec.c | 1299 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()
|