sfc: Add support for busy polling
authorAlexandre Rames <arames@solarflare.com>
Tue, 22 Jul 2014 13:03:25 +0000 (14:03 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 23 Jul 2014 02:55:20 +0000 (19:55 -0700)
commit36763266bbe8a2e93a7639b99bac2fee2c42bc5b
tree5fdf487376e5f0f8dedb6fa395eb7c150e00b789
parent2dbe82d0d11836279703dcf2679e711e18c23eec
sfc: Add support for busy polling

This patch adds the sfc driver code for implementing busy polling.
It adds ndo_busy_poll method and locking between it and napi poll.
It also adds each napi to the napi_hash right after netif_napi_add().

Uses efx_start_eventq and efx_stop_eventq in the self tests.

Signed-off-by: Shradha Shah <sshah@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/sfc/efx.c
drivers/net/ethernet/sfc/efx.h
drivers/net/ethernet/sfc/net_driver.h
drivers/net/ethernet/sfc/rx.c
drivers/net/ethernet/sfc/selftest.c