sfc: Call netif_napi_add() before registering our interrupt handler
authorBen Hutchings <bhutchings@solarflare.com>
Tue, 31 Mar 2009 22:07:21 +0000 (15:07 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 31 Mar 2009 22:07:21 +0000 (15:07 -0700)
If we use a shared legacy IRQ then our interrupt handler may be called
as soon as it is registered even though IRQs are disabled on the NIC.
Now that the legacy interrupt handler also checks for event delivery,
it may decide to schedule polling in this case.  Ensure that the NAPI
context is valid but disabled at this point.

Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

No differences found