]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/mlx5: Fix remote gid value in query QP
authorMaor Gottlieb <maorg@mellanox.com>
Thu, 18 Jun 2020 11:25:07 +0000 (14:25 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Thu, 18 Jun 2020 17:42:27 +0000 (14:42 -0300)
commitf1cda462ff1b4397027ef8e404211a920462e23d
tree247e78b17ab46f1b0e597137ad4e5328097e0515
parent938017af11c6e61d7eda81d8b12226f87e3a3e72
RDMA/mlx5: Fix remote gid value in query QP

Remote gid is not copied to the right address. Fix it by using
rdma_ah_set_dgid_raw to copy the remote gid value from the QP context on
query QP.

Fixes: 9f7081b099ae ("RDMA/mlx5: Remove manually crafted QP context the query call")
Link: https://lore.kernel.org/r/20200618112507.3453496-3-leon@kernel.org
Signed-off-by: Maor Gottlieb <maorg@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/mlx5/qp.c