diff options
author | Heiner Kallweit <hkallweit1@gmail.com> | 2018-11-25 14:30:29 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-11-25 10:18:13 -0800 |
commit | 620344c43edfa020bbadfd81a144ebe5181fc94f (patch) | |
tree | 4810271e32c3983d6699510145a96798d1c421bf /include/linux/netdevice.h | |
parent | 358be656406dce296fafeac7a913ba33e9a66971 (diff) | |
download | linux-stable-620344c43edfa020bbadfd81a144ebe5181fc94f.tar.gz linux-stable-620344c43edfa020bbadfd81a144ebe5181fc94f.tar.bz2 linux-stable-620344c43edfa020bbadfd81a144ebe5181fc94f.zip |
net: core: add __netdev_sent_queue as variant of __netdev_tx_sent_queue
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>
Diffstat (limited to 'include/linux/netdevice.h')
-rw-r--r-- | include/linux/netdevice.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index 1eeb019d85a3..9b00043effa3 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h @@ -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) { |