Searched refs:rx_sa (Results 1 – 9 of 9) sorted by relevance
/linux-5.19.10/drivers/net/ |
D | macsec.c | 145 struct macsec_rx_sa *rx_sa; member 723 struct macsec_rx_sa *rx_sa = macsec_skb_cb(skb)->rx_sa; in macsec_post_decrypt() local 724 struct pcpu_rx_sc_stats *rxsc_stats = this_cpu_ptr(rx_sa->sc->stats); in macsec_post_decrypt() 728 spin_lock(&rx_sa->lock); in macsec_post_decrypt() 729 if (rx_sa->next_pn_halves.lower >= secy->replay_window) in macsec_post_decrypt() 730 lowest_pn = rx_sa->next_pn_halves.lower - secy->replay_window; in macsec_post_decrypt() 737 spin_unlock(&rx_sa->lock); in macsec_post_decrypt() 754 spin_unlock(&rx_sa->lock); in macsec_post_decrypt() 768 this_cpu_inc(rx_sa->stats->InPktsInvalid); in macsec_post_decrypt() 781 this_cpu_inc(rx_sa->stats->InPktsOK); in macsec_post_decrypt() [all …]
|
/linux-5.19.10/drivers/net/ethernet/intel/ixgbevf/ |
D | ipsec.h | 17 struct rx_sa { struct 53 struct rx_sa *rx_tbl;
|
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() 637 size = sizeof(struct rx_sa) * IXGBE_IPSEC_MAX_SA_COUNT; in ixgbevf_init_ipsec_offload()
|
/linux-5.19.10/drivers/net/ethernet/intel/ixgbe/ |
D | ixgbe_ipsec.h | 31 struct rx_sa { struct 70 struct rx_sa *rx_tbl;
|
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() 1007 struct rx_sa *rsa; in ixgbe_ipsec_vf_del_sa() 1251 size = sizeof(struct rx_sa) * IXGBE_IPSEC_MAX_SA_COUNT; in ixgbe_init_ipsec_offload()
|
/linux-5.19.10/drivers/net/phy/mscc/ |
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() 718 flow->rx_sa = ctx->sa.rx_sa; in __vsc8584_macsec_add_rxsa() 855 if (flow->bank == MACSEC_INGR && flow->rx_sa && in vsc8584_macsec_del_rxsc() 856 flow->rx_sa->sc->sci == ctx->rx_sc->sci) in vsc8584_macsec_del_rxsc()
|
D | mscc_macsec.h | 87 struct macsec_rx_sa *rx_sa; member
|
/linux-5.19.10/drivers/net/ethernet/aquantia/atlantic/ |
D | aq_macsec.c | 892 const struct macsec_rx_sa *rx_sa, in aq_update_rxsa() argument 896 const u32 next_pn = rx_sa->next_pn_halves.lower; in aq_update_rxsa() 903 sa_record.valid = rx_sa->active; in aq_update_rxsa() 940 const struct macsec_rx_sc *rx_sc = ctx->sa.rx_sa->sc; in aq_mdo_add_rxsa() 962 ctx->sa.rx_sa, ctx->sa.key, in aq_mdo_add_rxsa() 970 const struct macsec_rx_sc *rx_sc = ctx->sa.rx_sa->sc; in aq_mdo_upd_rxsa() 986 secy, ctx->sa.rx_sa, NULL, in aq_mdo_upd_rxsa() 1022 const struct macsec_rx_sc *rx_sc = ctx->sa.rx_sa->sc; in aq_mdo_del_rxsa() 1189 struct macsec_rx_sa *rx_sa; in aq_mdo_get_rx_sa_stats() local 1215 rx_sa = rcu_dereference_bh(aq_rxsc->sw_rxsc->sa[ctx->sa.assoc_num]); in aq_mdo_get_rx_sa_stats() [all …]
|
/linux-5.19.10/include/net/ |
D | macsec.h | 246 struct macsec_rx_sa *rx_sa; member
|