From 25390a01c2275b46af976fd5013a0b81360921c0 Mon Sep 17 00:00:00 2001 From: Manjunathappa Prakash Date: Fri, 3 Apr 2020 12:08:31 -0700 Subject: [PATCH] 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 --- dp/wifi3.0/dp_tx_flow_control.c | 4 ++-- wlan_cfg/cfg_dp.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dp/wifi3.0/dp_tx_flow_control.c b/dp/wifi3.0/dp_tx_flow_control.c index 1c8c828b8a..4aecd81352 100644 --- a/dp/wifi3.0/dp_tx_flow_control.c +++ b/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"); diff --git a/wlan_cfg/cfg_dp.h b/wlan_cfg/cfg_dp.h index f6f2b52037..4d5112f84a 100644 --- a/wlan_cfg/cfg_dp.h +++ b/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