Yoann Desmouceaux | ca0f3b3 | 2016-02-19 21:30:09 +0100 | [diff] [blame] | 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 |
| 5 | |
| 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. |
| 7 | |
| 8 | Signed-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 | |
| 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, |
| 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 | -- |
| 27 | 2.1.4 |
| 28 | |