diff options
author | Guangbin Huang <huangguangbin2@huawei.com> | 2021-08-28 14:55:18 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-08-28 11:20:05 +0100 |
commit | aec35aecc3ccc822b358e2594ff70ff54245261e (patch) | |
tree | 689179ee84695a26086d3174ee73d683c66f18c4 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 81414ba71356b174d62370195a2bb99592e1b2a2 (diff) |
net: hns3: add new function hclge_get_speed_bit()
Currently, function hclge_check_port_speed() uses switch/case statement
to get speed bit according to speed. To reuse this part of code and
improve code readability and maintainability, add a new function
hclge_get_speed_bit() to get speed bit according to map relationship
of speed and speed bit defined in array speed_bit_map.
Signed-off-by: Guangbin Huang <huangguangbin2@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions