]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
wil6210: fix net queue stop/wake
authorDedy Lansky <qca_dlansky@qca.qualcomm.com>
Wed, 23 Nov 2016 14:06:40 +0000 (16:06 +0200)
committerKalle Valo <kvalo@qca.qualcomm.com>
Wed, 23 Nov 2016 14:49:43 +0000 (16:49 +0200)
commitf9e3033ff7eb9a0018856f5295312f78828a34f2
tree73189fafbe5cde02938e99dd0515c686e25f31aa
parent40bea976c72b9ee60f8d097852deb53ccbeaffbe
wil6210: fix net queue stop/wake

Driver calls to netif_tx_stop_all_queues/netif_tx_wake_all_queues are
inconsistent. In several cases, driver can get to a situation where net
queues are stopped forever and data cannot be sent.

The fix is to stop net queues if there is at least one vring which is
"full" and to wake net queues if all vrings are not "full".

Signed-off-by: Dedy Lansky <qca_dlansky@qca.qualcomm.com>
Signed-off-by: Maya Erez <qca_merez@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/wil6210/main.c
drivers/net/wireless/ath/wil6210/netdev.c
drivers/net/wireless/ath/wil6210/txrx.c
drivers/net/wireless/ath/wil6210/wil6210.h
drivers/net/wireless/ath/wil6210/wmi.c