]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
net: core: add __netdev_sent_queue as variant of __netdev_tx_sent_queue
authorHeiner Kallweit <hkallweit1@gmail.com>
Sun, 25 Nov 2018 13:30:29 +0000 (14:30 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sun, 25 Nov 2018 18:18:13 +0000 (10:18 -0800)
Similar to netdev_sent_queue add helper __netdev_sent_queue as variant
of __netdev_tx_sent_queue.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/netdevice.h

index 1eeb019d85a301aef3f67c1a6e6cdab91042b3e8..9b00043effa30b3bdc9ab5c9b59df9ebf4a2f2aa 100644 (file)
@@ -3226,6 +3226,14 @@ static inline void netdev_sent_queue(struct net_device *dev, unsigned int bytes)
        netdev_tx_sent_queue(netdev_get_tx_queue(dev, 0), bytes);
 }
 
+static inline bool __netdev_sent_queue(struct net_device *dev,
+                                      unsigned int bytes,
+                                      bool xmit_more)
+{
+       return __netdev_tx_sent_queue(netdev_get_tx_queue(dev, 0), bytes,
+                                     xmit_more);
+}
+
 static inline void netdev_tx_completed_queue(struct netdev_queue *dev_queue,
                                             unsigned int pkts, unsigned int bytes)
 {