commit | a33fa66bcf365ffe5b79d1ae1d3582cc261ae56e | [log] [tgz] |
---|---|---|
author | Michael Chan <mchan@broadcom.com> | Thu May 06 08:58:13 2010 +0000 |
committer | David S. Miller <davem@davemloft.net> | Thu May 06 22:17:24 2010 -0700 |
tree | cf714757a5c3644bd8154a4da0cea4eb53a80032 | |
parent | c67938a9e071fa51c91ed17a14382e128368d115 [diff] |
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 <mchan@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>