aboutsummaryrefslogtreecommitdiffstats
path: root/dpdk
diff options
context:
space:
mode:
authorYoann Desmouceaux <ydesmouc@cisco.com>2016-02-19 11:18:29 +0100
committerGerrit Code Review <gerrit@fd.io>2016-02-19 10:56:13 +0000
commit3c4869cdfac70001fc5daf3646794cbd81587a33 (patch)
tree92d1805badca2f7322a176e01e56605234a9dc8a /dpdk
parent525d5957f0c449cbf677b9875d8bce1b10929c69 (diff)
dpdk: fix enic pmd driver tx function
Adding a patch to fix DPDK 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: I74dbcce949f08e39070a369d992a90586af140a6 Signed-off-by: Yoann Desmouceaux <ydesmouc@cisco.com>
Diffstat (limited to 'dpdk')
-rw-r--r--dpdk/dpdk-2.1.0_patches/0008-enic-fix-dma-addr-of-outgoing-packets.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/dpdk/dpdk-2.1.0_patches/0008-enic-fix-dma-addr-of-outgoing-packets.patch b/dpdk/dpdk-2.1.0_patches/0008-enic-fix-dma-addr-of-outgoing-packets.patch
new file mode 100644
index 00000000000..31e828cf474
--- /dev/null
+++ b/dpdk/dpdk-2.1.0_patches/0008-enic-fix-dma-addr-of-outgoing-packets.patch
@@ -0,0 +1,28 @@
+From cbb6efb18835860f06a9e02bf63a9fbc2e19d192 Mon Sep 17 00:00:00 2001
+From: Yoann Desmouceaux <ydesmouc@cisco.com>
+Date: Fri, 19 Feb 2016 10:50:51 +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 f47e96c..7bad59c 100644
+--- a/drivers/net/enic/enic_main.c
++++ b/drivers/net/enic/enic_main.c
+@@ -163,7 +163,7 @@ int enic_send_pkt(struct enic *enic, struct vnic_wq *wq,
+ uint8_t cq_entry = eop;
+ 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
+