RDMA/mlx4: Enable querying AH for XRC QP types
authorAvihai Horon <avihaih@nvidia.com>
Sun, 15 Nov 2020 12:14:25 +0000 (14:14 +0200)
committerJason Gunthorpe <jgg@nvidia.com>
Thu, 26 Nov 2020 15:58:19 +0000 (11:58 -0400)
commit8138a4c21b090ae400916a9fdf0e59296aae01c6
tree9655e0938f824919d996713a53c17268b505905f
parentf957d4d09a5ff79b0f7d29fb60ba7682260e58a5
RDMA/mlx4: Enable querying AH for XRC QP types

Address handle is set for connected QP types such as RC and UC, and thus
can also be queried.

Since XRC QP types INI and TGT are connected, it should be possible to
query their address handle as well.

Until now it was not the case, and although the firmware supported it, the
driver allowed querying the address handle only for RC and UC.

Hence, we enable it now for INI and TGT QPs as well.

Link: https://lore.kernel.org/r/20201115121425.139833-3-leon@kernel.org
Reviewed-by: Maor Gottlieb <maorg@nvidia.com>
Signed-off-by: Avihai Horon <avihaih@nvidia.com>
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/mlx4/qp.c