linux/drivers/infiniband/hw
Saeed Mahameed 1a412fb1ca {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>
2016-08-17 17:45:58 +03:00
..
cxgb3 Merge branches 'cxgb4' and 'mlx5' into k.o/for-4.8 2016-08-03 20:58:45 -04:00
cxgb4 Merge branches 'cxgb4' and 'mlx5' into k.o/for-4.8 2016-08-03 20:58:45 -04:00
hfi1 Second round of merge items for 4.8 2016-08-04 20:26:31 -04:00
i40iw Round one of 4.8 code 2016-08-04 20:10:31 -04:00
mlx4 Round one of 4.8 code 2016-08-04 20:10:31 -04:00
mlx5 {net,IB}/mlx5: Modify QP commands via mlx5 ifc 2016-08-17 17:45:58 +03:00
mthca Merge branches 'misc' and 'rxe' into k.o/for-4.8-1 2016-08-04 11:13:47 -04:00
nes IB/nes: Support device FW version string 2016-06-23 12:08:34 -04:00
ocrdma IB/ocrdma: Support device FW version string 2016-06-23 12:08:34 -04:00
qib IB/qib, IB/hfi1: Fix grh creation in ud loopback 2016-08-02 16:00:58 -04:00
usnic IB/usnic: Support device FW version string 2016-06-23 12:08:34 -04:00
Makefile IB/hfi1: Move driver out of staging 2016-05-26 11:35:14 -04:00