wifi: ath12k: Refactor Rxdma buffer replinish argument
authorKarthikeyan Periyasamy <quic_periyasa@quicinc.com>
Wed, 20 Mar 2024 01:06:13 +0000 (06:36 +0530)
committerKalle Valo <quic_kvalo@quicinc.com>
Thu, 21 Mar 2024 11:38:12 +0000 (13:38 +0200)
commit9d7bce18e725e21918a7a201bae8be29abb9e0c4
treef7e02baddb7c97a699762f94f9289f57a309b768
parent020e08ae5e68cbc0791e8d842443a86eb6aa99f6
wifi: ath12k: Refactor Rxdma buffer replinish argument

Currently, the Rxdma buffer replenish procedure implicitly retrieves the
number of free entries when the caller passes req_entries as zero. This is
helpful to replenishing the Rxdma ring when the caller is unaware of the
number of entries to replenish. After the Rxdma ring is initialized, we
can pass req_entries as zero to replenish all the free entry in the Rxdma
ring. This change helps to align the argument req_entries to the used list
entries for better code readability.

Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.0.1-00029-QCAHKSWPL_SILICONZ-1

Signed-off-by: Karthikeyan Periyasamy <quic_periyasa@quicinc.com>
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
Link: https://msgid.link/20240320010615.91331-2-quic_periyasa@quicinc.com
drivers/net/wireless/ath/ath12k/dp_rx.c