]> git.baikalelectronics.ru Git - kernel.git/commit
netdev: bfin_mac: invalid data cache only once for each new rx skb buffer
authorSonic Zhang <sonic.zhang@analog.com>
Mon, 10 May 2010 05:39:08 +0000 (05:39 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 18 May 2010 00:20:58 +0000 (17:20 -0700)
commiteac72dd952b116045f847c7b783fbb745d3c80dd
tree0574a664c6cf76b7b9b0c0b795f0c6b8d2351391
parent7ea5fd97086325d245abc84c676e7b43168afafe
netdev: bfin_mac: invalid data cache only once for each new rx skb buffer

The skb buffer isn't actually used until we finish transferring and pass
it up to higher layers, so only invalidate the range once before we start
receiving actual data.  This also avoids the problem with data invalidating
on Blackfin systems -- there is no invalidate-only, just invalidate+flush.
So when running in writeback mode, there is the small (but not uncommon)
possibility of the flush overwriting valid DMA-ed data from the cache.

Signed-off-by: Sonic Zhang <sonic.zhang@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bfin_mac.c