aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/netxen/netxen_nic.h
diff options
context:
space:
mode:
authorDhananjay Phadke <dhananjay@netxen.com>2009-04-07 18:50:43 -0400
committerDavid S. Miller <davem@davemloft.net>2009-04-08 18:58:28 -0400
commit71dcddbdd35487eb931aa8aab28a2df474008754 (patch)
tree64b1b1aca84e118edea9865a350aed93e0a8b813 /drivers/net/netxen/netxen_nic.h
parent3bf26ce3f4cc3c9e0d0478b4016c6113a16faaf1 (diff)
netxen: allocate status rings dynamically
This reduces netxen_adapter footprint when rss (msi-x) is disabled. 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.h')
-rw-r--r--drivers/net/netxen/netxen_nic.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/net/netxen/netxen_nic.h b/drivers/net/netxen/netxen_nic.h
index f4d7e2db700b..e0f329ff3691 100644
--- a/drivers/net/netxen/netxen_nic.h
+++ b/drivers/net/netxen/netxen_nic.h
@@ -762,7 +762,7 @@ struct netxen_recv_context {
762 u16 virt_port; 762 u16 virt_port;
763 763
764 struct nx_host_rds_ring rds_rings[NUM_RCV_DESC_RINGS]; 764 struct nx_host_rds_ring rds_rings[NUM_RCV_DESC_RINGS];
765 struct nx_host_sds_ring sds_rings[NUM_STS_DESC_RINGS]; 765 struct nx_host_sds_ring *sds_rings;
766}; 766};
767 767
768/* New HW context creation */ 768/* New HW context creation */
@@ -1203,10 +1203,10 @@ struct netxen_adapter {
1203 1203
1204 spinlock_t tx_clean_lock; 1204 spinlock_t tx_clean_lock;
1205 1205
1206 u32 num_txd; 1206 u16 num_txd;
1207 u32 num_rxd; 1207 u16 num_rxd;
1208 u32 num_jumbo_rxd; 1208 u16 num_jumbo_rxd;
1209 u32 num_lro_rxd; 1209 u16 num_lro_rxd;
1210 1210
1211 u8 max_rds_rings; 1211 u8 max_rds_rings;
1212 u8 max_sds_rings; 1212 u8 max_sds_rings;