blob: a524007c945e81efc415fbbf7e2e432bba374c28 [file] [log] [blame]
Yoann Desmouceauxca0f3b32016-02-19 21:30:09 +01001From c68ded695938b43682d4bd7dfaf40e5b267dfe3b Mon Sep 17 00:00:00 2001
2From: Yoann Desmouceaux <ydesmouc@cisco.com>
3Date: Fri, 19 Feb 2016 12:49:29 +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 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,
18 uint16_t mss = 0;
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