]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
[TG3]: Use status tag to check for new events
authorMichael Chan <mchan@broadcom.com>
Tue, 6 Sep 2005 00:53:32 +0000 (17:53 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 6 Sep 2005 00:53:32 +0000 (17:53 -0700)
commit38f3843ed6bdbcff9465386c3539523466880320
treeb3e1a3a714db10d8d7f6f083659e67fe193487b7
parent61487480dd79acc5e82b08cd29cbcbd3301645fa
[TG3]: Use status tag to check for new events

Use the status tag to determine if there are new events in
tg3_interrupt_tagged(). We discussed about this a while ago with Grant
Grundler and DaveM. This scheme makes it unnecessary to clear the
updated bit in the status block when using tagged mode, and only
a simple comparison is needed to determine if there are new events.

The tp->lock around netif_rx_complete() and tg3_restart_ints() is also
removed. It is unnecessary with DaveM's new locking scheme.

Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/tg3.c