]> 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)
commit3b2d874476aec2151b18041e4a9610d450b840f5
treee5c10416515e173b0506ad8150569ce205522bb6
parent98e8da2348a87fe132e4f01718144254f9e7fb58
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: f94c04540221 ("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