diff options
author | Jian Shen <shenjian15@huawei.com> | 2021-05-31 10:38:41 +0800 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2021-05-31 22:53:07 -0700 |
commit | 060e9accaa743d701e653213651cf3feee1ae921 (patch) | |
tree | 070a09eb194eb09f1887f790a221c846819a2e59 /net/netrom | |
parent | 132023de7149e7dde4b457328cb233dc58561b54 (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 <shenjian15@huawei.com>
Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/netrom')
0 files changed, 0 insertions, 0 deletions