diff options
author | Or Har-Toov <ohartoov@nvidia.com> | 2023-03-19 13:59:32 +0100 |
---|---|---|
committer | Leon Romanovsky <leon@kernel.org> | 2023-03-23 09:21:13 +0100 |
commit | f4244e55e4c3a14374ea319b680f33d97cf6ba7e (patch) | |
tree | 7e6fdd2ea091eeb67aaa4da603b6e3d38a1868f4 /drivers | |
parent | RDMA/mlx5: Disable out-of-order in integrity enabled QPs (diff) | |
download | linux-f4244e55e4c3a14374ea319b680f33d97cf6ba7e.tar.xz linux-f4244e55e4c3a14374ea319b680f33d97cf6ba7e.zip |
net/mlx5: Set out of order (ooo) by default
When FW supports ooo by default, enable the cap.
Signed-off-by: Or Har-Toov <ohartoov@nvidia.com>
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Link: https://lore.kernel.org/r/00bd14bfb002ed2338de3296bcd9af27d4770b70.1679230449.git.leon@kernel.org
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlx5/core/main.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/main.c b/drivers/net/ethernet/mellanox/mlx5/core/main.c index f1de152a6113..9194f031a7be 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/main.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/main.c @@ -684,6 +684,9 @@ static int handle_hca_cap_roce(struct mlx5_core_dev *dev, void *set_ctx) MLX5_ST_SZ_BYTES(roce_cap)); MLX5_SET(roce_cap, set_hca_cap, sw_r_roce_src_udp_port, 1); + if (MLX5_CAP_ROCE_MAX(dev, qp_ooo_transmit_default)) + MLX5_SET(roce_cap, set_hca_cap, qp_ooo_transmit_default, 1); + err = set_caps(dev, set_ctx, MLX5_SET_HCA_CAP_OP_MOD_ROCE); return err; } |