diff options
author | Vladimir Oltean <[email protected]> | 2023-05-30 12:19:45 +0300 |
---|---|---|
committer | David S. Miller <[email protected]> | 2023-05-31 10:00:30 +0100 |
commit | 2d800bc500fb3fb07a0fb42e2d0a1356fb9e1e8f (patch) | |
tree | db9684b080c8cd07b7e364ddc37533edfa6d5758 /tools/perf/scripts/python/net_dropmonitor.py | |
parent | dced11ef84fb310f4ddfa74d1c09687b8f845d1b (diff) |
net/sched: taprio: replace tc_taprio_qopt_offload :: enable with a "cmd" enum
Inspired from struct flow_cls_offload :: cmd, in order for taprio to be
able to report statistics (which is future work), it seems that we need
to drill one step further with the ndo_setup_tc(TC_SETUP_QDISC_TAPRIO)
multiplexing, and pass the command as part of the common portion of the
muxed structure.
Since we already have an "enable" variable in tc_taprio_qopt_offload,
refactor all drivers to check for "cmd" instead of "enable", and reject
every other command except "replace" and "destroy" - to be future proof.
Signed-off-by: Vladimir Oltean <[email protected]>
Reviewed-by: Horatiu Vultur <[email protected]> # for lan966x
Acked-by: Kurt Kanzenbach <[email protected]> # hellcreek
Reviewed-by: Muhammad Husaini Zulkifli <[email protected]>
Reviewed-by: Gerhard Engleder <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions