]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
ath10k: fix napi_poll budget overflow
authorRyan Hsu <ryanhsu@qti.qualcomm.com>
Tue, 22 Aug 2017 21:44:02 +0000 (14:44 -0700)
committerKalle Valo <kvalo@qca.qualcomm.com>
Thu, 31 Aug 2017 12:13:18 +0000 (15:13 +0300)
commitc9353bf483d3724c116a9d502c0ead9cec54a61a
treec4dcf41037284c5624fc9cc2950fc3c6056d7a1f
parent76b07b30c46bcc6a03ff12d45e525794b8e8c14a
ath10k: fix napi_poll budget overflow

In napi_poll, the budget number is used to control the amount of packets
we should handle per poll to balance the resource in the system.

In the list of the amsdu packets reception, we check if there is budget
count left and handle the complete list of the packets, that it will have
chances the very last list will over the budget leftover.

So adding one more parameter - budget_left, this would help while
traversing the list to avoid handling more than the budget given.

Reported-by: Andrey Ryabinin <aryabinin@virtuozzo.com>
Fix-suggested-by: Igor Mitsyanko <igor.mitsyanko.os@quantenna.com>
Link: https://lkml.kernel.org/r/26670dce-4dd2-f8e4-0e14-90d74257e739@virtuozzo.com
Signed-off-by: Ryan Hsu <ryanhsu@qti.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath10k/htt_rx.c