ENIC driver patch to fix rx miss or drop counters

Change-Id: Ic05d182a5659417e91b85c0ae20b6822a5445945
Signed-off-by: John Lo <loj@cisco.com>
diff --git a/dpdk/dpdk-16.04_patches/0009-enic-fix-imissed-rx-counter.patch b/dpdk/dpdk-16.04_patches/0009-enic-fix-imissed-rx-counter.patch
new file mode 100755
index 0000000..db86c9b
--- /dev/null
+++ b/dpdk/dpdk-16.04_patches/0009-enic-fix-imissed-rx-counter.patch
@@ -0,0 +1,30 @@
+From c6c5a3f41528b28764ee4aa96a72d89c94d695df Mon Sep 17 00:00:00 2001
+From: John Daley <johndale@cisco.com>
+Date: Fri, 15 Apr 2016 14:43:11 -0700
+Subject: [PATCH] enic: fix imissed rx counter
+
+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
+index c61433f..8d6bbeb 100644
+--- a/drivers/net/enic/enic_main.c
++++ b/drivers/net/enic/enic_main.c
+@@ -165,10 +165,10 @@ void enic_dev_stats_get(struct enic *enic, struct rte_eth_stats *r_stats)
+ 	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->imcasts = stats->rx.rx_multicast_frames_ok;
+ 	r_stats->rx_nombuf = stats->rx.rx_no_bufs;
+-- 
+2.7.0
+