]> 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)
commit87d9446f883da81d2bc8df3be2a9446c02a72907
treea8c2f542256e7865e3cf6a85cc3a246f3d17b683
parent2c5e1273207ed29d578cc978ae49e040be60d0af
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