• François Romieu's avatar
    [PATCH] Fix r8169: panic on 2.6.11 · a243576b
    François Romieu authored
    Stephen Hemminger <shemminger@osdl.org> :
    [...]
    > > +	u32 eor = le32_to_cpu(desc->opts1) & ~RingEnd;
                                                 ^
    Oops.
    
    Updated patch against plain 2.6.11 below (NAPI is strongly
    suggested, no need to disable rx_copybreak). The patch has
    been tested on a 100Mbps ethernet but it does not want to
    crash. I'll hack the testbed and see tomorrow how things
    behave on Gb.
    
    The status and received packets indication in the Rx descriptor ring
    are not correctly reset when a descriptor is recycled.
    Signed-off-by: default avatarFrancois Romieu <romieu@fr.zoreil.com>
    Signed-off-by: default avatarJeff Garzik <jgarzik@pobox.com>
    a243576b
r8169.c 62.4 KB