On Tue, 25 Feb 2025 09:34:54 +0800 Chaoyong He <chaoyong...@corigine.com> wrote:
> From: Long Wu <long...@corigine.com> > > The 'ipackets'/'opackets' are used to record the number > of packets on represetor port received/sent. But the > code does not consider concurrent calculation of > 'ipackets'/'opackets'. If multiple queues are calculated > 'ipackets'/'opackets' simultaneously, it will result in > incorrect results. > > The previous logic has recorded the number of packets on > each queue, therefore driver only needs to add the data of > all queues to obtain the data of the representor port. > > Based on this, modify code to fix the issue. > > Fixes: 636e133ec891 ("net/nfp: update Tx and Rx for multiple PF") > Fixes: 82a2c286f35a ("net/nfp: support xstats for flower firmware") > Cc: peng.zh...@corigine.com > Cc: chaoyong...@corigine.com > Cc: sta...@dpdk.org > > Signed-off-by: Long Wu <long...@corigine.com> Applied to next-net and fixed spelling in commit message.