diff options
author | Jesus Sanchez-Palencia <jesus.sanchez-palencia@intel.com> | 2017-10-17 03:01:24 +0200 |
---|---|---|
committer | Jeff Kirsher <jeffrey.t.kirsher@intel.com> | 2017-10-27 18:41:45 +0200 |
commit | ce8a75f60b75831947569229616cf1bc94f2d965 (patch) | |
tree | d00e05d070f3e2ef60e1e3be0e974314c15a4f1d /net/bluetooth | |
parent | net/sched: Check for null dev_queue on create flow (diff) | |
download | linux-ce8a75f60b75831947569229616cf1bc94f2d965.tar.xz linux-ce8a75f60b75831947569229616cf1bc94f2d965.zip |
net/sched: Change behavior of mq select_queue()
Currently, the class_ops select_queue() implementation on sch_mq
returns a pointer to netdev_queue #0 when it receives and invalid
qdisc id. That can be misleading since all of mq's inner qdiscs are
attached to a valid netdev_queue.
Here we fix that by returning NULL when a qdisc id is invalid. This is
aligned with how select_queue() is implemented for sch_mqprio in the
next patch on this series, keeping a consistent behavior between these
two qdiscs.
Signed-off-by: Jesus Sanchez-Palencia <jesus.sanchez-palencia@intel.com>
Tested-by: Henrik Austad <henrik@austad.us>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'net/bluetooth')
0 files changed, 0 insertions, 0 deletions