linux/drivers/net/ethernet/sfc
Ben Hutchings 0fb53faa2e sfc: Remove dependence on NAPI polling in efx_test_eventq_irq()
We cannot safely assume that the NAPI handler will complete within the
20 ms that we allow for the event self-test.  The handler may be
deferred for longer than this, particularly on realtime kernels.

Instead, check whether either an event has been handled or (as in the
old failure path) whether an interrupt has been received and an event
has been delivered but not yet handled.  Use napi_disable() to
synchronize with the NAPI handler before checking, since it will
clear events before updating eventq_read_ptr.

Remove the test result chan.N.eventq.poll, since it is not an error
if the NAPI handler does not run during the test.

Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
2012-01-27 00:10:51 +00:00
..
bitfield.h sfc: Fix some formatting errors reported by checkpatch 2012-01-05 18:44:49 +00:00
efx.c sfc: Correct interrupt timer quantum for Siena (normal and turbo mode) 2012-01-27 00:10:50 +00:00
efx.h sfc: Remove now-unused filter function 2012-01-04 14:10:23 -05:00
enum.h
ethtool.c sfc: Remove dependence on NAPI polling in efx_test_eventq_irq() 2012-01-27 00:10:51 +00:00
falcon.c sfc: Correct interrupt timer quantum for Siena (normal and turbo mode) 2012-01-27 00:10:50 +00:00
falcon_boards.c sfc: Const-qualify static data as appropriate, partly prompted by checkpatch 2012-01-09 17:08:13 +00:00
falcon_xmac.c sfc: Merge efx_mac_operations into efx_nic_type 2012-01-27 00:10:46 +00:00
filter.c sfc: Remove now-unused filter function 2012-01-04 14:10:23 -05:00
filter.h sfc: Add support for retrieving and removing filters by ID 2012-01-04 14:10:00 -05:00
io.h
Kconfig
Makefile
mcdi.c sfc: Support extraction of CAPABILITIES from GET_BOARD_CFG response. 2012-01-27 00:10:49 +00:00
mcdi.h sfc: Support extraction of CAPABILITIES from GET_BOARD_CFG response. 2012-01-27 00:10:49 +00:00
mcdi_mac.c sfc: Remove efx_nic_type::push_multicast_hash operation 2012-01-27 00:10:48 +00:00
mcdi_pcol.h sfc: Update MCDI (firmware interface) definitions 2012-01-09 17:08:16 +00:00
mcdi_phy.c sfc: Update MCDI (firmware interface) definitions 2012-01-09 17:08:16 +00:00
mdio_10g.c sfc: Fix some formatting errors reported by checkpatch 2012-01-05 18:44:49 +00:00
mdio_10g.h
mtd.c sfc: Support extraction of CAPABILITIES from GET_BOARD_CFG response. 2012-01-27 00:10:49 +00:00
net_driver.h sfc: Correct interrupt timer quantum for Siena (normal and turbo mode) 2012-01-27 00:10:50 +00:00
nic.c sfc: Consistently test DEBUG macro, not EFX_ENABLE_DEBUG 2012-01-27 00:10:48 +00:00
nic.h sfc: Correct interrupt timer quantum for Siena (normal and turbo mode) 2012-01-27 00:10:50 +00:00
phy.h
qt202x_phy.c sfc: Fix some formatting errors reported by checkpatch 2012-01-05 18:44:49 +00:00
regs.h
rx.c sfc: Remove parentheses around return expressions, reported by checkpatch 2012-01-05 18:54:04 +00:00
selftest.c sfc: Remove dependence on NAPI polling in efx_test_eventq_irq() 2012-01-27 00:10:51 +00:00
selftest.h sfc: Remove dependence on NAPI polling in efx_test_eventq_irq() 2012-01-27 00:10:51 +00:00
siena.c sfc: Correct interrupt timer quantum for Siena (normal and turbo mode) 2012-01-27 00:10:50 +00:00
spi.h sfc: Fix some formatting errors reported by checkpatch 2012-01-05 18:44:49 +00:00
tenxpress.c sfc: Fix some formatting errors reported by checkpatch 2012-01-05 18:44:49 +00:00
tx.c sfc: Use kcalloc instead of kzalloc to allocate array 2011-12-04 01:32:06 -05:00
txc43128_phy.c sfc: Const-qualify static data as appropriate, partly prompted by checkpatch 2012-01-09 17:08:13 +00:00
workarounds.h