vpp/dpdk/dpdk-2.2.0_patches/0023-enic-expose-RX-missed-packets-counter.patch
John Lo 6bfd2633a1 ENIC driver patch to fix rx miss or drop counters
Change-Id: Ic05d182a5659417e91b85c0ae20b6822a5445945
Signed-off-by: John Lo <loj@cisco.com>
2016-04-16 00:00:17 -04:00

28 lines
918 B
Diff
Executable File

commit 7182d3e7d17722d088322695fc09f0d3bb7f1eab
Author: John Daley <johndale@cisco.com>
Date: Wed Mar 30 11:07:31 2016 -0700
enic: expose Rx missed packets counter
Update the 'imissed' counter with the number of packets dropped
by the NIC.
Fixes: fefed3d1e62c ("enic: new driver")
Signed-off-by: John Daley <johndale@cisco.com>
Reviewed-by: Nelson Escobar <neescoba@cisco.com>
diff --git a/drivers/net/enic/enic_main.c b/drivers/net/enic/enic_main.c
index 2f79cf0..e3da51d 100644
--- a/drivers/net/enic/enic_main.c
+++ b/drivers/net/enic/enic_main.c
@@ -246,6 +246,8 @@ void enic_dev_stats_get(struct enic *enic, struct rte_eth_stats *r_stats)
r_stats->ierrors = stats->rx.rx_errors;
r_stats->oerrors = stats->tx.tx_errors;
+ r_stats->imissed = stats->rx.rx_drop;
+
r_stats->imcasts = stats->rx.rx_multicast_frames_ok;
r_stats->rx_nombuf = stats->rx.rx_no_bufs;
}