Skip to content

Commit 9eda7d8

Browse files
Guangbin Huangdavem330
authored andcommitted
net: hns3: set port base vlan tbl_sta to false before removing old vlan
When modify port base vlan, the port base vlan tbl_sta needs to set to false before removing old vlan, to indicate this operation is not finish. Fixes: c0f46de ("net: hns3: fix port base vlan add fail when concurrent with reset") Signed-off-by: Guangbin Huang <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 6f0e1ef commit 9eda7d8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10117,6 +10117,7 @@ static int hclge_modify_port_base_vlan_tag(struct hclge_vport *vport,
1011710117
if (ret)
1011810118
return ret;
1011910119

10120+
vport->port_base_vlan_cfg.tbl_sta = false;
1012010121
/* remove old VLAN tag */
1012110122
if (old_info->vlan_tag == 0)
1012210123
ret = hclge_set_vf_vlan_common(hdev, vport->vport_id,

0 commit comments

Comments
 (0)