]> 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)
commit8b2f5590ad2b7c2f103002917ab747b06a9c7fad
tree2b31e51f4f450877f82a6c3dc9f29ddeccf94512
parent09bc2df1dacc1850646fabe4d4d766ef04489743
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: 24e686bbf38d ("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