]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net/mlx5: Get vport ACL namespace by vport index
authorJianbo Liu <jianbol@mellanox.com>
Tue, 25 Jun 2019 17:47:52 +0000 (17:47 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 26 Jul 2019 07:12:44 +0000 (09:12 +0200)
commite00660b6e50510f6490b33ac8120799624e738db
treed9dc02e266e0993a6dda78297db78d3db1157649
parentc0cb5eaba454f3ec727b0a1a3a10cf8848ee346c
net/mlx5: Get vport ACL namespace by vport index

[ Upstream commit f53297d67800feb5fafd94abd926c889aefee690 ]

The ingress and egress ACL root namespaces are created per vport and
stored into arrays. However, the vport number is not the same as the
index. Passing the array index, instead of vport number, to get the
correct ingress and egress acl namespace.

Fixes: 9b93ab981e3b ("net/mlx5: Separate ingress/egress namespaces for each vport")
Signed-off-by: Jianbo Liu <jianbol@mellanox.com>
Reviewed-by: Oz Shlomo <ozsh@mellanox.com>
Reviewed-by: Eli Britstein <elibr@mellanox.com>
Reviewed-by: Roi Dayan <roid@mellanox.com>
Reviewed-by: Mark Bloch <markb@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c