aboutsummaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorDavid S. Miller <[email protected]>2018-11-25 10:18:14 -0800
committerDavid S. Miller <[email protected]>2018-11-25 10:18:14 -0800
commita1f2d60aaf2c4f88d81cfd71c84744b19a46043d (patch)
treea60c43eab89a279e8b18b7b759c35662af3e29ae /include/linux
parent358be656406dce296fafeac7a913ba33e9a66971 (diff)
parent2e6eedb4813e34d8d84ac0eb3afb668966f3f356 (diff)
Merge branch 'r8169-xmit_more'
Heiner Kallweit says: ==================== r8169: make use of xmit_more and __netdev_sent_queue This series adds helper __netdev_sent_queue to the core and makes use of it in the r8169 driver. Heiner Kallweit (2): net: core: add __netdev_sent_queue as variant of __netdev_tx_sent_queue r8169: make use of xmit_more and __netdev_sent_queue v2: - fix minor style issue ==================== Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/netdevice.h8
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)
{