blob: db86c9b057afc127050de5f599cda7c1adbeccae [file] [log] [blame]
John Lo6bfd2632016-04-16 00:00:17 -04001From c6c5a3f41528b28764ee4aa96a72d89c94d695df Mon Sep 17 00:00:00 2001
2From: John Daley <johndale@cisco.com>
3Date: Fri, 15 Apr 2016 14:43:11 -0700
4Subject: [PATCH] enic: fix imissed rx counter
5
6Signed-off-by: John Daley <johndale@cisco.com>
7---
8 drivers/net/enic/enic_main.c | 4 ++--
9 1 file changed, 2 insertions(+), 2 deletions(-)
10
11diff --git a/drivers/net/enic/enic_main.c b/drivers/net/enic/enic_main.c
12index c61433f..8d6bbeb 100644
13--- a/drivers/net/enic/enic_main.c
14+++ b/drivers/net/enic/enic_main.c
15@@ -165,10 +165,10 @@ void enic_dev_stats_get(struct enic *enic, struct rte_eth_stats *r_stats)
16 r_stats->ibytes = stats->rx.rx_bytes_ok;
17 r_stats->obytes = stats->tx.tx_bytes_ok;
18
19- r_stats->ierrors = stats->rx.rx_errors;
20+ r_stats->ierrors = stats->rx.rx_errors + stats->rx.rx_drop;
21 r_stats->oerrors = stats->tx.tx_errors;
22
23- r_stats->imissed = stats->rx.rx_drop;
24+ r_stats->imissed = stats->rx.rx_no_bufs;
25
26 r_stats->imcasts = stats->rx.rx_multicast_frames_ok;
27 r_stats->rx_nombuf = stats->rx.rx_no_bufs;
28--
292.7.0
30