John Lo | 6bfd263 | 2016-04-16 00:00:17 -0400 | [diff] [blame] | 1 | From c6c5a3f41528b28764ee4aa96a72d89c94d695df Mon Sep 17 00:00:00 2001 |
| 2 | From: John Daley <johndale@cisco.com> |
| 3 | Date: Fri, 15 Apr 2016 14:43:11 -0700 |
| 4 | Subject: [PATCH] enic: fix imissed rx counter |
| 5 | |
| 6 | Signed-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 | |
| 11 | diff --git a/drivers/net/enic/enic_main.c b/drivers/net/enic/enic_main.c |
| 12 | index 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 | -- |
| 29 | 2.7.0 |
| 30 | |