diff options
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/netdevice.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index d19f93265cac..9b24cc7a54d1 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h | |||
| @@ -1859,6 +1859,34 @@ static inline int netif_xmit_frozen_or_stopped(const struct netdev_queue *dev_qu | |||
| 1859 | return dev_queue->state & QUEUE_STATE_ANY_XOFF_OR_FROZEN; | 1859 | return dev_queue->state & QUEUE_STATE_ANY_XOFF_OR_FROZEN; |
| 1860 | } | 1860 | } |
| 1861 | 1861 | ||
| 1862 | static inline void netdev_tx_sent_queue(struct netdev_queue *dev_queue, | ||
| 1863 | unsigned int bytes) | ||
| 1864 | { | ||
| 1865 | } | ||
| 1866 | |||
| 1867 | static inline void netdev_sent_queue(struct net_device *dev, unsigned int bytes) | ||
| 1868 | { | ||
| 1869 | netdev_tx_sent_queue(netdev_get_tx_queue(dev, 0), bytes); | ||
| 1870 | } | ||
| 1871 | |||
| 1872 | static inline void netdev_tx_completed_queue(struct netdev_queue *dev_queue, | ||
| 1873 | unsigned pkts, unsigned bytes) | ||
| 1874 | { | ||
| 1875 | } | ||
| 1876 | |||
| 1877 | static inline void netdev_completed_queue(struct net_device *dev, | ||
| 1878 | unsigned pkts, unsigned bytes) | ||
| 1879 | { | ||
| 1880 | netdev_tx_completed_queue(netdev_get_tx_queue(dev, 0), pkts, bytes); | ||
| 1881 | } | ||
| 1882 | |||
| 1883 | static inline void netdev_tx_reset_queue(struct netdev_queue *q) | ||
| 1884 | { | ||
| 1885 | } | ||
| 1886 | |||
| 1887 | static inline void netdev_reset_queue(struct net_device *dev_queue) | ||
| 1888 | { | ||
| 1889 | netdev_tx_reset_queue(netdev_get_tx_queue(dev_queue, 0)); | ||
| 1862 | } | 1890 | } |
| 1863 | 1891 | ||
| 1864 | /** | 1892 | /** |
