> -----Original Message-----
> From: Kaiwen Deng <kaiwenx.d...@intel.com>
> Sent: Tuesday, May 20, 2025 9:13 AM
> To: dev@dpdk.org
> Cc: sta...@dpdk.org; Deng, KaiwenX <kaiwenx.d...@intel.com>; Burakov,
> Anatoly <anatoly.bura...@intel.com>; Medvedkin, Vladimir
> <vladimir.medved...@intel.com>; Tiwei Bie <tiwei....@intel.com>; Wenzhuo
> Lu <wenzhuo...@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: sta...@dpdk.org
>
> Signed-off-by: Kaiwen Deng <kaiwenx.d...@intel.com>
> ---
Tested-by: Xu, HailinX <hailinx...@intel.com>