Re: [dpdk-dev] [PATCH v2] net/vhost: fix xstats wrong after clearing stats

2020-10-08 Thread Xia, Chenbo
Hi David, > -Original Message- > From: David Christensen > Sent: Wednesday, October 7, 2020 5:23 AM > To: dev@dpdk.org; maxime.coque...@redhat.com; Xia, Chenbo > ; Wang, Zhihong > Cc: sta...@dpdk.org; David Christensen ; Yang, > Zhiyong > Subject: [PATCH v2] net/vhost: fix xstats wrong

[dpdk-dev] [PATCH v2] net/vhost: fix xstats wrong after clearing stats

2020-10-06 Thread David Christensen
The PMD API allows stats and xstats values to be cleared separately. This is a problem for the vhost PMD since some of the xstats values are derived from existing stats values. For example: testpmd> show port xstats all ... tx_unicast_packets: 17562959 ... testpmd> clear port stats all ... show p