2016-04-27 16:43:44 -04:00
|
|
|
From 3433c7828ec909fccb768636ee21867030da14c9 Mon Sep 17 00:00:00 2001
|
2016-04-16 00:00:17 -04:00
|
|
|
From: John Daley <johndale@cisco.com>
|
2016-04-27 16:43:44 -04:00
|
|
|
Date: Tue, 26 Apr 2016 13:30:50 -0700
|
|
|
|
Subject: [PATCH 1/3] enic: fix 'imissed' to count drops due to lack of RX
|
|
|
|
buffers
|
2016-04-16 00:00:17 -04:00
|
|
|
|
2016-04-27 16:43:44 -04:00
|
|
|
Fixes: 7182d3e7d177 ("enic: expose Rx missed packets counter")
|
2016-04-16 00:00:17 -04:00
|
|
|
Signed-off-by: John Daley <johndale@cisco.com>
|
|
|
|
---
|
|
|
|
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
|
2016-04-27 16:43:44 -04:00
|
|
|
index 60fe765..be4e9e5 100644
|
2016-04-16 00:00:17 -04:00
|
|
|
--- a/drivers/net/enic/enic_main.c
|
|
|
|
+++ b/drivers/net/enic/enic_main.c
|
2016-04-27 16:43:44 -04:00
|
|
|
@@ -243,10 +243,10 @@ void enic_dev_stats_get(struct enic *enic, struct rte_eth_stats *r_stats)
|
2016-04-16 00:00:17 -04:00
|
|
|
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;
|
2016-04-27 16:43:44 -04:00
|
|
|
}
|
2016-04-16 00:00:17 -04:00
|
|
|
--
|
|
|
|
2.7.0
|
|
|
|
|