]> git.baikalelectronics.ru Git - kernel.git/commit
amd-xgbe: Call netif_napi_del on ndo_stop operation
authorLendacky, Thomas <Thomas.Lendacky@amd.com>
Wed, 2 Jul 2014 18:04:40 +0000 (13:04 -0500)
committerDavid S. Miller <davem@davemloft.net>
Tue, 8 Jul 2014 04:38:06 +0000 (21:38 -0700)
commitaf7f169c77f5a82ca7b3a29f2224dd1d63428ac4
tree4ed6a9bd4aab2da58dda625a960dbf1fbd6a6f91
parentf64ab4012a5fcc2bf898ba974cdfc9470335f62b
amd-xgbe: Call netif_napi_del on ndo_stop operation

Currently the napi context is added using netif_napi_add each time
the ndo_open operation is called.  However, there is not a
corresponding netif_napi_del call during the ndo_stop operation. If
the device ndo_open operation was called more than once an infinite
loop occurs during module unload.  Add a call to netif_napi_del during
the ndo_stop operation.

Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/amd/xgbe/xgbe-drv.c