]> git.baikalelectronics.ru Git - kernel.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)
committerSaeed Mahameed <saeedm@mellanox.com>
Wed, 26 Jun 2019 19:01:28 +0000 (12:01 -0700)
commit8e4102d8ba6d73f7cb622302328a9eda28f4ca07
tree0c4c8c0fb901d2198754c31642872cf0ad871a51
parent6ef3d3e04e71f9de1c5c8244f3228c2c7871d30c
net/mlx5: Get vport ACL namespace by vport index

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: 684e4457aa6b ("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>
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c