diff options
author | Guangbin Huang <huangguangbin2@huawei.com> | 2021-08-28 14:55:17 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-08-28 11:20:05 +0100 |
commit | 81414ba71356b174d62370195a2bb99592e1b2a2 (patch) | |
tree | 3bc75783b55a11045b3f431310b181715a9b6c0b /tools/perf/scripts/python/export-to-postgresql.py | |
parent | e1d93bc6ef3bf497675f9ac2b35b79c48577b970 (diff) |
net: hns3: refactor function hclgevf_parse_capability()
The function hclgevf_parse_capability() will add more if statement 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