IB/mlx5: Fix DEVX support for MLX5_CMD_OP_INIT2INIT_QP command
authorMark Zhang <markz@mellanox.com>
Wed, 27 May 2020 13:57:03 +0000 (16:57 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 24 Jun 2020 15:48:27 +0000 (17:48 +0200)
commit6f9dc02c8c1028e89c24179f5025fde8e6d110e9
tree1be6257d91a74b9af8493208d900cdac21d685e3
parent70205f1ecba9dc0a7b9479139a040d1ceb15a002
IB/mlx5: Fix DEVX support for MLX5_CMD_OP_INIT2INIT_QP command

[ Upstream commit d246a3061528be6d852156d25c02ea69d6db7e65 ]

The commit citied in the Fixes line wasn't complete and solved
only part of the problems. Update the mlx5_ib to properly support
MLX5_CMD_OP_INIT2INIT_QP command in the DEVX, that is required when
modify the QP tx_port_affinity.

Fixes: 819f7427bafd ("RDMA/mlx5: Add init2init as a modify command")
Link: https://lore.kernel.org/r/20200527135703.482501-1-leon@kernel.org
Signed-off-by: Mark Zhang <markz@mellanox.com>
Reviewed-by: Maor Gottlieb <maorg@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/infiniband/hw/mlx5/devx.c