]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1a04f2c1364c657d1e79aa7d8ad61101741883d8
tree2b31e51f4f450877f82a6c3dc9f29ddeccf94512
parentecbd3128968379cb0707a444778abd035feffe82
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: a9f7d0434f47 ("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