]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: fix duplicate node in VLAN list
authorGuojia Liao <liaoguojia@huawei.com>
Thu, 26 Aug 2021 11:21:58 +0000 (19:21 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 3 Sep 2021 08:08:14 +0000 (10:08 +0200)
commit9d53a54cdb2032bbd3c404f6151f187839cd2e48
tree07e04f43a1f0d0c9e55f9fff4f6dd0d79d382931
parent229e16be195d31787a0d1edc4ae5aaac7f8c2346
net: hns3: fix duplicate node in VLAN list

[ Upstream commit 94391fae82f71c98ecc7716a32611fcca73c74eb ]

VLAN list should not be added duplicate VLAN node, otherwise it would
cause "add failed" when restore VLAN from VLAN list, so this patch adds
VLAN ID check before adding node into VLAN list.

Fixes: bbafec232ed3 ("net: hns3: Record VF vlan tables")
Signed-off-by: Guojia Liao <liaoguojia@huawei.com>
Signed-off-by: Guangbin Huang <huangguangbin2@huawei.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c