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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Mar 2020 06:19:01 +0000 (07:19 +0100)
commit15a4ad76485f21aefe221e23360f64be0126324b
treea71b3b015237d1f5f2341d36a06153fc890c91b0
parent52db97d314aae0c9d10f704ae4cebf5e9f84468d
net: hns3: clear port base VLAN when unload PF

[ Upstream commit 59359fc8a2f7af062777692e6a7aae73483729ec ]

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c