mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 13:55:32 +00:00
dwc_eth_qos: Fix dma address for multi-fragment skbs
The offset inside the fragment was not used for the dma address and
silent data corruption resulted because TSO makes the checksum match.
Fixes: 077742dac2
("dwc_eth_qos: Add support for Synopsys DWC Ethernet QoS")
Signed-off-by: Lars Persson <larper@axis.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
47b356e499
commit
d461873272
1 changed files with 1 additions and 1 deletions
|
@ -2087,7 +2087,7 @@ static int dwceqos_tx_frags(struct sk_buff *skb, struct net_local *lp,
|
|||
dd = &lp->tx_descs[lp->tx_next];
|
||||
|
||||
/* Set DMA Descriptor fields */
|
||||
dd->des0 = dma_handle;
|
||||
dd->des0 = dma_handle + consumed_size;
|
||||
dd->des1 = 0;
|
||||
dd->des2 = dma_size;
|
||||
|
||||
|
|
Loading…
Reference in a new issue