summaryrefslogtreecommitdiffstats
path: root/include/linux/mlx5/driver.h
diff options
context:
space:
mode:
authorSaeed Mahameed2016-07-19 17:03:21 +0200
committerLeon Romanovsky2016-08-17 16:45:58 +0200
commit1a412fb1caa2c1b77719ccb5ed8b0c3c2bc65da7 (patch)
tree3932dca111e30df6cebae0a31679cddff00ce06e /include/linux/mlx5/driver.h
parent{net,IB}/mlx5: QP/XRCD commands via mlx5 ifc (diff)
downloadkernel-qcow2-linux-1a412fb1caa2c1b77719ccb5ed8b0c3c2bc65da7.tar.gz
kernel-qcow2-linux-1a412fb1caa2c1b77719ccb5ed8b0c3c2bc65da7.tar.xz
kernel-qcow2-linux-1a412fb1caa2c1b77719ccb5ed8b0c3c2bc65da7.zip
{net,IB}/mlx5: Modify QP commands via mlx5 ifc
Prior to this patch we assumed that modify QP commands have the same layout. In ConnectX-4 for each QP transition there is a specific command and their layout can vary. e.g: 2err/2rst commands don't have QP context in their layout and before this patch we posted the QP context in those commands. Fortunately the FW only checks the suffix of the commands and executes them, while ignoring all invalid data sent after the valid command layout. This patch removes mlx5_modify_qp_mbox_in and changes mlx5_core_qp_modify to receive the required transition and QP context with opt_param_mask if needed. This way the caller is not required to provide the command inbox layout and it will be generated automatically. mlx5_core_qp_modify will generate the command inbox/outbox layouts according to the requested transition and will fill the requested parameters. Signed-off-by: Saeed Mahameed <saeedm@mellanox.com> Signed-off-by: Leon Romanovsky <leon@kernel.org>
Diffstat (limited to 'include/linux/mlx5/driver.h')
0 files changed, 0 insertions, 0 deletions