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)
commit5e43aef8491ae3b5feb79cd15260faf39303ef33
treed36c3f06644c921afd56bdd009aaaefe233b2770
parentfbbb1536b220eb4f4f95cbceae6579489a8adad5
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