wifi: wilc1000: add back-off algorithm to balance tx queue packets
authorPrasurjya Rohan Saikia <prasurjya.rohansaikia@microchip.com>
Fri, 15 Sep 2023 18:00:40 +0000 (18:00 +0000)
committerKalle Valo <kvalo@kernel.org>
Thu, 21 Sep 2023 06:30:11 +0000 (09:30 +0300)
commita08bb28f6eb6143788755526a3839702dbfb678e
tree565dc18bf45d4a81c87d857d61518a290cdfb211
parent260323c3a3e3f0adf5a4f1ab0fcf05b2dbcc768d
wifi: wilc1000: add back-off algorithm to balance tx queue packets

Add an algorithm to backoff the Tx Task when low memory scenario is
triggered at firmware. During high data transfer from host, the firmware
runs out of VMM memory, which is used to hold the frames from the host.
So, adding the flow control delays the transmit from host side when
there is not enough space to accommodate frames in firmware side.

Signed-off-by: Prasurjya Rohan Saikia <prasurjya.rohansaikia@microchip.com>
Acked-by: Ajay Singh <ajay.kathat@microchip.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20230915175946.4361-1-prasurjya.rohansaikia@microchip.com
drivers/net/wireless/microchip/wilc1000/netdev.c
drivers/net/wireless/microchip/wilc1000/netdev.h