aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/Perf-Trace-Util/lib
diff options
context:
space:
mode:
authorXiaolei Wang <[email protected]>2024-06-17 09:39:22 +0800
committerJakub Kicinski <[email protected]>2024-06-18 17:51:52 -0700
commitb8c43360f6e424131fa81d3ba8792ad8ff25a09e (patch)
tree667808fd4df8370fa6625d32c39fefd5234d1c86 /tools/perf/scripts/python/Perf-Trace-Util/lib
parent40a64cc9679540ff7c46ecc51178b07d42abbb1c (diff)
net: stmmac: No need to calculate speed divider when offload is disabled
commit be27b8965297 ("net: stmmac: replace priv->speed with the portTransmitRate from the tc-cbs parameters") introduced a problem. When deleting, it prompts "Invalid portTransmitRate 0 (idleSlope - sendSlope)" and exits. Add judgment on cbs.enable. Only when offload is enabled, speed divider needs to be calculated. Fixes: be27b8965297 ("net: stmmac: replace priv->speed with the portTransmitRate from the tc-cbs parameters") Signed-off-by: Xiaolei Wang <[email protected]> Reviewed-by: Simon Horman <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib')
0 files changed, 0 insertions, 0 deletions