summaryrefslogtreecommitdiffstats
path: root/dpdk
diff options
context:
space:
mode:
authorYoann Desmouceaux <ydesmouc@cisco.com>2016-02-19 21:30:09 +0100
committerGerrit Code Review <gerrit@fd.io>2016-02-22 13:27:50 +0000
commitca0f3b3a4353d1eccc48013b18adeebba3579603 (patch)
treecb0c4d1f212992884371be5ce17d04137b730fca /dpdk
parent84e4ffeaf1c0988752d755faf8b5934f0a0df873 (diff)
dpdk: fix enic pmd driver tx function
Adding a patch to fix DPDK 2.2.0 enic PMD driver TX function. The enic PMD driver send function uses a constant offset instead of relying on the data_off in the mbuf to find the start of the packet. Change-Id: Ic4f3be83865367306785a57e2694e0ccfa295c7b Signed-off-by: Yoann Desmouceaux <ydesmouc@cisco.com>
Diffstat (limited to 'dpdk')
-rw-r--r--dpdk/dpdk-2.2.0_patches/0010-enic-fix-dma-addr-of-outgoing-packets.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/dpdk/dpdk-2.2.0_patches/0010-enic-fix-dma-addr-of-outgoing-packets.patch b/dpdk/dpdk-2.2.0_patches/0010-enic-fix-dma-addr-of-outgoing-packets.patch
new file mode 100644
index 00000000000..a524007c945
--- /dev/null
+++ b/dpdk/dpdk-2.2.0_patches/0010-enic-fix-dma-addr-of-outgoing-packets.patch
@@ -0,0 +1,28 @@
+From c68ded695938b43682d4bd7dfaf40e5b267dfe3b Mon Sep 17 00:00:00 2001
+From: Yoann Desmouceaux <ydesmouc@cisco.com>
+Date: Fri, 19 Feb 2016 12:49:29 +0100
+Subject: [PATCH] enic: fix dma addr of outgoing packets
+
+The enic PMD driver send function uses a constant offset instead of relying on the data_off in the mbuf to find the start of the packet.
+
+Signed-off-by: Yoann Desmouceaux <ydesmouc@cisco.com>
+---
+ drivers/net/enic/enic_main.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/drivers/net/enic/enic_main.c b/drivers/net/enic/enic_main.c
+index 07a9810..f818c32 100644
+--- a/drivers/net/enic/enic_main.c
++++ b/drivers/net/enic/enic_main.c
+@@ -166,7 +166,7 @@ void enic_send_pkt(struct enic *enic, struct vnic_wq *wq,
+ uint16_t mss = 0;
+ uint8_t vlan_tag_insert = 0;
+ uint64_t bus_addr = (dma_addr_t)
+- (tx_pkt->buf_physaddr + RTE_PKTMBUF_HEADROOM);
++ (tx_pkt->buf_physaddr + tx_pkt->data_off);
+
+ if (sop) {
+ if (ol_flags & PKT_TX_VLAN_PKT)
+--
+2.1.4
+