]> git.baikalelectronics.ru Git - kernel.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)
commit870e01c1d0afbc648cfe0f2817a63aaffa3a8551
treeb3e1a3a714db10d8d7f6f083659e67fe193487b7
parentc3f581390fec5966a3f6ead063cea0c0f6c3f729
[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