• Jonas Bonn's avatar
    ethoc: rework interrupt handling · fa98eb0e
    Jonas Bonn authored
    The old interrupt handling was incorrect in that it did not account for the
    fact that the interrupt source bits get set irregardless of whether or not
    their corresponding mask is set.  This patch fixes that by masking off the
    source bits for masked interrupts.
    
    Furthermore, the handling of transmission events is moved to the NAPI polling
    handler alongside the reception handler, thus preventing a whole bunch of
    interrupts during heavy traffic.
    Signed-off-by: default avatarJonas Bonn <jonas@southpole.se>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    fa98eb0e
ethoc.c 28.7 KB