• Eran Liberty's avatar
    gianfar: code cleanup · acbc0f03
    Eran Liberty authored
    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: default avatarEran Liberty <liberty@extricom.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    acbc0f03
gianfar.c 86.2 KB