]> git.baikalelectronics.ru Git - kernel.git/commit
cxgb4: Disable interrupts and napi before unregistering netdev
authorHariprasad Shenai <hariprasad@chelsio.com>
Thu, 26 Mar 2015 04:34:26 +0000 (10:04 +0530)
committerDavid S. Miller <davem@davemloft.net>
Sun, 29 Mar 2015 19:24:43 +0000 (12:24 -0700)
commitd716f24e66f1f536edde95fbae189ac7d78ac330
treeedc0c25084afc2c35b308ba7af14d34a156a7995
parenta2fbb2c5e0d9279a21e18d4561175d1469aa884b
cxgb4: Disable interrupts and napi before unregistering netdev

Disable interrupts and quiesce rx before unregistering net device to avoid crash
while unloading driver when traffic is flowing through.

Based on original work by Shameem Khalid <shameem@chelsio.com>

Signed-off-by: Hariprasad Shenai <hariprasad@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c