From: Heiner Kallweit Date: Mon, 17 Apr 2023 09:36:15 +0000 (+0200) Subject: net: add macro netif_subqueue_completed_wake X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=cb18e5595df7f4e01d0dd4a0f9c4e71b68ae351e;p=linux.git net: add macro netif_subqueue_completed_wake Add netif_subqueue_completed_wake, complementing the subqueue versions netif_subqueue_try_stop and netif_subqueue_maybe_stop. Reviewed-by: Jacob Keller Signed-off-by: Heiner Kallweit Signed-off-by: Paolo Abeni --- diff --git a/include/net/netdev_queues.h b/include/net/netdev_queues.h index b26fdb441e394..d68b0a4834315 100644 --- a/include/net/netdev_queues.h +++ b/include/net/netdev_queues.h @@ -160,4 +160,14 @@ netdev_txq_completed_mb(struct netdev_queue *dev_queue, netif_txq_maybe_stop(txq, get_desc, stop_thrs, start_thrs); \ }) +#define netif_subqueue_completed_wake(dev, idx, pkts, bytes, \ + get_desc, start_thrs) \ + ({ \ + struct netdev_queue *txq; \ + \ + txq = netdev_get_tx_queue(dev, idx); \ + netif_txq_completed_wake(txq, pkts, bytes, \ + get_desc, start_thrs); \ + }) + #endif