aboutsummaryrefslogtreecommitdiffstats
path: root/dpdk
diff options
context:
space:
mode:
authorJohn Lo <loj@cisco.com>2016-04-16 00:00:17 -0400
committerJohn Lo <loj@cisco.com>2016-04-16 00:00:17 -0400
commit6bfd2633a16e9dd890a38fef26f3c7a9cfad1f4f (patch)
tree0337a3aa97f50ab01836208002a00fe3a57fa2de /dpdk
parent007622cfd6ffea9ab5a487e2b91f92f4a13b2873 (diff)
ENIC driver patch to fix rx miss or drop counters
Change-Id: Ic05d182a5659417e91b85c0ae20b6822a5445945 Signed-off-by: John Lo <loj@cisco.com>
Diffstat (limited to 'dpdk')
-rwxr-xr-xdpdk/dpdk-16.04_patches/0009-enic-fix-imissed-rx-counter.patch30
-rwxr-xr-xdpdk/dpdk-2.2.0_patches/0023-enic-expose-RX-missed-packets-counter.patch27
-rwxr-xr-xdpdk/dpdk-2.2.0_patches/0024-enic-fix-imissed-rx-counter.patch30
3 files changed, 87 insertions, 0 deletions
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 00000000000..db86c9b057a
--- /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
+
diff --git a/dpdk/dpdk-2.2.0_patches/0023-enic-expose-RX-missed-packets-counter.patch b/dpdk/dpdk-2.2.0_patches/0023-enic-expose-RX-missed-packets-counter.patch
new file mode 100755
index 00000000000..53f3eaa723b
--- /dev/null
+++ b/dpdk/dpdk-2.2.0_patches/0023-enic-expose-RX-missed-packets-counter.patch
@@ -0,0 +1,27 @@
+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;
+ }
diff --git a/dpdk/dpdk-2.2.0_patches/0024-enic-fix-imissed-rx-counter.patch b/dpdk/dpdk-2.2.0_patches/0024-enic-fix-imissed-rx-counter.patch
new file mode 100755
index 00000000000..db86c9b057a
--- /dev/null
+++ b/dpdk/dpdk-2.2.0_patches/0024-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
+