]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: Fixes the default VLAN-id of PF
authorLipeng <lipeng321@huawei.com>
Tue, 19 Sep 2017 16:17:15 +0000 (17:17 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 19 Sep 2017 23:06:49 +0000 (16:06 -0700)
commita03f6314ce625ff67f48a30d3388a9a410f2c781
treed36c3f06644c921afd56bdd009aaaefe233b2770
parent10db0b286c7b632adb991a5398c073520b0282c0
net: hns3: Fixes the default VLAN-id of PF

When there is no vlan id in the packets, hardware will treat the vlan id
as 0 and look for the mac_vlan table. This patch set the default vlan id
of PF as 0. Without this config, it will fail when look for mac_vlan
table, and hardware will drop packets.

Fixes: 6427264ef330 ("net: hns3: Add HNS3 Acceleration Engine &
Compatibility Layer Support")
Signed-off-by: Mingguang Qu <qumingguang@huawei.com>
Signed-off-by: Lipeng <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