]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
net: hns3: fix software vlan talbe of vlan 0 inconsistent with hardware
authorGuangbin Huang <huangguangbin2@huawei.com>
Wed, 30 Mar 2022 13:45:06 +0000 (21:45 +0800)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 31 Mar 2022 09:39:59 +0000 (11:39 +0200)
commit7ed258f12ec5ce855f15cdfb5710361dc82fe899
tree97f2ee4097a25f1dab741d4d69dd0034059ebfbf
parent9c9a04212fa380d2e7d1412bb281309955c0a781
net: hns3: fix software vlan talbe of vlan 0 inconsistent with hardware

When user delete vlan 0, as driver will not delete vlan 0 for hardware in
function hclge_set_vlan_filter_hw(), so vlan 0 in software vlan talbe should
not be deleted.

Fixes: fe4144d47eef ("net: hns3: sync VLAN filter entries when kill VLAN ID failed")
Signed-off-by: Guangbin Huang <huangguangbin2@huawei.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c