From: Phil Sutter Date: Thu, 27 Aug 2015 19:21:36 +0000 (+0200) Subject: net: fix IFF_NO_QUEUE for drivers using alloc_netdev X-Git-Tag: omap-for-v4.3/fixes-rc1~110^2~56^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f84bb1eac0275283ccd76455e20f926e186ea8c8;p=pandora-kernel.git net: fix IFF_NO_QUEUE for drivers using alloc_netdev Printing a warning in alloc_netdev_mqs() if tx_queue_len is zero and IFF_NO_QUEUE not set is not appropriate since drivers may use one of the alloc_netdev* macros instead of alloc_etherdev*, thereby not intentionally leaving tx_queue_len uninitialized. Instead check here if tx_queue_len is zero and set IFF_NO_QUEUE, so the value of tx_queue_len can be ignored in net/sched_generic.c. Fixes: 906470c ("net: warn if drivers set tx_queue_len = 0") Signed-off-by: Phil Sutter Signed-off-by: David S. Miller --- Reading git-diff-tree failed