From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yoann Desmouceaux Subject: [PATCH] enic: fix dma addr of outgoing packets Date: Thu, 25 Feb 2016 00:06:15 +0100 Message-ID: <1456355175-3230-1-git-send-email-ydesmouc@cisco.com> Cc: dev@dpdk.org To: johndale@cisco.om Return-path: Received: from aer-iport-3.cisco.com (aer-iport-3.cisco.com [173.38.203.53]) by dpdk.org (Postfix) with ESMTP id F31362BB3 for ; Thu, 25 Feb 2016 00:08:18 +0100 (CET) List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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 --- 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 07a9810..f818c32 100644 --- a/drivers/net/enic/enic_main.c +++ b/drivers/net/enic/enic_main.c @@ -166,7 +166,7 @@ void enic_send_pkt(struct enic *enic, struct vnic_wq *wq, uint16_t mss = 0; 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