sfc: Allow DRV_GEN events to be used outside of selftests
authorSteve Hodgson <shodgson@solarflare.com>
Tue, 1 Jun 2010 11:19:09 +0000 (11:19 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 2 Jun 2010 09:21:07 +0000 (02:21 -0700)
commitd730dc527a5abd4717f6320e82cfce54edc882a3
treeff9ec087fc5f9a30d992a114b29b42b8cc3f1bf0
parent901d3fe848d8c34988699592c9f4b98c2ce10a8b
sfc: Allow DRV_GEN events to be used outside of selftests

Formerly, efx_test_eventq_irq() assumed it was the only user of
driver generated events. Allow it to interoperate with other users.

We can create more than 16 channels, so align event codes with
a multiple of 256 not 16.

Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/sfc/net_driver.h
drivers/net/sfc/nic.c
drivers/net/sfc/nic.h
drivers/net/sfc/selftest.c