diff options
author | 2021-08-28 14:55:16 +0800 | |
---|---|---|
committer | 2021-08-28 11:20:05 +0100 | |
commit | e1d93bc6ef3bf497675f9ac2b35b79c48577b970 (patch) | |
tree | d680cceb76f019f4f0a25809201b3f6da3777077 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | net: hns3: add trace event in hclge_gen_resp_to_vf() (diff) | |
download | wireguard-linux-e1d93bc6ef3bf497675f9ac2b35b79c48577b970.tar.xz wireguard-linux-e1d93bc6ef3bf497675f9ac2b35b79c48577b970.zip |
net: hns3: refactor function hclge_parse_capability()
The function hclge_parse_capability() uses too many if statement, and
it may add more in the future. To improve code readability, maintainability
and simplicity, refactor this function by using a bit mapping array of IMP
capabilities and driver capabilities.
Signed-off-by: Guangbin Huang <huangguangbin2@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions