diff options
author | John Fastabend <[email protected]> | 2016-02-29 11:26:13 -0800 |
---|---|---|
committer | David S. Miller <[email protected]> | 2016-03-03 16:25:15 -0500 |
commit | 5eb4dce3b3471ec9d1ea2945fa3d2bab4ac7e100 (patch) | |
tree | 81f310ff66f83f1d878223f681b98b362bbcacc1 /tools/perf/scripts/python/syscall-counts.py | |
parent | 998fc1d0803bff10d6d8a6f6ed67689f327d9315 (diff) |
net: relax setup_tc ndo op handle restriction
I added this check in setup_tc to multiple drivers,
if (handle != TC_H_ROOT || tc->type != TC_SETUP_MQPRIO)
Unfortunately restricting to TC_H_ROOT like this breaks the old
instantiation of mqprio to setup a hardware qdisc. This patch
relaxes the test to only check the type to make it equivalent
to the check before I broke it. With this the old instantiation
continues to work.
A good smoke test is to setup mqprio with,
# tc qdisc add dev eth4 root mqprio num_tc 8 \
map 0 1 2 3 4 5 6 7 \
queues 0@0 1@1 2@2 3@3 4@4 5@5 6@6 7@7
Fixes: e4c6734eaab9 ("net: rework ndo tc op to consume additional qdisc handle paramete")
Reported-by: Singh Krishneil <[email protected]>
Reported-by: Jake Keller <[email protected]>
CC: Murali Karicheri <[email protected]>
CC: Shradha Shah <[email protected]>
CC: Or Gerlitz <[email protected]>
CC: Ariel Elior <[email protected]>
CC: Jeff Kirsher <[email protected]>
CC: Bruce Allan <[email protected]>
CC: Jesse Brandeburg <[email protected]>
CC: Don Skidmore <[email protected]>
Signed-off-by: John Fastabend <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions