aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorGuangbin Huang <[email protected]>2021-08-28 06:55:18 +0000
committerDavid S. Miller <[email protected]>2021-08-28 10:20:05 +0000
commitaec35aecc3ccc822b358e2594ff70ff54245261e (patch)
tree689179ee84695a26086d3174ee73d683c66f18c4 /net/unix/af_unix.c
parentnet: hns3: refactor function hclgevf_parse_capability() (diff)
downloadkernel-aec35aecc3ccc822b358e2594ff70ff54245261e.tar.gz
kernel-aec35aecc3ccc822b358e2594ff70ff54245261e.zip
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 <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions