From: Anton Vorontsov Date: Tue, 10 Nov 2009 14:11:10 +0000 (+0000) Subject: gianfar: Revive SKB recycling X-Git-Tag: v2.6.33-rc1~388^2~408 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a3bc1f11e9b867a4f49505;p=pandora-kernel.git gianfar: Revive SKB recycling Before calling gfar_clean_tx_ring() the driver grabs an irqsave spinlock, and then tries to recycle skbs. But since skb_recycle_check() returns 0 with IRQs disabled, we'll never recycle any skbs. It appears that gfar_clean_tx_ring() and gfar_start_xmit() are mostly idependent and can work in parallel, except when they modify num_txbdfree. So we can drop the lock from most sections and thus fix the skb recycling. Signed-off-by: Anton Vorontsov Acked-by: Kumar Gala Signed-off-by: David S. Miller --- Reading git-diff-tree failed