From: Michael Chan Date: Thu, 6 May 2010 08:58:13 +0000 (+0000) Subject: bnx2: Add prefetches to rx path. X-Git-Tag: v2.6.35-rc1~473^2~236 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a33fa66bcf365ffe5b79d1ae1d3582cc261ae56e;p=pandora-kernel.git bnx2: Add prefetches to rx path. Add prefetches of the skb and the next rx descriptor to speed up rx path. Use prefetchw() for the skb [suggested by Eric Dumazet]. The rx descriptor is in skb->data which is mapped for streaming mode DMA. Eric Dumazet pointed out that we should not prefetch the data before dma_sync. So we prefetch only if dma_sync is no_op on the system. Signed-off-by: Michael Chan Signed-off-by: David S. Miller --- Reading git-diff-tree failed