mirror of
https://github.com/torvalds/linux.git
synced 2026-05-28 00:53:34 +02:00
net/mlx5: E-Switch, Use RoCE version 2 for loopback traffic
Could be port initializing eswitch doesn't support RoCE version 1 but all ports should support RoCE version 2. Signed-off-by: Roi Dayan <roid@nvidia.com> Reviewed-by: Maor Gottlieb <maorg@nvidia.com> Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
This commit is contained in:
parent
3d7c5f78b8
commit
c24246d07a
|
|
@ -115,7 +115,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)
|
||||
{
|
||||
mlx5_core_roce_gid_set(dev, 0, 0, 0,
|
||||
mlx5_core_roce_gid_set(dev, 0, MLX5_ROCE_VERSION_2, 0,
|
||||
NULL, NULL, false, 0, 1);
|
||||
}
|
||||
|
||||
|
|
@ -135,7 +135,7 @@ static int mlx5_rdma_add_roce_addr(struct mlx5_core_dev *dev)
|
|||
|
||||
mlx5_rdma_make_default_gid(dev, &gid);
|
||||
return mlx5_core_roce_gid_set(dev, 0,
|
||||
MLX5_ROCE_VERSION_1,
|
||||
MLX5_ROCE_VERSION_2,
|
||||
0, gid.raw, mac,
|
||||
false, 0, 1);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user