commit | e46da6a3d4d390adaad4eb1471307156933954cc | [log] [tgz] |
---|---|---|
author | Guangbin Huang <huangguangbin2@huawei.com> | Mon Nov 29 22:00:22 2021 +0800 |
committer | David S. Miller <davem@davemloft.net> | Mon Nov 29 14:26:17 2021 +0000 |
tree | 97bf57ab540ed3305bfad6e0f9314f3c9f538b65 | |
parent | a4ae2bc0abd44032fee3d826bc145661983bdf4e [diff] |
net: hns3: refine function hclge_cfg_mac_speed_dup_hw() To reuse the code of converting speed of driver to speed of firmware in function hclge_cfg_mac_speed_dup_hw(), encapsulate them into a new function hclge_convert_to_fw_speed(). Signed-off-by: Guangbin Huang <huangguangbin2@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>