summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJian Shen <shenjian15@huawei.com>2018-09-03 11:21:48 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-11-20 18:45:51 +0100
commitd01caf35564ce4de308797fddf84e4df5674fabd (patch)
treea45ee7af099ed97fd38a15acda4016f43c8feba1 /include
parent4aea8f76727e3c00c215307042335b07992c3204 (diff)
net: hns3: Fix error of checking used vlan id
[ Upstream commit 54e97d117bafa161b08c6ade243a335d92890d94 ] PF uses hdev->vlan_table to manage the port vlan table. In function hclge_set_vlan_filter_hw(), it checks whether a vlan id has been used, by foreach all the vport bits. It should use macro HCLGE_VPORT_NUM, not VLAN_N_VID as the foreach condition. Fixes: 6c251711b37f ("net: hns3: Disable vf vlan filter when vf vlan table is full") Signed-off-by: Jian Shen <shenjian15@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> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions