1 From cbb6efb18835860f06a9e02bf63a9fbc2e19d192 Mon Sep 17 00:00:00 2001
2 From: Yoann Desmouceaux <ydesmouc@cisco.com>
3 Date: Fri, 19 Feb 2016 10:50:51 +0100
4 Subject: [PATCH] enic: fix dma addr of outgoing packets
6 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.
8 Signed-off-by: Yoann Desmouceaux <ydesmouc@cisco.com>
10 drivers/net/enic/enic_main.c | 2 +-
11 1 file changed, 1 insertion(+), 1 deletion(-)
13 diff --git a/drivers/net/enic/enic_main.c b/drivers/net/enic/enic_main.c
14 index 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);
25 if (ol_flags & PKT_TX_VLAN_PKT)