]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: fix for VLAN config when reset failed
authorGuojia Liao <liaoguojia@huawei.com>
Tue, 28 Jul 2020 02:16:52 +0000 (10:16 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 28 Jul 2020 19:54:48 +0000 (12:54 -0700)
commit4e33729b8355636abb492e196d33c8b30de27a72
treee5c10416515e173b0506ad8150569ce205522bb6
parent1e283057937ef0f0a4d4b071370b50e4a7b15a31
net: hns3: fix for VLAN config when reset failed

When device is resetting or reset failed, firmware is unable to
handle mailbox. VLAN should not be configured in this case.

Fixes: 71e2f6111c2f ("net: hns3: sync VLAN filter entries when kill VLAN ID failed")
Signed-off-by: Guojia Liao <liaoguojia@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
drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c