diff options
author | 2024-06-17 09:39:22 +0800 | |
---|---|---|
committer | 2024-06-18 17:51:52 -0700 | |
commit | b8c43360f6e424131fa81d3ba8792ad8ff25a09e (patch) | |
tree | 667808fd4df8370fa6625d32c39fefd5234d1c86 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | net: phy: dp83tg720: get master/slave configuration in link down state (diff) | |
download | wireguard-linux-b8c43360f6e424131fa81d3ba8792ad8ff25a09e.tar.xz wireguard-linux-b8c43360f6e424131fa81d3ba8792ad8ff25a09e.zip |
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-postgresql.py')
0 files changed, 0 insertions, 0 deletions