sfc: Fix NAPI list corruption during ring reallocation
authorBen Hutchings <bhutchings@solarflare.com>
Tue, 7 Dec 2010 19:47:34 +0000 (19:47 +0000)
committerBen Hutchings <bhutchings@solarflare.com>
Tue, 7 Dec 2010 20:04:22 +0000 (20:04 +0000)
commite8f149924a3111015d16dfbbb4816cfc75ba53cd
tree69bbe1b466ba31ecaa105f6c330bf80f633b93ff
parent94dec6a2d20a26a779b63bb584e48db5fb0ddb53
sfc: Fix NAPI list corruption during ring reallocation

Call netif_napi_{add,del}() on the NAPI contexts in the new and
old channels, respectively.

Since efx_init_napi() cannot fail, make its return type void.

Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
drivers/net/sfc/efx.c