[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20101124.113858.229724018.davem@davemloft.net>
Date: Wed, 24 Nov 2010 11:38:58 -0800 (PST)
From: David Miller <davem@...emloft.net>
To: jonas@...thpole.se
Cc: netdev@...r.kernel.org
Subject: Re: [PATCH 6/8] ethoc: rework interrupt handling
From: Jonas Bonn <jonas@...thpole.se>
Date: Wed, 24 Nov 2010 14:40:56 +0100
> 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: Jonas Bonn <jonas@...thpole.se>
> + * and clearing the interrupt source, then we risk
...
> + * right away when we reenable it; hence, check
Trailing whitespace.
> - if ((priv->cur_tx - priv->dty_tx) <= (priv->num_tx / 2))
> + if ((priv->cur_tx - priv->dty_tx) <= (priv->num_tx / 2)) {
> netif_wake_queue(dev);
> + }
>
One-line statement does not require braces.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists