net/cxgb4: use remove handler as shutdown handler
authorThadeu Lima de Souza Cascardo <cascardo@linux.vnet.ibm.com>
Mon, 24 Feb 2014 20:04:52 +0000 (17:04 -0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 25 Feb 2014 23:35:13 +0000 (18:35 -0500)
commit687d705c031916b83953b714917b04d899e23cf5
tree0689a00f18a3adc55f674b3809395571abe83b35
parente88570f80317f074cbfaa4b7ed3f3d1e066787f3
net/cxgb4: use remove handler as shutdown handler

Without a shutdown handler, T4 cards behave very badly after a kexec.
Some firmware calls return errors indicating allocation failures, for
example. This is probably because thouse resources were not released by
a BYE message to the firmware, for example.

Using the remove handler guarantees we will use a well tested path.

With this patch I applied, I managed to use kexec multiple times and
probe and iSCSI login worked every time.

Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c