summaryrefslogtreecommitdiffstats
path: root/drivers/net/netxen/netxen_nic_init.c
diff options
context:
space:
mode:
authorDhananjay Phadke <dhananjay@netxen.com>2009-08-13 07:03:01 +0000
committerDavid S. Miller <davem@davemloft.net>2009-08-13 16:33:04 -0700
commit232e7d68d50c9ac3a55d716e5ae215ecd1e043b9 (patch)
tree2367d09f6c2a6f9edc7f674f27dfb987968083fa /drivers/net/netxen/netxen_nic_init.c
parente424fa9d6a0add1a9b812b07e3607daaa5b9e53d (diff)
downloadlinux-stable-232e7d68d50c9ac3a55d716e5ae215ecd1e043b9.tar.gz
linux-stable-232e7d68d50c9ac3a55d716e5ae215ecd1e043b9.tar.bz2
linux-stable-232e7d68d50c9ac3a55d716e5ae215ecd1e043b9.zip
netxen: free napi resources during detach
o Defer napi resouce allocation to device attach. o Free napi resources and delete napi during detach. This ensures right behavior across firmware reset. 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_init.c')
-rw-r--r--drivers/net/netxen/netxen_nic_init.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/net/netxen/netxen_nic_init.c b/drivers/net/netxen/netxen_nic_init.c
index 7acf204e38c9..5d3343ef3d86 100644
--- a/drivers/net/netxen/netxen_nic_init.c
+++ b/drivers/net/netxen/netxen_nic_init.c
@@ -184,13 +184,6 @@ void netxen_free_sw_resources(struct netxen_adapter *adapter)
kfree(recv_ctx->rds_rings);
skip_rds:
- if (recv_ctx->sds_rings == NULL)
- goto skip_sds;
-
- for(ring = 0; ring < adapter->max_sds_rings; ring++)
- recv_ctx->sds_rings[ring].consumer = 0;
-
-skip_sds:
if (adapter->tx_ring == NULL)
return;