aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-dev.h
diff options
context:
space:
mode:
authorWey-Yi Guy <wey-yi.w.guy@intel.com>2009-10-09 16:20:28 -0400
committerJohn W. Linville <linville@tuxdriver.com>2009-10-27 16:47:59 -0400
commit88804e2b33b6ab3974ff2330cd045ca53d6750c5 (patch)
tree1e8d7f27f59774c159e80ad0a9f3bfd6100a525f /drivers/net/wireless/iwlwifi/iwl-dev.h
parent008a9e3e3c37abd7f56d2478fe92d5874de3630a (diff)
iwlwifi: dynamic allocate tx queue structure
Instead of always allocate the max number of tx queue structure, use dynamic allocation based on the number of queues in device configuration. With these changes, device does not have to allocate more memory than the h/w can support. Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com> Signed-off-by: Reinette Chatre <reinette.chatre@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-dev.h')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-dev.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-dev.h b/drivers/net/wireless/iwlwifi/iwl-dev.h
index c1b07e2045e6..6d7c2350d8c9 100644
--- a/drivers/net/wireless/iwlwifi/iwl-dev.h
+++ b/drivers/net/wireless/iwlwifi/iwl-dev.h
@@ -974,8 +974,6 @@ struct traffic_stats {
974}; 974};
975#endif 975#endif
976 976
977#define IWL_MAX_NUM_QUEUES 20 /* FIXME: do dynamic allocation */
978
979struct iwl_priv { 977struct iwl_priv {
980 978
981 /* ieee device used by generic ieee processing code */ 979 /* ieee device used by generic ieee processing code */
@@ -1103,7 +1101,7 @@ struct iwl_priv {
1103 1101
1104 /* Rx and Tx DMA processing queues */ 1102 /* Rx and Tx DMA processing queues */
1105 struct iwl_rx_queue rxq; 1103 struct iwl_rx_queue rxq;
1106 struct iwl_tx_queue txq[IWL_MAX_NUM_QUEUES]; 1104 struct iwl_tx_queue *txq;
1107 unsigned long txq_ctx_active_msk; 1105 unsigned long txq_ctx_active_msk;
1108 struct iwl_dma_ptr kw; /* keep warm address */ 1106 struct iwl_dma_ptr kw; /* keep warm address */
1109 struct iwl_dma_ptr scd_bc_tbls; 1107 struct iwl_dma_ptr scd_bc_tbls;