]> 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)
commit0bbd1af5917bf138afddea9d28c9c317edf80b92
treea500c90d8df51d0a158d15600e3bc820c12288c8
parente329520dd582e4a1bd4684172d6dd06bc6192380
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: ffe481f08210 ("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