]> www.infradead.org Git - users/jedix/linux-maple.git/commit
wifi: ath12k: Optimize NAPI budget by adjusting PPDU processing
authorP Praneesh <quic_ppranees@quicinc.com>
Mon, 23 Dec 2024 06:01:28 +0000 (11:31 +0530)
committerJeff Johnson <jeff.johnson@oss.qualcomm.com>
Sun, 26 Jan 2025 18:41:29 +0000 (10:41 -0800)
commit394a3fa7c538060ee3cb134d52b4e9ec1f680cac
tree3f0a91ee676ba6ce5c68d9c2a31b8ed9a65d902b
parent8520ba9bb8f43ce9d540d9be6a5711ceeb1651cf
wifi: ath12k: Optimize NAPI budget by adjusting PPDU processing

In the current implementation, when PPDU spans multiple ring descriptors,
leading to inefficient use of the NAPI budget. The budget counter is
decremented for each ring descriptor, causing rapid depletion of the
budget even though the processing of a single PPDU might not be complete.

To address this issue, modify the code to decrement the budget counter
only when the driver receives HAL_MON_END_OF_PPDU as the end reason. This
change ensures that the budget is decremented only once per PPDU,
resulting in more efficient utilization of the NAPI budget and better
handling of monitor destination ring.

Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.3.1-00173-QCAHKSWPL_SILICONZ-1
Tested-on: WCN7850 hw2.0 PCI WLAN.HMT.1.0.c5-00481-QCAHMTSWPL_V1.0_V2.0_SILICONZ-3

Signed-off-by: P Praneesh <quic_ppranees@quicinc.com>
Link: https://patch.msgid.link/20241223060132.3506372-11-quic_ppranees@quicinc.com
Signed-off-by: Jeff Johnson <jeff.johnson@oss.qualcomm.com>
drivers/net/wireless/ath/ath12k/dp_mon.c