aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorGuangbin Huang <huangguangbin2@huawei.com>2021-08-28 14:55:16 +0800
committerDavid S. Miller <davem@davemloft.net>2021-08-28 11:20:05 +0100
commite1d93bc6ef3bf497675f9ac2b35b79c48577b970 (patch)
treed680cceb76f019f4f0a25809201b3f6da3777077 /tools/perf/scripts/python/export-to-postgresql.py
parent0fc36e37d5c0e940d6347e8c10a9fe2d8d5b0074 (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