sfc: Match calls to netif_napi_add() and netif_napi_del()
authorBen Hutchings <bhutchings@solarflare.com>
Wed, 15 Apr 2009 00:39:03 +0000 (01:39 +0100)
committerChris Wright <chrisw@sous-sol.org>
Mon, 27 Apr 2009 17:37:01 +0000 (10:37 -0700)
commit926e66275ddb852a4a4686df9b6b0f760746c7a3
tree1428aa80a492cf929cad2a226d32313813318b22
parent9feb2c00e5d5b267912846454d7d0c85b6abd434
sfc: Match calls to netif_napi_add() and netif_napi_del()

upstream commit: 718cff1eec595ce6ab0635b8160a51ee37d9268d

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.

[bhutchings: backport to 2.6.29]
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
drivers/net/sfc/efx.c