]> git.baikalelectronics.ru Git - kernel.git/commit
IB/mlx5: Fix scatter to CQE in DCT QP creation
authorGuy Levi <guyle@mellanox.com>
Wed, 10 Apr 2019 07:59:45 +0000 (10:59 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Thu, 18 Apr 2019 06:13:41 +0000 (03:13 -0300)
commit05fd4388dc16fb9ff5e39e2adc2be5ace89ee7ca
treea500c90d8df51d0a158d15600e3bc820c12288c8
parent80d34e6143b3ffc9e39b6f6916e9fc71cb70f289
IB/mlx5: Fix scatter to CQE in DCT QP creation

When scatter to CQE is enabled on a DCT QP it corrupts the mailbox command
since it tried to treat it as as QP create mailbox command instead of a
DCT create command.

The corrupted mailbox command causes userspace to malfunction as the
device doesn't create the QP as expected.

A new mlx5 capability is exposed to user-space which ensures that it will
not enable the feature on DCT without this fix in the kernel.

Fixes: 52203247ccff ("IB/mlx5: Support scatter to CQE for DC transport type")
Signed-off-by: Guy Levi <guyle@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/mlx5/main.c
drivers/infiniband/hw/mlx5/qp.c
include/uapi/rdma/mlx5-abi.h