gianfar: code cleanup
authorEran Liberty <liberty@extricom.com>
Wed, 7 Jul 2010 22:54:54 +0000 (15:54 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 7 Jul 2010 22:54:54 +0000 (15:54 -0700)
commitacbc0f039ff4b93da737c91937b7c70018ded39f
tree8139b01aaaaf6301f246b0c3b468ad8d4e8f55df
parentf29a3d040727a80c3307a2bea057206be049c305
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 <liberty@extricom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/gianfar.c
This page took 0.028418 seconds and 5 git commands to generate.