]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: Fix for vf vlan delete failed problem
authorYunsheng Lin <linyunsheng@huawei.com>
Mon, 3 Sep 2018 10:21:46 +0000 (11:21 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 4 Sep 2018 05:04:45 +0000 (22:04 -0700)
commit11b11e04e3424f0de611dbcde6259ac2f32f232f
treef22989ca5843067286ea66a545a1c29312e4a694
parent67d20dfb8f688187f6ed19379ad010e510b15c55
net: hns3: Fix for vf vlan delete failed problem

There are only 128 entries in vf vlan table, if user has added
more than 128 vlan, fw will ignore it and disable the vf vlan
table. So when user deletes the vlan entry that has not been
set to vf vlan table, fw will return not found result and driver
treat that as error, which will cause vlan delete failed problem.

This patch fixes it by returning ok when fw returns not found
result.

Fixes: 606ba47a5f7a ("net: hns3: Disable vf vlan filter when vf vlan table is full")
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