IB/mlx5: Fix MODIFY_QP command input structure
authorArtemy Kovalyov <artemyko@mellanox.com>
Fri, 17 Jun 2016 12:33:31 +0000 (15:33 +0300)
committerDoug Ledford <dledford@redhat.com>
Thu, 23 Jun 2016 15:19:12 +0000 (11:19 -0400)
Make MODIFY_QP command input structure compliant to specification

Fixes: e126ba97dba9 ('mlx5: Add driver for Mellanox Connect-IB adapters')
Signed-off-by: Artemy Kovalyov <artemyko@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Doug Ledford <dledford@redhat.com>
include/linux/mlx5/qp.h

index 266320feb16037f414903daf712ed097c70ea9b8..acb28c989deeab587ed1ee6e169b274e19950caf 100644 (file)
@@ -555,9 +555,9 @@ struct mlx5_destroy_qp_mbox_out {
 struct mlx5_modify_qp_mbox_in {
        struct mlx5_inbox_hdr   hdr;
        __be32                  qpn;
-       u8                      rsvd1[4];
-       __be32                  optparam;
        u8                      rsvd0[4];
+       __be32                  optparam;
+       u8                      rsvd1[4];
        struct mlx5_qp_context  ctx;
        u8                      rsvd2[16];
 };