Re: [PATCH v1] net: Qcom WWAN control driver: fix the rx_budget was eaten incorrectly
From: Loic Poulain
Date: Wed Apr 21 2021 - 02:37:33 EST
Hi Jarvis,
On Wed, 21 Apr 2021 at 05:57, Jarvis Jiang <jarvis.w.jiang@xxxxxxxxx> wrote:
>
> mhi_wwan_rx_budget_dec() should check the value of mhiwwan->rx_budget
> before the decrement, not the value after decrement.
>
> When mhiwwan->rx_budget = 1, mhi_wwan_rx_budget_dec() will always return
> false, which will cause the mhi_wwan_ctrl_refill_work() not to queue rx
> buffers to transfer ring any more, and rx will be stuck.
>
> This patch was tested with Ubuntu 20.04 X86_64 PC as host
>
> Signed-off-by: Jarvis Jiang <jarvis.w.jiang@xxxxxxxxx>
Thanks for the patch, but a similar change for this issue has just
been merged in net-next (a926c025d56b net: wwan: mhi_wwan_ctrl: Fix RX
buffer starvation).
Regards,
Loic