]> git.baikalelectronics.ru Git - kernel.git/commit
sfc: Match calls to netif_napi_add() and netif_napi_del()
authorBen Hutchings <bhutchings@solarflare.com>
Wed, 15 Apr 2009 02:47:46 +0000 (19:47 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 15 Apr 2009 02:47:46 +0000 (19:47 -0700)
commitdba4f0f30c862fbcb5a9db3916de6e12d68868d3
treeee512c3d6d6370586b3219e92e5451475a7413b7
parente9c26b5b730f84bf956b7a0eb38e11016bc2f387
sfc: Match calls to netif_napi_add() and netif_napi_del()

sfc could call netif_napi_add() multiple times for the same
napi_struct, corrupting the list of napi_structs for the associated
device and leading to a busy-loop on device removal.  Move the call to
netif_napi_add() and add a call to netif_napi_del() in the obvious
places.

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