[PATCH] net/intel: fix ixgbe get macsec stats
Xu, HailinX
hailinx.xu at intel.com
Tue May 20 09:24:30 CEST 2025
> -----Original Message-----
> From: Kaiwen Deng <kaiwenx.deng at intel.com>
> Sent: Tuesday, May 20, 2025 9:13 AM
> To: dev at dpdk.org
> Cc: stable at dpdk.org; Deng, KaiwenX <kaiwenx.deng at intel.com>; Burakov,
> Anatoly <anatoly.burakov at intel.com>; Medvedkin, Vladimir
> <vladimir.medvedkin at intel.com>; Tiwei Bie <tiwei.bie at intel.com>; Wenzhuo
> Lu <wenzhuo.lu at intel.com>
> Subject: [PATCH] net/intel: fix ixgbe get macsec stats
>
> The ixgbe macsec registers are not cleared on read. Reading the registers and
> then accumulating the values will cause macsec stats errors. Each time the
> data is queried via the testpmd command “show port stats xstats all”, the
> macsec statistics are increased.
>
> This commit will add macsec offset stats to record initial data and update
> macsec stats based on offset stats.
>
> Fixes: b35d309710fe ("net/ixgbe: add MACsec offload")
> Cc: stable at dpdk.org
>
> Signed-off-by: Kaiwen Deng <kaiwenx.deng at intel.com>
> ---
Tested-by: Xu, HailinX <hailinx.xu at intel.com>
More information about the dev
mailing list