John Lo | acc22d7 | 2016-04-27 16:43:44 -0400 | [diff] [blame] | 1 | From 3433c7828ec909fccb768636ee21867030da14c9 Mon Sep 17 00:00:00 2001 |
John Lo | 6bfd263 | 2016-04-16 00:00:17 -0400 | [diff] [blame] | 2 | From: John Daley <johndale@cisco.com> |
John Lo | acc22d7 | 2016-04-27 16:43:44 -0400 | [diff] [blame] | 3 | Date: Tue, 26 Apr 2016 13:30:50 -0700 |
| 4 | Subject: [PATCH 1/3] enic: fix 'imissed' to count drops due to lack of RX |
| 5 | buffers |
John Lo | 6bfd263 | 2016-04-16 00:00:17 -0400 | [diff] [blame] | 6 | |
John Lo | acc22d7 | 2016-04-27 16:43:44 -0400 | [diff] [blame] | 7 | Fixes: 7182d3e7d177 ("enic: expose Rx missed packets counter") |
John Lo | 6bfd263 | 2016-04-16 00:00:17 -0400 | [diff] [blame] | 8 | Signed-off-by: John Daley <johndale@cisco.com> |
| 9 | --- |
| 10 | drivers/net/enic/enic_main.c | 4 ++-- |
| 11 | 1 file changed, 2 insertions(+), 2 deletions(-) |
| 12 | |
| 13 | diff --git a/drivers/net/enic/enic_main.c b/drivers/net/enic/enic_main.c |
John Lo | acc22d7 | 2016-04-27 16:43:44 -0400 | [diff] [blame] | 14 | index 60fe765..be4e9e5 100644 |
John Lo | 6bfd263 | 2016-04-16 00:00:17 -0400 | [diff] [blame] | 15 | --- a/drivers/net/enic/enic_main.c |
| 16 | +++ b/drivers/net/enic/enic_main.c |
John Lo | acc22d7 | 2016-04-27 16:43:44 -0400 | [diff] [blame] | 17 | @@ -243,10 +243,10 @@ void enic_dev_stats_get(struct enic *enic, struct rte_eth_stats *r_stats) |
John Lo | 6bfd263 | 2016-04-16 00:00:17 -0400 | [diff] [blame] | 18 | r_stats->ibytes = stats->rx.rx_bytes_ok; |
| 19 | r_stats->obytes = stats->tx.tx_bytes_ok; |
| 20 | |
| 21 | - r_stats->ierrors = stats->rx.rx_errors; |
| 22 | + r_stats->ierrors = stats->rx.rx_errors + stats->rx.rx_drop; |
| 23 | r_stats->oerrors = stats->tx.tx_errors; |
| 24 | |
| 25 | - r_stats->imissed = stats->rx.rx_drop; |
| 26 | + r_stats->imissed = stats->rx.rx_no_bufs; |
| 27 | |
John Lo | 6bfd263 | 2016-04-16 00:00:17 -0400 | [diff] [blame] | 28 | r_stats->rx_nombuf = stats->rx.rx_no_bufs; |
John Lo | acc22d7 | 2016-04-27 16:43:44 -0400 | [diff] [blame] | 29 | } |
John Lo | 6bfd263 | 2016-04-16 00:00:17 -0400 | [diff] [blame] | 30 | -- |
| 31 | 2.7.0 |
| 32 | |