diff options
author | Heiner Kallweit <hkallweit1@gmail.com> | 2023-04-17 12:36:15 +0300 |
---|---|---|
committer | Paolo Abeni <pabeni@redhat.com> | 2023-04-18 13:59:01 +0300 |
commit | cb18e5595df7f4e01d0dd4a0f9c4e71b68ae351e (patch) | |
tree | 8ed88bc1e58241e62d8a796a4fbc927a9b069b99 /include/net/netdev_queues.h | |
parent | 3684a23b5aff1e72e386f496da3eeee609fee30b (diff) | |
download | linux-cb18e5595df7f4e01d0dd4a0f9c4e71b68ae351e.tar.xz |
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 <jacob.e.keller@intel.com>
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'include/net/netdev_queues.h')
-rw-r--r-- | include/net/netdev_queues.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/net/netdev_queues.h b/include/net/netdev_queues.h index b26fdb441e39..d68b0a483431 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 |