]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'iff_no_queue_fixups'
authorDavid S. Miller <davem@davemloft.net>
Fri, 28 Aug 2015 00:14:30 +0000 (17:14 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 28 Aug 2015 00:14:30 +0000 (17:14 -0700)
commitce2709f974b98910d904b5361b93626693135b56
treee6de5677f5cf445b53576234bb4b60d14c30566d
parentda33477ef0627c5cd20de64e17df1c293712b240
parent0b7c1a6e8e24c7eba5d40da39b9dc0c0860f65d2
Merge branch 'iff_no_queue_fixups'

Phil Sutter says:

====================
fixup IFF_NO_QUEUE conversion

This series serves two purposes:

On one hand it fixes a quite embarrassing bug around the warning I added for
drivers still setting tx_queue_len = 0 to achieve noqueue operation. It turned
out to be quite useless as due to using alloc_netdev(), many in-kernel drivers
fell into the trap by accident, as well. Instead this place serves pretty well
as a sanitizing point to set IFF_NO_QUEUE for drivers not initializing
tx_queue_len, which in turn allows to drop all special treatment of the latter
being zero since that can not happen anymore without IFF_NO_QUEUE being set.

On the other hand, it provides a better solution for Eric Dumazet's concern
regarding how to assign noqueue to an interface which does not default to it
already. In order to make this possible, noqueue is being registered so users
can 'tc qd add dev eth0 root noqueue'. In addition, it resolves the ugly
situation of 'tc qd show' not showing noqueue. Finally, the former changes
allow for some code cleanup.
====================

Signed-off-by: David S. Miller <davem@davemloft.net>