Skip to content

Commit

Permalink
dwc_eth_qos: Fix dma address for multi-fragment skbs
Browse files Browse the repository at this point in the history
The offset inside the fragment was not used for the dma address and
silent data corruption resulted because TSO makes the checksum match.

Fixes: 077742d ("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>
  • Loading branch information
Lars Persson authored and David S. Miller committed Jan 12, 2016
1 parent 47b356e commit d461873
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/synopsys/dwc_eth_qos.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit d461873

Please sign in to comment.