blob: 31e828cf474c47d51563bde04ad0c5fff1597793 [file] [log] [blame]
Yoann Desmouceaux3c4869c2016-02-19 11:18:29 +01001From cbb6efb18835860f06a9e02bf63a9fbc2e19d192 Mon Sep 17 00:00:00 2001
2From: Yoann Desmouceaux <ydesmouc@cisco.com>
3Date: Fri, 19 Feb 2016 10:50:51 +0100
4Subject: [PATCH] enic: fix dma addr of outgoing packets
5
6The 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.
7
8Signed-off-by: Yoann Desmouceaux <ydesmouc@cisco.com>
9---
10 drivers/net/enic/enic_main.c | 2 +-
11 1 file changed, 1 insertion(+), 1 deletion(-)
12
13diff --git a/drivers/net/enic/enic_main.c b/drivers/net/enic/enic_main.c
14index f47e96c..7bad59c 100644
15--- a/drivers/net/enic/enic_main.c
16+++ b/drivers/net/enic/enic_main.c
17@@ -163,7 +163,7 @@ int enic_send_pkt(struct enic *enic, struct vnic_wq *wq,
18 uint8_t cq_entry = eop;
19 uint8_t vlan_tag_insert = 0;
20 uint64_t bus_addr = (dma_addr_t)
21- (tx_pkt->buf_physaddr + RTE_PKTMBUF_HEADROOM);
22+ (tx_pkt->buf_physaddr + tx_pkt->data_off);
23
24 if (sop) {
25 if (ol_flags & PKT_TX_VLAN_PKT)
26--
272.1.4
28