From: Yoann Desmouceaux Date: Wed, 24 Feb 2016 23:06:15 +0000 (+0100) Subject: enic: fix DMA address of outgoing packets X-Git-Tag: spdx-start~7419 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=39ab35a36a47fb96d364d42566e4377cda3391bb;p=dpdk.git enic: fix DMA address of outgoing packets 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. Fixes: fefed3d1e62c ("enic: new driver") Signed-off-by: Yoann Desmouceaux Acked-by: Bruce Richardson --- diff --git a/drivers/net/enic/enic_main.c b/drivers/net/enic/enic_main.c index 07a9810198..f818c3224b 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)