tsnep: Fix TX queue stop/wake for multiple queues
authorGerhard Engleder <gerhard@engleder-embedded.com>
Tue, 24 Jan 2023 19:14:40 +0000 (20:14 +0100)
committerJakub Kicinski <kuba@kernel.org>
Thu, 26 Jan 2023 06:41:50 +0000 (22:41 -0800)
commit3d53aaef4332245044b2f3688ac0ea10436c719c
treec0b038845b36aea0b95bca55dda8e78f0abce926
parent6c4ca03bd890566d873e3593b32d034bf2f5a087
tsnep: Fix TX queue stop/wake for multiple queues

netif_stop_queue() and netif_wake_queue() act on TX queue 0. This is ok
as long as only a single TX queue is supported. But support for multiple
TX queues was introduced with 762031375d5c and I missed to adapt stop
and wake of TX queues.

Use netif_stop_subqueue() and netif_tx_wake_queue() to act on specific
TX queue.

Fixes: 762031375d5c ("tsnep: Support multiple TX/RX queue pairs")
Signed-off-by: Gerhard Engleder <gerhard@engleder-embedded.com>
Link: https://lore.kernel.org/r/20230124191440.56887-1-gerhard@engleder-embedded.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/engleder/tsnep_main.c