aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/netdevice.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/netdevice.h')
-rw-r--r--include/linux/netdevice.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h
index f25d4f5a31b0..c02227b9dd7b 100644
--- a/include/linux/netdevice.h
+++ b/include/linux/netdevice.h
@@ -533,7 +533,6 @@ struct net_device
533#define NETIF_F_LLTX 4096 /* LockLess TX - deprecated. Please */ 533#define NETIF_F_LLTX 4096 /* LockLess TX - deprecated. Please */
534 /* do not use LLTX in new drivers */ 534 /* do not use LLTX in new drivers */
535#define NETIF_F_NETNS_LOCAL 8192 /* Does not change network namespaces */ 535#define NETIF_F_NETNS_LOCAL 8192 /* Does not change network namespaces */
536#define NETIF_F_MULTI_QUEUE 16384 /* Has multiple TX/RX queues */
537#define NETIF_F_LRO 32768 /* large receive offload */ 536#define NETIF_F_LRO 32768 /* large receive offload */
538 537
539 /* Segmentation offload features */ 538 /* Segmentation offload features */
@@ -1163,11 +1162,10 @@ static inline void netif_wake_subqueue(struct net_device *dev, u16 queue_index)
1163 * @dev: network device 1162 * @dev: network device
1164 * 1163 *
1165 * Check if device has multiple transmit queues 1164 * Check if device has multiple transmit queues
1166 * Always falls if NETDEVICE_MULTIQUEUE is not configured
1167 */ 1165 */
1168static inline int netif_is_multiqueue(const struct net_device *dev) 1166static inline int netif_is_multiqueue(const struct net_device *dev)
1169{ 1167{
1170 return (!!(NETIF_F_MULTI_QUEUE & dev->features)); 1168 return (dev->num_tx_queues > 1);
1171} 1169}
1172 1170
1173/* Use this variant when it is known for sure that it 1171/* Use this variant when it is known for sure that it