]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
RDMA/core: Clarify rdma_ah_find_type
authorParav Pandit <parav@mellanox.com>
Fri, 12 Jan 2018 05:58:42 +0000 (07:58 +0200)
committerKhalid Elmously <khalid.elmously@canonical.com>
Wed, 6 Jun 2018 17:44:25 +0000 (13:44 -0400)
commit5f557c01ceddcb1d486f6f5e4f18625896613793
treeb6be8c190d94da3e94f877e2a7c8c06380c4cd61
parentdf92b316fa5b37f9706318299454da45096ce2ae
RDMA/core: Clarify rdma_ah_find_type

BugLink: http://bugs.launchpad.net/bugs/1774063
[ Upstream commit a6532e7139660c103dda181aa5b2c734aa26ed6c ]

iWARP does not use rdma_ah_attr_type, and for this reason we do not have a
RDMA_AH_ATTR_TYPE_IWARP. rdma_ah_find_type should not even be called on iwarp
ports and for clarity it shouldn't have a special test for iWarp.

This changes the result from RDMA_AH_ATTR_TYPE_ROCE to RDMA_AH_ATTR_TYPE_IB
when wrongly called on an iWarp port.

Fixes: 44c58487d51a ("IB/core: Define 'ib' and 'roce' rdma_ah_attr types")
Signed-off-by: Parav Pandit <parav@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
include/rdma/ib_verbs.h