net: hns3: clear port base VLAN when unload PF
authorJian Shen <shenjian15@huawei.com>
Thu, 12 Mar 2020 07:11:06 +0000 (15:11 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 12 Mar 2020 18:38:26 +0000 (11:38 -0700)
commit59359fc8a2f7af062777692e6a7aae73483729ec
tree2b31e51f4f450877f82a6c3dc9f29ddeccf94512
parent903b85d3adce99a5301d5959c4d3c9d14a7974d4
net: hns3: clear port base VLAN when unload PF

Currently, PF missed to clear the port base VLAN for VF when
unload. In this case, the VLAN id will remain in the VLAN
table. This patch fixes it.

Fixes: 92f11ea177cd ("net: hns3: fix set port based VLAN issue for VF")
Signed-off-by: Jian Shen <shenjian15@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