Эх сурвалжийг харах

qcacmn: flow_ctrl_v2: decouple tx_desc from TCLring descs

Decouple software tx_descs from TCLring descriptors and Increase
TCLring descriptors max INI config limit to 2k to 32k.

Change-Id: I18d014cdb0c1e26b7661ff65aaa8dffe791d7163
CRs-Fixed: 2657056
Manjunathappa Prakash 5 жил өмнө
parent
commit
25390a01c2

+ 2 - 2
dp/wifi3.0/dp_tx_flow_control.c

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2015-2019 The Linux Foundation. All rights reserved.
+ * Copyright (c) 2015-2020 The Linux Foundation. All rights reserved.
  *
  * Permission to use, copy, modify, and/or distribute this software for
  * any purpose with or without fee is hereby granted, provided that the
@@ -575,7 +575,7 @@ QDF_STATUS dp_tx_flow_pool_map(struct cdp_soc_t *handle, uint8_t pdev_id,
 	struct dp_soc *soc = cdp_soc_t_to_dp_soc(handle);
 	struct dp_pdev *pdev =
 		dp_get_pdev_from_soc_pdev_id_wifi3(soc, pdev_id);
-	int tx_ring_size = wlan_cfg_tx_ring_size(soc->wlan_cfg_ctx);
+	int tx_ring_size = wlan_cfg_get_num_tx_desc(soc->wlan_cfg_ctx);
 
 	if (!pdev) {
 		dp_err("pdev is NULL");

+ 1 - 1
wlan_cfg/cfg_dp.h

@@ -96,7 +96,7 @@
 #define WLAN_CFG_PER_PDEV_LMAC_RING_MAX 1
 
 #define WLAN_CFG_TX_RING_SIZE_MIN 512
-#define WLAN_CFG_TX_RING_SIZE_MAX 2048
+#define WLAN_CFG_TX_RING_SIZE_MAX 0x80000
 
 #define WLAN_CFG_TX_COMP_RING_SIZE_MIN 512
 #define WLAN_CFG_TX_COMP_RING_SIZE_MAX 0x80000