aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorXiaolei Wang <xiaolei.wang@windriver.com>2024-06-17 09:39:22 +0800
committerJakub Kicinski <kuba@kernel.org>2024-06-18 17:51:52 -0700
commitb8c43360f6e424131fa81d3ba8792ad8ff25a09e (patch)
tree667808fd4df8370fa6625d32c39fefd5234d1c86 /tools/perf/scripts/python/export-to-sqlite.py
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 <xiaolei.wang@windriver.com> Reviewed-by: Simon Horman <horms@kernel.org> Link: https://lore.kernel.org/r/20240617013922.1035854-1-xiaolei.wang@windriver.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions