1 From c68ded695938b43682d4bd7dfaf40e5b267dfe3b Mon Sep 17 00:00:00 2001
2 From: Yoann Desmouceaux <ydesmouc@cisco.com>
3 Date: Fri, 19 Feb 2016 12:49:29 +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 07a9810..f818c32 100644
15 --- a/drivers/net/enic/enic_main.c
16 +++ b/drivers/net/enic/enic_main.c
17 @@ -166,7 +166,7 @@ void enic_send_pkt(struct enic *enic, struct vnic_wq *wq,
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)