diff options
author | Phil Sutter <phil@nwl.cc> | 2015-08-27 21:21:36 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-08-27 17:14:29 -0700 |
commit | f84bb1eac0275283ccd76455e20f926e186ea8c8 (patch) | |
tree | 34835da4b0468e962af7db25d434c19769285c1a /arch | |
parent | 69dba9bbc50609f19ee89d62d5199c81fcbc74b2 (diff) | |
download | linux-f84bb1eac0275283ccd76455e20f926e186ea8c8.tar.bz2 |
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 <phil@nwl.cc>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions