diff options
author | Song, Yoong Siang <yoong.siang.song@intel.com> | 2021-02-18 21:40:53 +0800 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2021-02-22 19:06:01 -0800 |
commit | 24877687b375f2c476ffb726ea915fc85df09e3d (patch) | |
tree | c196fec3dee5abfe735f3d729c65230caa28de13 /tools/thermal | |
parent | e5bcf0e8791375a720a5232a6c377240f85d08c2 (diff) |
net: stmmac: fix CBS idleslope and sendslope calculation
When link speed is not 100 Mbps, port transmit rate and speed divider
are set to 8 and 1000000 respectively. These values are incorrect for
CBS idleslope and sendslope HW values calculation if the link speed is
not 1 Gbps.
This patch adds switch statement to set the values of port transmit rate
and speed divider for 10 Gbps, 5 Gbps, 2.5 Gbps, 1 Gbps, and 100 Mbps.
Note that CBS is not supported at 10 Mbps.
Fixes: bc41a6689b30 ("net: stmmac: tc: Remove the speed dependency")
Fixes: 1f705bc61aee ("net: stmmac: Add support for CBS QDISC")
Signed-off-by: Song, Yoong Siang <yoong.siang.song@intel.com>
Link: https://lore.kernel.org/r/1613655653-11755-1-git-send-email-yoong.siang.song@intel.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/thermal')
0 files changed, 0 insertions, 0 deletions