]> git.baikalelectronics.ru Git - 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)
committerJason Gunthorpe <jgg@mellanox.com>
Mon, 15 Jan 2018 22:33:21 +0000 (15:33 -0700)
commit561e32ca0a56efbe44da8f33fbe619062c009427
tree8430cb261887242c9088e4fa672871d261af3292
parentfdf491991208020914612e19df9f99d72cd71547
RDMA/core: Clarify rdma_ah_find_type

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: fdc0d584db03 ("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>
include/rdma/ib_verbs.h