From: Ben Hutchings Date: Thu, 20 Dec 2012 18:48:20 +0000 (+0000) Subject: sfc: Properly sync RX DMA buffer when it is not the last in the page X-Git-Tag: v3.9-rc2~24^2~36^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3a68f19d7afb80f548d016effbc6ed52643a8085;p=pandora-kernel.git 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 --- Reading git-diff-tree failed