aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorJian Shen <[email protected]>2021-05-31 10:38:41 +0800
committerJakub Kicinski <[email protected]>2021-05-31 22:53:07 -0700
commit060e9accaa743d701e653213651cf3feee1ae921 (patch)
tree070a09eb194eb09f1887f790a221c846819a2e59 /tools/perf/scripts/python
parent132023de7149e7dde4b457328cb233dc58561b54 (diff)
net: hns3: refine function hclge_set_vf_vlan_cfg()
The struct hclge_vf_vlan_cfg is firstly designed for setting VLAN filter tag. And it's reused for enable RX VLAN offload later. It's strange to use member "is_kill" to indicate "enable". So redefine the struct hclge_vf_vlan_cfg to adapt it. For there are already 3 subcodes being used in function hclge_set_vf_vlan_cfg(), use "switch-case" style for each branch, rather than "if-else". Also simplify the assignment for each branch to make it more clearly. Signed-off-by: Jian Shen <[email protected]> Signed-off-by: Huazhong Tan <[email protected]> Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions