]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: Fix for packet loss due wrong filter config in VLAN tbls
authorYunsheng Lin <linyunsheng@huawei.com>
Tue, 1 May 2018 18:56:04 +0000 (19:56 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 1 May 2018 19:08:38 +0000 (15:08 -0400)
commitd9cac08b3a13d565fd758dadbd4f0f74e304e2c8
treea8c2f542256e7865e3cf6a85cc3a246f3d17b683
parent51318616d9f379ed3739856fcfd700f965f92c1c
net: hns3: Fix for packet loss due wrong filter config in VLAN tbls

There are two level of vlan tables in hardware, one is port vlan
which is shared by all functions, the other one is function
vlan table, each function has it's own function vlan table.
Currently, PF sets the port vlan table, and vf sets the function
vlan table, which will cause packet lost problem.

This patch fixes this problem by setting both vlan table, and
use hdev->vlan_table to manage thet port vlan table.

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
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.h
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c