]> asedeno.scripts.mit.edu Git - linux.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)
commit7249c8ea227a582c14f63e9e8853eb7369122f10
treea500c90d8df51d0a158d15600e3bc820c12288c8
parent7c39f7f671d2acc0a1f39ebbbee4303ad499bbfa
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: 5d6ff1babe78 ("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