aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/intel/iwlwifi/mvm/utils.c
diff options
context:
space:
mode:
authorSara Sharon <sara.sharon@intel.com>2018-01-04 07:06:07 -0500
committerLuca Coelho <luciano.coelho@intel.com>2018-04-20 03:57:16 -0400
commit251985c92865bc68a0b17a6409a640914f3ab1ba (patch)
treebbd1b32ccc441739f2f0cc39d42c18950f856a4b /drivers/net/wireless/intel/iwlwifi/mvm/utils.c
parent3cfb6de73df3bceaf1942297659177ac50267852 (diff)
iwlwifi: mvm: use shorter queues for mgmt and auxilary queues
In 22000 devices, aka gen2, the TFS is 256 bytes. In order to save memory, use shorter TX queue for aux and mgmt queues, since there isn't much traffic on them. Signed-off-by: Sara Sharon <sara.sharon@intel.com> Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Diffstat (limited to 'drivers/net/wireless/intel/iwlwifi/mvm/utils.c')
-rw-r--r--drivers/net/wireless/intel/iwlwifi/mvm/utils.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/net/wireless/intel/iwlwifi/mvm/utils.c b/drivers/net/wireless/intel/iwlwifi/mvm/utils.c
index 81c02d6e3d82..e597bc193e5c 100644
--- a/drivers/net/wireless/intel/iwlwifi/mvm/utils.c
+++ b/drivers/net/wireless/intel/iwlwifi/mvm/utils.c
@@ -728,13 +728,14 @@ int iwl_mvm_tvqm_enable_txq(struct iwl_mvm *mvm, int mac80211_queue,
728 .sta_id = sta_id, 728 .sta_id = sta_id,
729 .tid = tid, 729 .tid = tid,
730 }; 730 };
731 int queue; 731 int queue, size = IWL_DEFAULT_QUEUE_SIZE;
732 732
733 if (cmd.tid == IWL_MAX_TID_COUNT) 733 if (cmd.tid == IWL_MAX_TID_COUNT) {
734 cmd.tid = IWL_MGMT_TID; 734 cmd.tid = IWL_MGMT_TID;
735 size = IWL_MGMT_QUEUE_SIZE;
736 }
735 queue = iwl_trans_txq_alloc(mvm->trans, (void *)&cmd, 737 queue = iwl_trans_txq_alloc(mvm->trans, (void *)&cmd,
736 SCD_QUEUE_CFG, IWL_DEFAULT_QUEUE_SIZE, 738 SCD_QUEUE_CFG, size, timeout);
737 timeout);
738 739
739 if (queue < 0) { 740 if (queue < 0) {
740 IWL_DEBUG_TX_QUEUES(mvm, 741 IWL_DEBUG_TX_QUEUES(mvm,