Commit 2c0f5292 authored by Leon Romanovsky's avatar Leon Romanovsky Committed by Jason Gunthorpe

RDMA/mlx5: Remove ECE limitation from the RAW_PACKET QPs

Like any other QP type, rely on FW for the RAW_PACKET QPs to decide if ECE
is supported or not. This fixes an inability to create RAW_PACKET QPs with
latest rdma-core with the ECE support.

Fixes: e383085c ("RDMA/mlx5: Set ECE options during QP create")
Link: https://lore.kernel.org/r/20200618112507.3453496-2-leon@kernel.orgSigned-off-by: default avatarLeon Romanovsky <leonro@mellanox.com>
Signed-off-by: default avatarJason Gunthorpe <jgg@mellanox.com>
parent d4433557
...@@ -2873,7 +2873,6 @@ static int mlx5_ib_destroy_dct(struct mlx5_ib_qp *mqp) ...@@ -2873,7 +2873,6 @@ static int mlx5_ib_destroy_dct(struct mlx5_ib_qp *mqp)
static int check_ucmd_data(struct mlx5_ib_dev *dev, static int check_ucmd_data(struct mlx5_ib_dev *dev,
struct mlx5_create_qp_params *params) struct mlx5_create_qp_params *params)
{ {
struct ib_qp_init_attr *attr = params->attr;
struct ib_udata *udata = params->udata; struct ib_udata *udata = params->udata;
size_t size, last; size_t size, last;
int ret; int ret;
...@@ -2885,14 +2884,7 @@ static int check_ucmd_data(struct mlx5_ib_dev *dev, ...@@ -2885,14 +2884,7 @@ static int check_ucmd_data(struct mlx5_ib_dev *dev,
*/ */
last = sizeof(struct mlx5_ib_create_qp_rss); last = sizeof(struct mlx5_ib_create_qp_rss);
else else
/* IB_QPT_RAW_PACKET doesn't have ECE data */ last = offsetof(struct mlx5_ib_create_qp, reserved);
switch (attr->qp_type) {
case IB_QPT_RAW_PACKET:
last = offsetof(struct mlx5_ib_create_qp, ece_options);
break;
default:
last = offsetof(struct mlx5_ib_create_qp, reserved);
}
if (udata->inlen <= last) if (udata->inlen <= last)
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment