qcacmn: ini config to allocate special TX descriptors of pdev

An INI dp_tx_spl_desc is defined and can be used to configure the
limit of TX descriptors that can reserved on the pdev to handle
special frames like EAPOL.

CRs-Fixed: 3343209
Change-Id: I6578bddd1f4ea07528c9f66f778b113ec6fb9e61
This commit is contained in:
Sreeramya Soratkal
2022-11-22 12:49:32 +05:30
committed by Madan Koyyalamudi
orang tua f5eca8f1a9
melakukan 88124ec9b4
5 mengubah file dengan 36 tambahan dan 2 penghapusan

Melihat File

@@ -17204,8 +17204,10 @@ static QDF_STATUS dp_pdev_init(struct cdp_soc_t *txrx_soc,
qdf_event_create(&pdev->fw_obss_stats_event);
pdev->num_tx_allowed = wlan_cfg_get_num_tx_desc(soc->wlan_cfg_ctx);
pdev->num_reg_tx_allowed = pdev->num_tx_allowed - MAX_TX_SPL_DESC;
pdev->num_tx_spl_allowed =
wlan_cfg_get_num_tx_spl_desc(soc->wlan_cfg_ctx);
pdev->num_reg_tx_allowed =
pdev->num_tx_allowed - pdev->num_tx_spl_allowed;
if (dp_rxdma_ring_setup(soc, pdev)) {
dp_init_err("%pK: RXDMA ring config failed", soc);
goto fail3;

Melihat File

@@ -3153,6 +3153,9 @@ struct dp_pdev {
*/
uint32_t num_reg_tx_allowed;
/* User configured max number of tx buffers for the special frames*/
uint32_t num_tx_spl_allowed;
/* unique cookie required for peer session */
uint32_t next_peer_cookie;