From: Maxime Coquelin <maxime.coquelin@redhat.com>
To: David Christensen <drc@linux.vnet.ibm.com>,
dev@dpdk.org, chenbo.xia@intel.com, zhihong.wang@intel.com
Cc: stable@dpdk.org
Subject: Re: [dpdk-stable] [PATCH v3] net/vhost: fix xstats wrong after clearing stats
Date: Fri, 23 Oct 2020 12:54:13 +0200 [thread overview]
Message-ID: <d775be8e-4e51-864a-d09d-c2ba48cda3fe@redhat.com> (raw)
In-Reply-To: <20201015174937.127234-1-drc@linux.vnet.ibm.com>
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_packets: 17562959
> ...
> testpmd> clear port stats all
> ...
> show port xstats all
> ...
> tx_unicast_packets: 18446744073709551615
> ...
>
> Modify the driver so that stats and xstats values are stored, updated,
> and cleared separately.
>
> Fixes: 4d6cf2ac93dc ("net/vhost: add extended statistics")
> Cc: stable@dpdk.org
>
> Signed-off-by: David Christensen <drc@linux.vnet.ibm.com>
> ---
> v3:
> * Modified comment that unicast packets include unsent packets
> * Change Cc: to stable@dpdk.org
> v2:
> * Removed newly unused vq loops
> * Added "fixes" message
> * Renamed vhost_count_multicast_broadcast to vhost_count_xcast_packets
>
> drivers/net/vhost/rte_eth_vhost.c | 76 +++++++++++++++----------------
> 1 file changed, 38 insertions(+), 38 deletions(-)
>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
Thanks,
Maxime
next prev parent reply other threads:[~2020-10-23 10:54 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20200902170309.16513-1-drc@linux.vnet.ibm.com>
2020-10-06 21:23 ` [dpdk-stable] [PATCH v2] " David Christensen
2020-10-09 3:13 ` Xia, Chenbo
2020-10-15 17:49 ` [dpdk-stable] [PATCH v3] " David Christensen
2020-10-16 1:38 ` Xia, Chenbo
2020-10-23 10:54 ` Maxime Coquelin [this message]
2020-10-23 11:22 ` Maxime Coquelin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=d775be8e-4e51-864a-d09d-c2ba48cda3fe@redhat.com \
--to=maxime.coquelin@redhat.com \
--cc=chenbo.xia@intel.com \
--cc=dev@dpdk.org \
--cc=drc@linux.vnet.ibm.com \
--cc=stable@dpdk.org \
--cc=zhihong.wang@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).