From cedfac0a1db9befb919da2d10b91d221c97cbff4 Mon Sep 17 00:00:00 2001 From: hangtian Date: Wed, 17 Apr 2019 18:25:56 +0800 Subject: [PATCH] qcacmn: Add stop_th and start_th for tx flow control V1 Add stop_th and start_th for QCA_LL_TX_FLOW_CONTROL_V2 disabled platform, which is pdev based tx_desc pool. Change pdev tx_desc pool size from 1056 to 900, default stop_th is 15% start_th is 25%, this setting is exactly same as QCA_LL_TX_FLOW_CONTROL_V2. Pause netif tx queues for all vdevs when stop_th reached instead of dropping frames. Reduce pdev pool size could significantly reduce firmware wmm drop. Both of host and firmware frame dropps lead to bad TCP throughput. Change-Id: I77daf8c9fdef624f8ec479885b7705deb1fef142 CRs-Fixed: 2437471 --- dp/inc/cdp_txrx_mob_def.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/dp/inc/cdp_txrx_mob_def.h b/dp/inc/cdp_txrx_mob_def.h index eeacb36956d1..df69ee878761 100644 --- a/dp/inc/cdp_txrx_mob_def.h +++ b/dp/inc/cdp_txrx_mob_def.h @@ -286,12 +286,10 @@ struct txrx_pdev_cfg_param_t { bool enable_rxthread; /* CE classification enabled through INI */ bool ce_classify_enabled; -#ifdef QCA_LL_TX_FLOW_CONTROL_V2 /* Threshold to stop queue in percentage */ uint32_t tx_flow_stop_queue_th; /* Start queue offset in percentage */ uint32_t tx_flow_start_queue_offset; -#endif struct ol_tx_sched_wrr_ac_specs_t ac_specs[TX_WMM_AC_NUM]; bool gro_enable;