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

2020-10-23 Thread Maxime Coquelin
On 10/15/20 7:49 PM, David Christensen wrote: > 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

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

2020-10-23 Thread Maxime Coquelin
On 10/15/20 7:49 PM, David Christensen wrote: > 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

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

2020-10-15 Thread Xia, Chenbo
> -Original Message- > From: David Christensen > Sent: Friday, October 16, 2020 1:50 AM > To: dev@dpdk.org; maxime.coque...@redhat.com; Xia, Chenbo > ; Wang, Zhihong > Cc: sta...@dpdk.org; David Christensen > Subject: [PATCH v3] net/vhost: fix xstats wrong after clearing stats > > The P

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

2020-10-15 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