Skip to content
Snippets Groups Projects
Commit 0f2dcade authored by Mark Zhang's avatar Mark Zhang Committed by Saeed Mahameed
Browse files

net/mlx5: Use port_num 1 instead of 0 when delete a RoCE address


In multi-port mode, FW reports syndrome 0x2ea48 (invalid vhca_port_number)
if the port_num is not 1 or 2.

Fixes: 80f09dfc ("net/mlx5: Eswitch, enable RoCE loopback traffic")
Signed-off-by: default avatarMark Zhang <markzhang@nvidia.com>
Reviewed-by: default avatarMaor Gottlieb <maorg@nvidia.com>
Signed-off-by: default avatarSaeed Mahameed <saeedm@nvidia.com>
parent 9c9be85f
No related branches found
No related tags found
No related merge requests found
...@@ -116,7 +116,7 @@ static int mlx5_rdma_enable_roce_steering(struct mlx5_core_dev *dev) ...@@ -116,7 +116,7 @@ static int mlx5_rdma_enable_roce_steering(struct mlx5_core_dev *dev)
static void mlx5_rdma_del_roce_addr(struct mlx5_core_dev *dev) static void mlx5_rdma_del_roce_addr(struct mlx5_core_dev *dev)
{ {
mlx5_core_roce_gid_set(dev, 0, 0, 0, mlx5_core_roce_gid_set(dev, 0, 0, 0,
NULL, NULL, false, 0, 0); NULL, NULL, false, 0, 1);
} }
static void mlx5_rdma_make_default_gid(struct mlx5_core_dev *dev, union ib_gid *gid) static void mlx5_rdma_make_default_gid(struct mlx5_core_dev *dev, union ib_gid *gid)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment