summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorPhilipp Kirchhofer <philipp@familie-kirchhofer.de>2015-10-18 17:02:43 +0300
committerDavid S. Miller <davem@davemloft.net>2015-10-21 17:36:38 +0300
commit91986fd3d335a2ea651bc85cf5a03f2f61a2aa34 (patch)
tree4ea55487cebc9fc74006dd32161a677e64896f47 /kernel
parentf3c9f95056acab715328ee63a80ddf5fd32c0a28 (diff)
downloadlinux-91986fd3d335a2ea651bc85cf5a03f2f61a2aa34.tar.xz
net: mv643xx_eth: Ensure proper data alignment in TSO TX path
The TX DMA engine requires that buffers with a size of 8 bytes or smaller must be 64 bit aligned. This requirement may be violated when doing TSO, as in this case larger skb frags can be broken up and transmitted in small parts with then inappropriate alignment. Fix this by checking for proper alignment before handing a buffer to the DMA engine. If the data is misaligned realign it by copying it into the TSO header data area. Signed-off-by: Philipp Kirchhofer <philipp@familie-kirchhofer.de> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions