]> git.baikalelectronics.ru Git - kernel.git/commit
wil6210: add option to drop Tx packets when Tx ring is full
authorDedy Lansky <dlansky@codeaurora.org>
Fri, 22 Feb 2019 14:21:00 +0000 (16:21 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 28 Feb 2019 09:24:19 +0000 (11:24 +0200)
commit0fc5f99356ed143791fff817ceb94482d2ba7ca5
treee3d88ac816640b54eb661bc2ed96598b09cc565a
parentd7066f85c4d209ef9730259134238b3169c0b7aa
wil6210: add option to drop Tx packets when Tx ring is full

In AP mode with multiple clients, driver stops net queue
(netif_tx_stop_queue) upon first ring (serving specific client)
becoming full. This can have negative effect on transmission to
other clients which may still have room in their corresponding rings.

Implement new policy in which stop/wake net queue are not used. In
case there is no room in the ring for a transmitted packet, drop the
packet.

New policy can be helpful to debug performance issues, to guarantee
maximum utilization of net queues.
New policy is disabled by default and can be enabled by debugfs:
echo 1 > drop_if_ring_full

Signed-off-by: Dedy Lansky <dlansky@codeaurora.org>
Signed-off-by: Maya Erez <merez@codeaurora.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ath/wil6210/debugfs.c
drivers/net/wireless/ath/wil6210/txrx.c
drivers/net/wireless/ath/wil6210/wil6210.h