ath10k: fix napi_poll budget overflow
ryanhsu at qti.qualcomm.com
Thu Aug 24 07:27:02 PDT 2017
On 08/24/2017 02:07 AM, Kalle Valo wrote:
> ryanhsu at qti.qualcomm.com wrote:
>> From: Ryan Hsu <ryanhsu at qti.qualcomm.com>
>> 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 at virtuozzo.com>
>> Fix-suggested-by: Igor Mitsyanko <igor.mitsyanko.os at quantenna.com>
>> Signed-off-by: Ryan Hsu <ryanhsu at qti.qualcomm.com>
> Was there a bug report about this? I can add a link to that and maybe also
> include the warning.
More information about the ath10k