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>

authored by Lennert Buytenhek and committed by David S. Miller 11b4aa03 bcb3336c

+2 -1
+2 -1
drivers/net/mv643xx_eth.c
··· 899 if (skb != NULL) { 900 if (skb_queue_len(&mp->rx_recycle) < 901 mp->default_rx_ring_size && 902 - skb_recycle_check(skb, mp->skb_size)) 903 __skb_queue_head(&mp->rx_recycle, skb); 904 else 905 dev_kfree_skb(skb);
··· 899 if (skb != NULL) { 900 if (skb_queue_len(&mp->rx_recycle) < 901 mp->default_rx_ring_size && 902 + skb_recycle_check(skb, mp->skb_size + 903 + dma_get_cache_alignment() - 1)) 904 __skb_queue_head(&mp->rx_recycle, skb); 905 else 906 dev_kfree_skb(skb);