From: Eran Liberty Date: Wed, 7 Jul 2010 22:54:54 +0000 (-0700) Subject: gianfar: code cleanup X-Git-Tag: v2.6.36-rc1~571^2~330 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=acbc0f039ff4b93da737c91937b7c70018ded39f;p=pandora-kernel.git gianfar: code cleanup This patch relates to "[PATCH] gainfar.c : skb_over_panic (kernel-2.6.32.15)" While in 2.6.32.15 it actually fixed a bug here it merely cleans up the previous attempts to fix the bug with a more coherent code. Currently before queuing skb into the rx_recycle it is "un-skb_reserve"-ed so when taken out in gfar_new_skb() it wont be reserved twice. This patch makes sure the alignment skb_reserve is done once, upon allocating the skb and not when taken out of the rx_recycle pool. Eliminating the need to undo anything before queue skb back to the pool. NOTE: This patch will compile and is fairly straight forward but I do not have environment to test it as I did with the 2.6.32.15 fix. Signed-off-by: Eran Liberty Signed-off-by: David S. Miller --- Reading git-diff-tree failed