blob: b7a5e570a27c912f88f0ededc3087c9f9fe3b5b6 [file] [log] [blame]
Damjan Marion19414de2016-06-07 12:46:55 +02001From b41648c53981a534069a8ce1b75f189ba83e24c8 Mon Sep 17 00:00:00 2001
John Lo6bfd2632016-04-16 00:00:17 -04002From: John Daley <johndale@cisco.com>
John Loacc22d72016-04-27 16:43:44 -04003Date: Tue, 26 Apr 2016 13:30:50 -0700
Damjan Marion19414de2016-06-07 12:46:55 +02004Subject: [PATCH 09/17] enic: fix 'imissed' to count drops due to lack of RX
John Loacc22d72016-04-27 16:43:44 -04005 buffers
John Lo6bfd2632016-04-16 00:00:17 -04006
John Loacc22d72016-04-27 16:43:44 -04007Fixes: 7182d3e7d177 ("enic: expose Rx missed packets counter")
John Lo6bfd2632016-04-16 00:00:17 -04008Signed-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
13diff --git a/drivers/net/enic/enic_main.c b/drivers/net/enic/enic_main.c
Damjan Marion19414de2016-06-07 12:46:55 +020014index e3da51d..06cacd4 100644
John Lo6bfd2632016-04-16 00:00:17 -040015--- a/drivers/net/enic/enic_main.c
16+++ b/drivers/net/enic/enic_main.c
John Loacc22d72016-04-27 16:43:44 -040017@@ -243,10 +243,10 @@ void enic_dev_stats_get(struct enic *enic, struct rte_eth_stats *r_stats)
John Lo6bfd2632016-04-16 00:00:17 -040018 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
Damjan Marion19414de2016-06-07 12:46:55 +020028 r_stats->imcasts = stats->rx.rx_multicast_frames_ok;
John Lo6bfd2632016-04-16 00:00:17 -040029 r_stats->rx_nombuf = stats->rx.rx_no_bufs;
John Lo6bfd2632016-04-16 00:00:17 -040030--
Damjan Marion19414de2016-06-07 12:46:55 +0200312.7.4
John Lo6bfd2632016-04-16 00:00:17 -040032