OSDN Git Service

net: hns3: refactor out hclge_set_vf_vlan_common()
authorPeng Li <lipeng321@huawei.com>
Fri, 12 Feb 2021 03:21:05 +0000 (11:21 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 12 Feb 2021 21:13:15 +0000 (13:13 -0800)
commit88936e320c1a9971b6b78a38e6bf737e43744f5e
tree8920623546b6e566f0e3c25bac222eb4c492a2c1
parenteaede835675cbae3b84309255f81e9a5e1b502a2
net: hns3: refactor out hclge_set_vf_vlan_common()

To improve code readability and maintainability, separate
the command handling part and the status parsing part from
bloated hclge_set_vf_vlan_common().

Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c