numam-dpdk/drivers
Chengchang Tang c1ecff85d1 net/hns3: fix deleting default VLAN from PF
Currently, the default VLAN (vlan id 0) will never be deleted from the
hardware VLAN table based on hns3 PF device. As a result, even a
non-zero PVID is set by calling rte_eth_dev_set_vlan_pvid based on hns3
PF device, packets with VLAN 0 and without VLAN are still received by PF
driver in Rx direction.

This patch deletes the restriction that VLAN 0 cannot be removed in PVID
configuration to ensure packets without PVID will be filtered when PVID
is set. And the patch adds VLAN 0 to the soft list when initializing
vlan configuration to ensure that VLAN 0 will be deleted from the
hardware VLAN table when device is closed.

Fixes: 411d23b9ea ("net/hns3: support VLAN")
Cc: stable@dpdk.org

Signed-off-by: Chengchang Tang <tangchengchang@huawei.com>
Signed-off-by: Wei Hu (Xavier) <xavier.huwei@huawei.com>
2020-09-30 19:19:10 +02:00
..
baseband mbuf: remove deprecated function and macro aliases 2020-09-19 00:25:37 +02:00
bus bus/pci: fix mapping BAR containing MSI-X table 2020-09-28 11:39:14 +02:00
common common/octeontx2: upgrade mbox definition to version 9 2020-09-30 19:19:09 +02:00
compress mbuf: remove deprecated function and macro aliases 2020-09-19 00:25:37 +02:00
crypto eal: remove deprecated coherent IO memory barriers 2020-09-23 13:40:26 +02:00
event eal: remove deprecated coherent IO memory barriers 2020-09-23 13:40:26 +02:00
mempool build: remove makefiles 2020-09-08 00:09:50 +02:00
net net/hns3: fix deleting default VLAN from PF 2020-09-30 19:19:10 +02:00
raw eal: remove deprecated coherent IO memory barriers 2020-09-23 13:40:26 +02:00
regex eal: remove deprecated coherent IO memory barriers 2020-09-23 13:40:26 +02:00
vdpa vdpa/mlx5: fix completion queue polling 2020-09-18 18:55:12 +02:00
meson.build common/mlx5: introduce layer for multiple class drivers 2020-07-28 19:01:11 +02:00