summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/sfc/net_driver.h
diff options
context:
space:
mode:
authorBen Hutchings <bhutchings@solarflare.com>2012-12-20 18:48:20 +0000
committerBen Hutchings <bhutchings@solarflare.com>2013-02-26 14:55:49 +0000
commit3a68f19d7afb80f548d016effbc6ed52643a8085 (patch)
tree0d087eac21de23332dddb6b27406d9c9919b0bc1 /drivers/net/ethernet/sfc/net_driver.h
parenteb970ff07c15f13eb474f643fd165ebe3e4e24b2 (diff)
downloadlinux-3a68f19d7afb80f548d016effbc6ed52643a8085.tar.gz
linux-3a68f19d7afb80f548d016effbc6ed52643a8085.tar.bz2
linux-3a68f19d7afb80f548d016effbc6ed52643a8085.zip
sfc: Properly sync RX DMA buffer when it is not the last in the page
We may currently allocate two RX DMA buffers to a page, and only unmap the page when the second is completed. We do not sync the first RX buffer to be completed; this can result in packet loss or corruption if the last RX buffer completed in a NAPI poll is the first in a page and is not DMA-coherent. (In the middle of a NAPI poll, we will handle the following RX completion and unmap the page *before* looking at the content of the first buffer.) Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Diffstat (limited to 'drivers/net/ethernet/sfc/net_driver.h')
0 files changed, 0 insertions, 0 deletions