Searched refs:rx_sa (Results 1 – 9 of 9) sorted by relevance
/Linux-v5.10/drivers/net/ |
D | macsec.c | 142 struct macsec_rx_sa *rx_sa; member 724 struct macsec_rx_sa *rx_sa = macsec_skb_cb(skb)->rx_sa; in macsec_post_decrypt() local 725 struct pcpu_rx_sc_stats *rxsc_stats = this_cpu_ptr(rx_sa->sc->stats); in macsec_post_decrypt() 729 spin_lock(&rx_sa->lock); in macsec_post_decrypt() 730 if (rx_sa->next_pn_halves.lower >= secy->replay_window) in macsec_post_decrypt() 731 lowest_pn = rx_sa->next_pn_halves.lower - secy->replay_window; in macsec_post_decrypt() 738 spin_unlock(&rx_sa->lock); in macsec_post_decrypt() 755 spin_unlock(&rx_sa->lock); in macsec_post_decrypt() 769 this_cpu_inc(rx_sa->stats->InPktsInvalid); in macsec_post_decrypt() 782 this_cpu_inc(rx_sa->stats->InPktsOK); in macsec_post_decrypt() [all …]
|
/Linux-v5.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() 276 struct rx_sa rsa; in ixgbevf_ipsec_add_sa() 397 memset(&ipsec->rx_tbl[sa_idx], 0, sizeof(struct rx_sa)); in ixgbevf_ipsec_del_sa() 625 size = sizeof(struct rx_sa) * IXGBE_IPSEC_MAX_SA_COUNT; in ixgbevf_init_ipsec_offload()
|
/Linux-v5.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() 584 struct rx_sa rsa; in ixgbe_ipsec_add_sa() 756 struct rx_sa *rsa; in ixgbe_ipsec_del_sa() 786 memset(rsa, 0, sizeof(struct rx_sa)); in ixgbe_ipsec_del_sa() 1002 struct rx_sa *rsa; in ixgbe_ipsec_vf_del_sa() 1246 size = sizeof(struct rx_sa) * IXGBE_IPSEC_MAX_SA_COUNT; in ixgbe_init_ipsec_offload()
|
/Linux-v5.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-v5.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-v5.10/include/net/ |
D | macsec.h | 246 struct macsec_rx_sa *rx_sa; member
|