net: sched: ignore tx_queue_len when assigning default qdisc
authorPhil Sutter <phil@nwl.cc>
Thu, 27 Aug 2015 19:21:37 +0000 (21:21 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 28 Aug 2015 00:14:29 +0000 (17:14 -0700)
commitdb4094bca7a5746bc8e36db0557e8732963e88f0
tree439fac3c1a73a85d812acfdee43217be662623ee
parentf84bb1eac0275283ccd76455e20f926e186ea8c8
net: sched: ignore tx_queue_len when assigning default qdisc

Since alloc_netdev_mqs() sets IFF_NO_QUEUE for drivers not initializing
tx_queue_len, it is safe to assume that if tx_queue_len is zero,
dev->priv flags always contains IFF_NO_QUEUE.

Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/sch_generic.c