]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: Preserve vlan 0 in hardware table
authorYunsheng Lin <linyunsheng@huawei.com>
Mon, 3 Sep 2018 10:21:52 +0000 (11:21 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 4 Sep 2018 05:04:45 +0000 (22:04 -0700)
commitab481fdd1e4dc6986c212fb6db0ceb9d7ff6e9ac
treebc8476881a8d70adafcef9f995d068d6fb186b1e
parent72064b7b873d25e543a0eb4e6d68f5a976135429
net: hns3: Preserve vlan 0 in hardware table

When netdev is down, the stack will delete the vlan from
hardware including vlan0, which will cause problem when
doing loopback selftest when netdev is down.

This patch fixes it by always preserving vlan 0 in hardware,
because vlan 0 is defalut vlan, which should always be in
hardware.

Fixes: b598c1a72a4c ("net: hns3: Add mac loopback selftest support in hns3 driver")
Signed-off-by: Yunsheng Lin <linyunsheng@huawei.com>
Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: Salil Mehta <salil.mehta@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c