Browse Source

qcacmn: Increase number of Tx descriptors for 1024 clients

Increase the Tx descriptor pool size to 32K to take care of
1024 client requirement

Change-Id: If6e0711204479e602d7cb468270ee2279a5c4dfe
Pamidipati, Vijay 7 years ago
parent
commit
625276bc31
2 changed files with 6 additions and 6 deletions
  1. 5 5
      dp/wifi3.0/dp_tx_desc.h
  2. 1 1
      wlan_cfg/wlan_cfg.c

+ 5 - 5
dp/wifi3.0/dp_tx_desc.h

@@ -25,14 +25,14 @@
 
 /**
  * 21 bits cookie
- * 3 bits ring id 0 ~ 7,
- * 8 bits page id 0 ~ 512
+ * 2 bits pool id 0 ~ 3,
+ * 10 bits page id 0 ~ 1023
  * 5 bits offset id 0 ~ 31 (Desc size = 128, Num descs per page = 4096/128 = 32)
  */
 /* ???Ring ID needed??? */
-#define DP_TX_DESC_ID_POOL_MASK    0x01C000
-#define DP_TX_DESC_ID_POOL_OS      14
-#define DP_TX_DESC_ID_PAGE_MASK    0x003FE0
+#define DP_TX_DESC_ID_POOL_MASK    0x018000
+#define DP_TX_DESC_ID_POOL_OS      15
+#define DP_TX_DESC_ID_PAGE_MASK    0x007FE0
 #define DP_TX_DESC_ID_PAGE_OS      5
 #define DP_TX_DESC_ID_OFFSET_MASK  0x00001F
 #define DP_TX_DESC_ID_OFFSET_OS    0

+ 1 - 1
wlan_cfg/wlan_cfg.c

@@ -65,7 +65,7 @@
 #define WLAN_LRO_ENABLE 0
 
 /* Tx Descriptor and Tx Extension Descriptor pool sizes */
-#define WLAN_CFG_NUM_TX_DESC  (16 << 10)
+#define WLAN_CFG_NUM_TX_DESC  (32 << 10)
 #define WLAN_CFG_NUM_TX_EXT_DESC (8 << 10)