From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from rcdn-iport-9.cisco.com (rcdn-iport-9.cisco.com [173.37.86.80]) by dpdk.org (Postfix) with ESMTP id AB823374C for ; Wed, 27 Apr 2016 04:50:17 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=876; q=dns/txt; s=iport; t=1461725417; x=1462935017; h=from:to:cc:subject:date:message-id; bh=jsXpToPt09lzmf+sHsV7/Bfc5L3fHSbhcXf5q/NKxng=; b=lBFUsZxxGnIBLQbBjDmjOOsqHyEc7Ko3e0gmRzh88wftT3VxtgQOmbjg Z7VzBGM5Xv99gxWW7jUUZGzfeTLCNvDzn2V/Yi//OSs2MEz06Uf7ZaBsV boPIFscH2+NTwI8AWsbbD9pA093ryb4k2426XAgOUol+50Bmsmg+4c7+T Q=; X-IronPort-AV: E=Sophos;i="5.24,539,1454976000"; d="scan'208";a="95984551" Received: from alln-core-7.cisco.com ([173.36.13.140]) by rcdn-iport-9.cisco.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 27 Apr 2016 02:50:16 +0000 Received: from cisco.com (savbu-usnic-a.cisco.com [10.193.184.48]) by alln-core-7.cisco.com (8.14.5/8.14.5) with ESMTP id u3R2oG7R009002; Wed, 27 Apr 2016 02:50:16 GMT Received: by cisco.com (Postfix, from userid 392789) id A3F1C3FAAE12; Tue, 26 Apr 2016 19:50:16 -0700 (PDT) From: John Daley To: dev@dpdk.org Cc: John Daley Date: Tue, 26 Apr 2016 19:50:15 -0700 Message-Id: <1461725415-3899-1-git-send-email-johndale@cisco.com> X-Mailer: git-send-email 2.7.0 Subject: [dpdk-dev] [PATCH] enic: fix 'imissed' to count drops due to no RX buffers X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Apr 2016 02:50:18 -0000 Fixes: 7182d3e7d177 ("enic: expose Rx missed packets counter") Signed-off-by: John Daley --- drivers/net/enic/enic_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/enic/enic_main.c b/drivers/net/enic/enic_main.c index 60fe765..be4e9e5 100644 --- a/drivers/net/enic/enic_main.c +++ b/drivers/net/enic/enic_main.c @@ -243,10 +243,10 @@ void enic_dev_stats_get(struct enic *enic, struct rte_eth_stats *r_stats) r_stats->ibytes = stats->rx.rx_bytes_ok; r_stats->obytes = stats->tx.tx_bytes_ok; - r_stats->ierrors = stats->rx.rx_errors; + r_stats->ierrors = stats->rx.rx_errors + stats->rx.rx_drop; r_stats->oerrors = stats->tx.tx_errors; - r_stats->imissed = stats->rx.rx_drop; + r_stats->imissed = stats->rx.rx_no_bufs; r_stats->rx_nombuf = stats->rx.rx_no_bufs; } -- 2.7.0