Message ID | 1466733860-5364-1-git-send-email-mukawa@igel.co.jp (mailing list archive) |
---|---|
State | Accepted, archived |
Delegated to: | Yuanhan Liu |
Headers |
Return-Path: <dev-bounces@dpdk.org> X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [IPv6:::1]) by dpdk.org (Postfix) with ESMTP id 8D720C5D4; Fri, 24 Jun 2016 04:04:35 +0200 (CEST) Received: from mail-pf0-f178.google.com (mail-pf0-f178.google.com [209.85.192.178]) by dpdk.org (Postfix) with ESMTP id 3B073C59E for <dev@dpdk.org>; Fri, 24 Jun 2016 04:04:34 +0200 (CEST) Received: by mail-pf0-f178.google.com with SMTP id i123so34159743pfg.0 for <dev@dpdk.org>; Thu, 23 Jun 2016 19:04:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=igel-co-jp.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=lXTDq//RiWciCXwEKGI2yG4DIU/pH/BTwxvAvRM9e4o=; b=ZO64JyrDMDM7qqQH6w1CSskpea7WNVQ8Yw/csmmb+1bA33SP7TM9jjx+6/AUzS20P2 ZvwB2bKNuKRL9M/AspIqBxtDBNKkwBS5kAjD7zIQ7XUQIo5yZPfsqhsINix5wGTi7B4a dCU1bT8jn6MkO//Zp/QKEi6qm+IXSYfIxjBapSRhADs7uH8o0l3FsueAMPvYPv0U7gkc kkUFPJieOaURORPD9k74FFgozPu8/WN6vCBLA/Jn6YL9I4qRHy2oK98XW1mTv3JyvMg+ nH9kgIIyAL0f2ZvI5UZj89nhJV65y2KwM4axnVsGGE3uUx1D6SWIcvT396BVdSrrMkPd AO1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=lXTDq//RiWciCXwEKGI2yG4DIU/pH/BTwxvAvRM9e4o=; b=C51X0nC17yJ8Dad4QOw3mj3HLOosFdI1bkR8nqxfQNOekN+60hhIOjkIbwdjzW+XI6 9Tm74bzgmtZ0h7lBqMbFxWPH6T4aOI5r+cPu3GrsTXPFmClDYPRoCayFLM6289squ57a MV+E35kRqyUHMCNFMwzvDWj9ArRUNHd5UTGZyDmJXQkCDvFqXag27OtAETlxKcuEuT7A ZigERTqY6WEtXoe0gxE1orI8NlAWqSL4L6rSyL+2+VxTWceGqharUWRtNzNA3X5U/33A /d1oFAv65vLVjlcUr8HQV2Dr6B/XS11uhVMQRwF7xZOFfqE7O/Tp04yMbljr9nxPWkDj 0YTg== X-Gm-Message-State: ALyK8tKk9aLojrYxDQphX2h0n4eVmjl2XBwoJTo5rIZKgTkptpVX5k2RY1hCnTt/Ahz3fwpH X-Received: by 10.98.53.6 with SMTP id c6mr2677852pfa.47.1466733873447; Thu, 23 Jun 2016 19:04:33 -0700 (PDT) Received: from localhost.localdomain (napt.igel.co.jp. [219.106.231.132]) by smtp.gmail.com with ESMTPSA id s65sm3002279pfd.23.2016.06.23.19.04.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 23 Jun 2016 19:04:32 -0700 (PDT) From: Tetsuya Mukawa <mukawa@igel.co.jp> To: dev@dpdk.org Cc: yuanhan.liu@linux.intel.com Date: Fri, 24 Jun 2016 11:04:20 +0900 Message-Id: <1466733860-5364-1-git-send-email-mukawa@igel.co.jp> X-Mailer: git-send-email 2.7.4 Subject: [dpdk-dev] [PATCH] vhost: fix Tx error counting of vhost PMD X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK <dev.dpdk.org> List-Unsubscribe: <http://dpdk.org/ml/options/dev>, <mailto:dev-request@dpdk.org?subject=unsubscribe> List-Archive: <http://dpdk.org/ml/archives/dev/> List-Post: <mailto:dev@dpdk.org> List-Help: <mailto:dev-request@dpdk.org?subject=help> List-Subscribe: <http://dpdk.org/ml/listinfo/dev>, <mailto:dev-request@dpdk.org?subject=subscribe> Errors-To: dev-bounces@dpdk.org Sender: "dev" <dev-bounces@dpdk.org> |
Commit Message
Tetsuya Mukawa
June 24, 2016, 2:04 a.m. UTC
According to 'rte_eth_stats' structure comments, 'imissed'
should represent RX error counting, but currently 'imissed' is
used to count TX error.
The patch replaces 'imissed' by 'oerrors'.
Fixes: ee584e9710b9 ("vhost: add driver on top of the library")
Signed-off-by: Tetsuya Mukawa <mukawa@igel.co.jp>
---
drivers/net/vhost/rte_eth_vhost.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
On Fri, Jun 24, 2016 at 11:04:20AM +0900, Tetsuya Mukawa wrote: > According to 'rte_eth_stats' structure comments, 'imissed' > should represent RX error counting, but currently 'imissed' is > used to count TX error. > The patch replaces 'imissed' by 'oerrors'. > > Fixes: ee584e9710b9 ("vhost: add driver on top of the library") > Signed-off-by: Tetsuya Mukawa <mukawa@igel.co.jp> Acked-by: Yuanhan Liu <yuanhan.liu@linux.intel.com> (And sorry for the delay: I planned to look at the report from you at the earlier of this week; but somehow I forgot :( --yliu
On 2016/06/24 11:17, Yuanhan Liu wrote: > On Fri, Jun 24, 2016 at 11:04:20AM +0900, Tetsuya Mukawa wrote: >> According to 'rte_eth_stats' structure comments, 'imissed' >> should represent RX error counting, but currently 'imissed' is >> used to count TX error. >> The patch replaces 'imissed' by 'oerrors'. >> >> Fixes: ee584e9710b9 ("vhost: add driver on top of the library") >> Signed-off-by: Tetsuya Mukawa <mukawa@igel.co.jp> > > Acked-by: Yuanhan Liu <yuanhan.liu@linux.intel.com> > > (And sorry for the delay: I planned to look at the report from > you at the earlier of this week; but somehow I forgot :( > > --yliu > Hi Yuanhan, No need to worry. Thanks for your checking! Thanks, Tetsuya
On Fri, Jun 24, 2016 at 10:17:20AM +0800, Yuanhan Liu wrote: > On Fri, Jun 24, 2016 at 11:04:20AM +0900, Tetsuya Mukawa wrote: > > According to 'rte_eth_stats' structure comments, 'imissed' > > should represent RX error counting, but currently 'imissed' is > > used to count TX error. > > The patch replaces 'imissed' by 'oerrors'. > > > > Fixes: ee584e9710b9 ("vhost: add driver on top of the library") > > Signed-off-by: Tetsuya Mukawa <mukawa@igel.co.jp> > > Acked-by: Yuanhan Liu <yuanhan.liu@linux.intel.com> Applied to dpdk-next-virtio. Thanks. --yliu
diff --git a/drivers/net/vhost/rte_eth_vhost.c b/drivers/net/vhost/rte_eth_vhost.c index c5bbb87..3b50946 100644 --- a/drivers/net/vhost/rte_eth_vhost.c +++ b/drivers/net/vhost/rte_eth_vhost.c @@ -594,7 +594,7 @@ eth_stats_get(struct rte_eth_dev *dev, struct rte_eth_stats *stats) stats->ipackets = rx_total; stats->opackets = tx_total; - stats->imissed = tx_missed_total; + stats->oerrors = tx_missed_total; stats->ibytes = rx_total_bytes; stats->obytes = tx_total_bytes; }