aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/netxen/netxen_nic_main.c
diff options
context:
space:
mode:
authorDhananjay Phadke <dhananjay@netxen.com>2009-07-17 11:27:06 -0400
committerDavid S. Miller <davem@davemloft.net>2009-07-20 11:23:28 -0400
commitcf981ffb31e8f41f4899a56560f81322f94f22d1 (patch)
tree5cca292a4e8f4cef0b9986508e712588f5edbd8f /drivers/net/netxen/netxen_nic_main.c
parent3ba81f3ece3cfa4ffb06d21ac93b8cad7fbe6a73 (diff)
netxen: fix context deletion sequence
o Use D3 reset context deletion for NX2031, it cleans up more resources in the firmware. o Release rx buffers after hardware context has been reset. o Delete tx context after rx context, some firmware control commands are sent on tx context, so it should be the last to go. Signed-off-by: Dhananjay Phadke <dhananjay@netxen.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/netxen/netxen_nic_main.c')
-rw-r--r--drivers/net/netxen/netxen_nic_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/netxen/netxen_nic_main.c b/drivers/net/netxen/netxen_nic_main.c
index 27539ddf94c4..9a7c4c8029de 100644
--- a/drivers/net/netxen/netxen_nic_main.c
+++ b/drivers/net/netxen/netxen_nic_main.c
@@ -943,8 +943,8 @@ err_out_free_sw:
943static void 943static void
944netxen_nic_detach(struct netxen_adapter *adapter) 944netxen_nic_detach(struct netxen_adapter *adapter)
945{ 945{
946 netxen_release_rx_buffers(adapter);
947 netxen_free_hw_resources(adapter); 946 netxen_free_hw_resources(adapter);
947 netxen_release_rx_buffers(adapter);
948 netxen_nic_free_irq(adapter); 948 netxen_nic_free_irq(adapter);
949 netxen_free_sw_resources(adapter); 949 netxen_free_sw_resources(adapter);
950 950