From mboxrd@z Thu Jan 1 00:00:00 1970 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) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=803; q=dns/txt; s=iport; t=1456355299; x=1457564899; h=from:to:cc:subject:date:message-id; bh=lnNBVEFRWdasX7qY+kqbs20YOIme2TFqWvvVL9+zeWg=; b=Jz3eECvZ111Yt2KMvRoJCHIT43SOiD0w1MZiHt0KCkin2mfGnS94x9UD 96UA5mJBcrq8j/5nJUiSi7Sy/4Oo3dofaVkgbztLuzHkMyP/IbjUdZkLi fhV28Yuu0cwNS2S7LxgRlMRavvOjQHxeNHsO9CZt0HiFkBcAKtytMYlvD U=; X-IronPort-AV: E=Sophos;i="5.22,495,1449532800"; d="scan'208";a="625675367" Received: from aer-iport-nat.cisco.com (HELO aer-core-4.cisco.com) ([173.38.203.22]) by aer-iport-3.cisco.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 24 Feb 2016 23:08:18 +0000 Received: from kvmp1.cisco.com ([10.60.16.13]) by aer-core-4.cisco.com (8.14.5/8.14.5) with ESMTP id u1ON8INr020428; Wed, 24 Feb 2016 23:08:18 GMT From: Yoann Desmouceaux To: johndale@cisco.om Date: Thu, 25 Feb 2016 00:06:15 +0100 Message-Id: <1456355175-3230-1-git-send-email-ydesmouc@cisco.com> X-Mailer: git-send-email 2.1.4 Cc: dev@dpdk.org Subject: [dpdk-dev] [PATCH] enic: fix dma addr of outgoing packets X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Feb 2016 23:08:19 -0000 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