diff options
author | Haggai Abramovsky <hagaya@mellanox.com> | 2016-01-14 20:12:57 +0300 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2016-01-21 20:01:08 +0300 |
commit | cfb5e088e26ae0e12064171f645ed022cf6d55b9 (patch) | |
tree | 2bc007034ab67b4584285d320ecb96c555fe2531 /drivers/net/ethernet/mellanox/mlx5/core/srq.c | |
parent | dfbee8598d24668b882bcc97d28d5108441cc88a (diff) | |
download | linux-cfb5e088e26ae0e12064171f645ed022cf6d55b9.tar.xz |
IB/mlx5: Add CQE version 1 support to user QPs and SRQs
Enforce working with CQE version 1 when the user supports CQE
version 1 and asked to work this way.
If the user still works with CQE version 0, then use the default
CQE version to tell the Firmware that the user still works in the
older mode.
After this patch, the kernel still reports CQE version 0.
Signed-off-by: Haggai Abramovsky <hagaya@mellanox.com>
Reviewed-by: Matan Barak <matanb@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx5/core/srq.c')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlx5/core/srq.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/srq.c b/drivers/net/ethernet/mellanox/mlx5/core/srq.c index ffada801976b..ec5f901cfcfe 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/srq.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/srq.c @@ -241,8 +241,6 @@ static int create_xrc_srq_cmd(struct mlx5_core_dev *dev, memcpy(xrc_srqc, srqc, MLX5_ST_SZ_BYTES(srqc)); memcpy(pas, in->pas, pas_size); - /* 0xffffff means we ask to work with cqe version 0 */ - MLX5_SET(xrc_srqc, xrc_srqc, user_index, 0xffffff); MLX5_SET(create_xrc_srq_in, create_in, opcode, MLX5_CMD_OP_CREATE_XRC_SRQ); |