summaryrefslogtreecommitdiff
path: root/drivers/atm/eni.c
diff options
context:
space:
mode:
authorAlexandre Rames <arames@solarflare.com>2013-10-31 12:42:32 (GMT)
committerBen Hutchings <bhutchings@solarflare.com>2013-10-31 20:58:14 (GMT)
commit2acdb92e85412bf791a3c01f2173695b6e0a3f72 (patch)
tree9ba015810efc7ba0e2eb35827310853eccc437e5 /drivers/atm/eni.c
parentba4865027c11d7ac8e5a33e0624dd415caab2027 (diff)
downloadlinux-fsl-qoriq-2acdb92e85412bf791a3c01f2173695b6e0a3f72.tar.xz
sfc: Fix DMA unmapping issue with firmware assisted TSO
When using firmware assisted TSO, we use a single DMA mapping for the linear area of a TSO skb. We still have to segment the super-packet and insert a descriptor containing the original headers before each segment of payload, so we can unmap the linear area only after the last segment is completed. The unmapping information for the linear area is therefore associated with the last header descriptor. We calculate the DMA address to unmap from using the map length and the invariant that the end of the DMA mapping matches the end of the data referenced by the last descriptor. But this invariant is broken when there is TCP payload in the linear area. Fix this by adding and using an explicit dma_offset field. Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Diffstat (limited to 'drivers/atm/eni.c')
0 files changed, 0 insertions, 0 deletions