diff options
author | Guangbin Huang <huangguangbin2@huawei.com> | 2021-08-28 14:55:16 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-08-28 11:20:05 +0100 |
commit | e1d93bc6ef3bf497675f9ac2b35b79c48577b970 (patch) | |
tree | d680cceb76f019f4f0a25809201b3f6da3777077 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 0fc36e37d5c0e940d6347e8c10a9fe2d8d5b0074 (diff) |
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 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions