aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/scripting-engines/trace-event-python.c
diff options
context:
space:
mode:
authorMaxim Mikityanskiy <[email protected]>2022-01-25 12:06:54 +0200
committerJakub Kicinski <[email protected]>2022-01-25 20:00:02 -0800
commit429c3be8a5e2695b5b92a6a12361eb89eb185495 (patch)
treebbfdf6820fa07149fbe3ff13e997fcd1ae3bc9c1 /tools/perf/util/scripting-engines/trace-event-python.c
parent8bdd24940b69c0018b64b496aa3b03a25f7295ca (diff)
sch_htb: Fail on unsupported parameters when offload is requested
The current implementation of HTB offload doesn't support some parameters. Instead of ignoring them, actively return the EINVAL error when they are set to non-defaults. As this patch goes to stable, the driver API is not changed here. If future drivers support more offload parameters, the checks can be moved to the driver side. Note that the buffer and cbuffer parameters are also not supported, but the tc userspace tool assigns some default values derived from rate and ceil, and identifying these defaults in sch_htb would be unreliable, so they are still ignored. Fixes: d03b195b5aa0 ("sch_htb: Hierarchical QoS hardware offload") Reported-by: Jakub Kicinski <[email protected]> Signed-off-by: Maxim Mikityanskiy <[email protected]> Reviewed-by: Tariq Toukan <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions