]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
mv643xx_eth: fix recycle check bound
authorLennert Buytenhek <buytenh@wantstofly.org>
Tue, 18 Nov 2008 04:28:58 +0000 (04:28 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 20 Nov 2008 09:39:52 +0000 (01:39 -0800)
commit11b4aa03b212cbaa969df25e723fbd400a6e24b9
treeb0ebca9928b2184fc498996a9871fad06542538a
parentbcb3336ce4354395e38df7e2da110fca61f86a84
mv643xx_eth: fix recycle check bound

When mv643xx_eth allocates skbuffs, it adds
'dma_get_cache_alignment() - 1' to the length it needs, so that it can
align the skb's ->data pointer to a cache boundary.  When checking
whether a transmitted skbuff can be reused as a receive buffer, these
bytes needs to be included into the minimum bound for the recycle check.

Signed-off-by: Lennert Buytenhek <buytenh@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/mv643xx_eth.c