aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Lo <loj@cisco.com>2016-02-26 14:48:54 -0500
committerGerrit Code Review <gerrit@fd.io>2016-02-26 20:42:04 +0000
commit8b4d82cd4fe0215d6c481829328b19f6d740dae4 (patch)
tree453b5850a75cc1a8a28fb8651239b211a452b1ef
parenta0fac5ac194d99dc32d1474520b5be7f9628fabb (diff)
Fix ENIC PMD not sending the first packet on TX.
Change-Id: I615e9ca6f445092baa211098eb64f9553dd4c407 Signed-off-by: John Lo <loj@cisco.com>
-rw-r--r--dpdk/dpdk-2.2.0_patches/0012-Fix-ENIC-PMD-problem-with-not-sending-the-first-pack.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/dpdk/dpdk-2.2.0_patches/0012-Fix-ENIC-PMD-problem-with-not-sending-the-first-pack.patch b/dpdk/dpdk-2.2.0_patches/0012-Fix-ENIC-PMD-problem-with-not-sending-the-first-pack.patch
new file mode 100644
index 00000000000..d0f606806d1
--- /dev/null
+++ b/dpdk/dpdk-2.2.0_patches/0012-Fix-ENIC-PMD-problem-with-not-sending-the-first-pack.patch
@@ -0,0 +1,26 @@
+From cbd799612eb1da02cefc6d43fe304e4434cdf8e5 Mon Sep 17 00:00:00 2001
+From: John Lo <loj@cisco.com>
+Date: Fri, 26 Feb 2016 12:54:27 -0500
+Subject: [PATCH 2/2] Fix ENIC PMD problem with not sending the first packet on
+ TX.
+
+---
+ drivers/net/enic/base/enic_vnic_wq.h | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/drivers/net/enic/base/enic_vnic_wq.h b/drivers/net/enic/base/enic_vnic_wq.h
+index e3ea574..75fad22 100644
+--- a/drivers/net/enic/base/enic_vnic_wq.h
++++ b/drivers/net/enic/base/enic_vnic_wq.h
+@@ -48,7 +48,7 @@ static inline void enic_vnic_post_wq_index(struct vnic_wq *wq)
+ * stale descriptor fields.
+ */
+ wmb();
+- iowrite32(buf->index, &wq->ctrl->posted_index);
++ iowrite32(buf->next->index, &wq->ctrl->posted_index);
+ }
+
+ static inline void enic_vnic_post_wq(struct vnic_wq *wq,
+--
+1.9.1
+