/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ |
H A D | macsec.c | 82 struct mlx5e_macsec_sa *rx_sa[MACSEC_NUM_AN]; member 417 struct mlx5e_macsec_sa *rx_sa, in macsec_rx_sa_active_update() 424 if (rx_sa->active == active) in macsec_rx_sa_active_update() 427 rx_sa->active = active; in macsec_rx_sa_active_update() 429 mlx5e_macsec_cleanup_sa(macsec, rx_sa, false, ctx->secy->netdev, *fs_id); in macsec_rx_sa_active_update() 433 err = mlx5e_macsec_init_sa(ctx, rx_sa, true, false, fs_id); in macsec_rx_sa_active_update() 435 rx_sa->active = false; in macsec_rx_sa_active_update() 757 struct mlx5e_macsec_sa *rx_sa; in mlx5e_macsec_upd_rxsc() local 785 rx_sa = rx_sc->rx_sa[ in mlx5e_macsec_upd_rxsc() 416 macsec_rx_sa_active_update(struct macsec_context *ctx, struct mlx5e_macsec_sa *rx_sa, bool active, u32 *fs_id) macsec_rx_sa_active_update() argument 804 struct mlx5e_macsec_sa *rx_sa; macsec_del_rxsc_ctx() local 877 struct mlx5e_macsec_sa *rx_sa; mlx5e_macsec_add_rxsa() local 961 struct mlx5e_macsec_sa *rx_sa; mlx5e_macsec_upd_rxsa() local 1018 struct mlx5e_macsec_sa *rx_sa; mlx5e_macsec_del_rxsa() local 1123 struct mlx5e_macsec_sa *rx_sa; macsec_upd_secy_hw_address() local [all...] |
/kernel/linux/linux-5.10/drivers/net/ |
H A D | macsec.c | 142 struct macsec_rx_sa *rx_sa; member 750 struct macsec_rx_sa *rx_sa = macsec_skb_cb(skb)->rx_sa; in macsec_post_decrypt() local 751 struct pcpu_rx_sc_stats *rxsc_stats = this_cpu_ptr(rx_sa->sc->stats); in macsec_post_decrypt() 755 spin_lock(&rx_sa->lock); in macsec_post_decrypt() 756 if (rx_sa->next_pn_halves.lower >= secy->replay_window) in macsec_post_decrypt() 757 lowest_pn = rx_sa->next_pn_halves.lower - secy->replay_window; in macsec_post_decrypt() 764 spin_unlock(&rx_sa->lock); in macsec_post_decrypt() 783 spin_unlock(&rx_sa->lock); in macsec_post_decrypt() 791 this_cpu_inc(rx_sa in macsec_post_decrypt() 865 struct macsec_rx_sa *rx_sa = macsec_skb_cb(skb)->rx_sa; macsec_decrypt_done() local 899 macsec_decrypt(struct sk_buff *skb, struct net_device *dev, struct macsec_rx_sa *rx_sa, sci_t sci, struct macsec_secy *secy) macsec_decrypt() argument 1108 struct macsec_rx_sa *rx_sa; macsec_handle_frame() local 1369 init_rx_sa(struct macsec_rx_sa *rx_sa, char *sak, int key_len, int icv_len) init_rx_sa() argument 1391 clear_rx_sa(struct macsec_rx_sa *rx_sa) clear_rx_sa() argument 1620 struct macsec_rx_sa *rx_sa; get_rxsa_from_nl() local 1757 struct macsec_rx_sa *rx_sa; macsec_add_rxsa() local 2139 struct macsec_rx_sa *rx_sa; macsec_del_rxsa() local 2447 struct macsec_rx_sa *rx_sa; macsec_upd_rxsa() local 2752 get_rx_sa_stats(struct net_device *dev, struct macsec_rx_sc *rx_sc, int an, struct macsec_rx_sa *rx_sa, struct macsec_rx_sa_stats *sum) get_rx_sa_stats() argument 3230 struct macsec_rx_sa *rx_sa = rtnl_dereference(rx_sc->sa[i]); dump_secy() local [all...] |
/kernel/linux/linux-6.6/drivers/net/ |
H A D | macsec.c | 134 struct macsec_rx_sa *rx_sa; member 722 struct macsec_rx_sa *rx_sa = macsec_skb_cb(skb)->rx_sa; in macsec_post_decrypt() local 723 struct pcpu_rx_sc_stats *rxsc_stats = this_cpu_ptr(rx_sa->sc->stats); in macsec_post_decrypt() 727 spin_lock(&rx_sa->lock); in macsec_post_decrypt() 728 if (rx_sa->next_pn_halves.lower >= secy->replay_window) in macsec_post_decrypt() 729 lowest_pn = rx_sa->next_pn_halves.lower - secy->replay_window; in macsec_post_decrypt() 736 spin_unlock(&rx_sa->lock); in macsec_post_decrypt() 755 spin_unlock(&rx_sa->lock); in macsec_post_decrypt() 763 this_cpu_inc(rx_sa in macsec_post_decrypt() 832 struct macsec_rx_sa *rx_sa = macsec_skb_cb(skb)->rx_sa; macsec_decrypt_done() local 866 macsec_decrypt(struct sk_buff *skb, struct net_device *dev, struct macsec_rx_sa *rx_sa, sci_t sci, struct macsec_secy *secy) macsec_decrypt() argument 1091 struct macsec_rx_sa *rx_sa; macsec_handle_frame() local 1352 init_rx_sa(struct macsec_rx_sa *rx_sa, char *sak, int key_len, int icv_len) init_rx_sa() argument 1374 clear_rx_sa(struct macsec_rx_sa *rx_sa) clear_rx_sa() argument 1603 struct macsec_rx_sa *rx_sa; get_rxsa_from_nl() local 1726 struct macsec_rx_sa *rx_sa; macsec_add_rxsa() local 2108 struct macsec_rx_sa *rx_sa; macsec_del_rxsa() local 2416 struct macsec_rx_sa *rx_sa; macsec_upd_rxsa() local 2715 get_rx_sa_stats(struct net_device *dev, struct macsec_rx_sc *rx_sc, int an, struct macsec_rx_sa *rx_sa, struct macsec_rx_sa_stats *sum) get_rx_sa_stats() argument 3193 struct macsec_rx_sa *rx_sa = rtnl_dereference(rx_sc->sa[i]); dump_secy() local [all...] |
/kernel/linux/linux-6.6/drivers/net/netdevsim/ |
H A D | macsec.c | 211 idx = nsim_macsec_find_rxsc(secy, ctx->sa.rx_sa->sc->sci); in nsim_macsec_add_rxsa() 214 __func__, sci_to_cpu(ctx->sa.rx_sa->sc->sci)); in nsim_macsec_add_rxsa() 219 __func__, sci_to_cpu(ctx->sa.rx_sa->sc->sci), ctx->sa.assoc_num); in nsim_macsec_add_rxsa() 238 idx = nsim_macsec_find_rxsc(secy, ctx->sa.rx_sa->sc->sci); in nsim_macsec_upd_rxsa() 241 __func__, sci_to_cpu(ctx->sa.rx_sa->sc->sci)); in nsim_macsec_upd_rxsa() 246 __func__, sci_to_cpu(ctx->sa.rx_sa->sc->sci), ctx->sa.assoc_num); in nsim_macsec_upd_rxsa() 265 idx = nsim_macsec_find_rxsc(secy, ctx->sa.rx_sa->sc->sci); in nsim_macsec_del_rxsa() 268 __func__, sci_to_cpu(ctx->sa.rx_sa->sc->sci)); in nsim_macsec_del_rxsa() 273 __func__, sci_to_cpu(ctx->sa.rx_sa->sc->sci), ctx->sa.assoc_num); in nsim_macsec_del_rxsa()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/ixgbevf/ |
H A D | ipsec.h | 17 struct rx_sa { struct 53 struct rx_sa *rx_tbl;
|
H A D | ipsec.c | 112 struct rx_sa *r = &ipsec->rx_tbl[i]; in ixgbevf_ipsec_restore() 183 struct rx_sa *rsa; in ixgbevf_ipsec_find_rx_state() 284 struct rx_sa rsa; in ixgbevf_ipsec_add_sa() 408 memset(&ipsec->rx_tbl[sa_idx], 0, sizeof(struct rx_sa)); in ixgbevf_ipsec_del_sa() 636 size = sizeof(struct rx_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 | 17 struct rx_sa { struct 53 struct rx_sa *rx_tbl;
|
H A D | ipsec.c | 112 struct rx_sa *r = &ipsec->rx_tbl[i]; in ixgbevf_ipsec_restore() 183 struct rx_sa *rsa; in ixgbevf_ipsec_find_rx_state() 290 struct rx_sa rsa; in ixgbevf_ipsec_add_sa() 414 memset(&ipsec->rx_tbl[sa_idx], 0, sizeof(struct rx_sa)); in ixgbevf_ipsec_del_sa() 643 size = sizeof(struct rx_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 | 31 struct rx_sa { struct 70 struct rx_sa *rx_tbl;
|
H A D | ixgbe_ipsec.c | 319 struct rx_sa *r = &ipsec->rx_tbl[i]; in ixgbe_ipsec_restore() 396 struct rx_sa *rsa; in ixgbe_ipsec_find_rx_state() 589 struct rx_sa rsa; in ixgbe_ipsec_add_sa() 761 struct rx_sa *rsa; in ixgbe_ipsec_del_sa() 791 memset(rsa, 0, sizeof(struct rx_sa)); in ixgbe_ipsec_del_sa() 1008 struct rx_sa *rsa; in ixgbe_ipsec_vf_del_sa() 1252 size = sizeof(struct rx_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 | 31 struct rx_sa { struct 70 struct rx_sa *rx_tbl;
|
H A D | ixgbe_ipsec.c | 319 struct rx_sa *r = &ipsec->rx_tbl[i]; in ixgbe_ipsec_restore() 396 struct rx_sa *rsa; in ixgbe_ipsec_find_rx_state() 595 struct rx_sa rsa; in ixgbe_ipsec_add_sa() 767 struct rx_sa *rsa; in ixgbe_ipsec_del_sa() 797 memset(rsa, 0, sizeof(struct rx_sa)); in ixgbe_ipsec_del_sa() 1013 struct rx_sa *rsa; in ixgbe_ipsec_vf_del_sa() 1257 size = sizeof(struct rx_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 | 893 const struct macsec_rx_sa *rx_sa, in aq_update_rxsa() 897 const u32 next_pn = rx_sa->next_pn_halves.lower; in aq_update_rxsa() 904 sa_record.valid = rx_sa->active; in aq_update_rxsa() 942 const struct macsec_rx_sc *rx_sc = ctx->sa.rx_sa->sc; in aq_mdo_add_rxsa() 964 ctx->sa.rx_sa, ctx->sa.key, in aq_mdo_add_rxsa() 972 const struct macsec_rx_sc *rx_sc = ctx->sa.rx_sa->sc; in aq_mdo_upd_rxsa() 988 secy, ctx->sa.rx_sa, NULL, in aq_mdo_upd_rxsa() 1024 const struct macsec_rx_sc *rx_sc = ctx->sa.rx_sa->sc; in aq_mdo_del_rxsa() 1191 struct macsec_rx_sa *rx_sa; in aq_mdo_get_rx_sa_stats() local 1217 rx_sa in aq_mdo_get_rx_sa_stats() 891 aq_update_rxsa(struct aq_nic_s *nic, const unsigned int sc_idx, const struct macsec_secy *secy, const struct macsec_rx_sa *rx_sa, const unsigned char *key, const unsigned char an) aq_update_rxsa() argument 1260 struct macsec_rx_sa *rx_sa; apply_rxsc_cfg() local [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/aquantia/atlantic/ |
H A D | aq_macsec.c | 860 const struct macsec_rx_sa *rx_sa, in aq_update_rxsa() 864 const u32 next_pn = rx_sa->next_pn_halves.lower; in aq_update_rxsa() 871 sa_record.valid = rx_sa->active; in aq_update_rxsa() 910 const struct macsec_rx_sc *rx_sc = ctx->sa.rx_sa->sc; in aq_mdo_add_rxsa() 928 ctx->sa.rx_sa, ctx->sa.key, in aq_mdo_add_rxsa() 937 const struct macsec_rx_sc *rx_sc = ctx->sa.rx_sa->sc; in aq_mdo_upd_rxsa() 949 secy, ctx->sa.rx_sa, NULL, in aq_mdo_upd_rxsa() 986 const struct macsec_rx_sc *rx_sc = ctx->sa.rx_sa->sc; in aq_mdo_del_rxsa() 1137 struct macsec_rx_sa *rx_sa; in aq_mdo_get_rx_sa_stats() local 1160 rx_sa in aq_mdo_get_rx_sa_stats() 858 aq_update_rxsa(struct aq_nic_s *nic, const unsigned int sc_idx, const struct macsec_secy *secy, const struct macsec_rx_sa *rx_sa, const unsigned char *key, const unsigned char an) aq_update_rxsa() argument 1203 struct macsec_rx_sa *rx_sa; apply_rxsc_cfg() local [all...] |
/kernel/linux/linux-5.10/drivers/net/phy/mscc/ |
H A D | mscc_macsec.c | 387 if (bank == MACSEC_INGR && flow->match.sci && flow->rx_sa->sc->sci) { in vsc8584_macsec_flow() 388 u64 sci = (__force u64)flow->rx_sa->sc->sci; in vsc8584_macsec_flow() 467 if ((flow->bank == MACSEC_INGR && flow->rx_sa && !flow->rx_sa->active) || in vsc8584_macsec_flow_enable() 577 flow->rx_sa->next_pn : flow->tx_sa->next_pn); in vsc8584_macsec_transformation() 586 sci = (__force u64)(bank == MACSEC_INGR ? flow->rx_sa->sc->sci : priv->secy->sci); in vsc8584_macsec_transformation() 719 flow->rx_sa = ctx->sa.rx_sa; in __vsc8584_macsec_add_rxsa() 856 if (flow->bank == MACSEC_INGR && flow->rx_sa && in vsc8584_macsec_del_rxsc() 857 flow->rx_sa in vsc8584_macsec_del_rxsc() [all...] |
H A D | mscc_macsec.h | 87 struct macsec_rx_sa *rx_sa; member
|
/kernel/linux/linux-6.6/drivers/net/phy/mscc/ |
H A D | mscc_macsec.c | 387 if (bank == MACSEC_INGR && flow->match.sci && flow->rx_sa->sc->sci) { in vsc8584_macsec_flow() 388 u64 sci = (__force u64)flow->rx_sa->sc->sci; in vsc8584_macsec_flow() 467 if ((flow->bank == MACSEC_INGR && flow->rx_sa && !flow->rx_sa->active) || in vsc8584_macsec_flow_enable() 577 flow->rx_sa->next_pn : flow->tx_sa->next_pn); in vsc8584_macsec_transformation() 586 sci = (__force u64)(bank == MACSEC_INGR ? flow->rx_sa->sc->sci : priv->secy->sci); in vsc8584_macsec_transformation() 698 flow->rx_sa = ctx->sa.rx_sa; in __vsc8584_macsec_add_rxsa() 820 if (flow->bank == MACSEC_INGR && flow->rx_sa && in vsc8584_macsec_del_rxsc() 821 flow->rx_sa in vsc8584_macsec_del_rxsc() [all...] |
H A D | mscc_macsec.h | 85 struct macsec_rx_sa *rx_sa; member
|
/kernel/linux/linux-6.6/drivers/net/ethernet/marvell/octeontx2/nic/ |
H A D | cn10k_macsec.c | 1470 struct macsec_rx_sc *sw_rx_sc = ctx->sa.rx_sa->sc; in cn10k_mdo_add_rxsa() 1472 struct macsec_rx_sa *rx_sa = ctx->sa.rx_sa; in cn10k_mdo_add_rxsa() local 1474 bool sa_in_use = rx_sa->active; in cn10k_mdo_add_rxsa() 1490 memcpy(&rxsc->salt[sa_num], rx_sa->key.salt.bytes, MACSEC_SALT_LEN); in cn10k_mdo_add_rxsa() 1491 rxsc->ssci[sa_num] = rx_sa->ssci; in cn10k_mdo_add_rxsa() 1502 rx_sa->next_pn); in cn10k_mdo_add_rxsa() 1513 struct macsec_rx_sc *sw_rx_sc = ctx->sa.rx_sa->sc; in cn10k_mdo_upd_rxsa() 1515 struct macsec_rx_sa *rx_sa = ctx->sa.rx_sa; in cn10k_mdo_upd_rxsa() local [all...] |
/kernel/linux/linux-5.10/include/net/ |
H A D | macsec.h | 247 struct macsec_rx_sa *rx_sa; member
|
/kernel/linux/linux-6.6/include/net/ |
H A D | macsec.h | 265 struct macsec_rx_sa *rx_sa; member
|