]> git.baikalelectronics.ru Git - kernel.git/commit
rt2x00: pause almost full queue early
authorStanislaw Gruszka <sgruszka@redhat.com>
Tue, 19 Dec 2017 11:33:55 +0000 (12:33 +0100)
committerKalle Valo <kvalo@codeaurora.org>
Mon, 8 Jan 2018 17:39:06 +0000 (19:39 +0200)
commitbe0b3422efa2293d092effb9ddbe57ccb5ee1713
treea7d4fd741c1fa7351dbd8156f45ae7f768031baa
parentec847b2c725ee048fea83e6b0c2bbc523405eef6
rt2x00: pause almost full queue early

Do not drop &queue->tx_lock and acquire it again to pause queue when
available entries are below the threshold.

Patch should mitigate problem of frequently printed errors:
"Error - Dropping frame due to full tx queue"

Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Tested-by: Enrico Mioso@gmail.com
Tested-by: Enrico Mioso <mrkiko.rs@gmail.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ralink/rt2x00/rt2x00mac.c
drivers/net/wireless/ralink/rt2x00/rt2x00queue.c