]> git.baikalelectronics.ru Git - kernel.git/commit
IB/core: Map iWarp AH type to undefined in rdma_ah_find_type
authorDon Hiatt <don.hiatt@intel.com>
Thu, 1 Feb 2018 18:57:03 +0000 (10:57 -0800)
committerJason Gunthorpe <jgg@mellanox.com>
Thu, 1 Feb 2018 22:43:31 +0000 (15:43 -0700)
commitee188f1c80a55e089cf237e52ee97dc9330d31cd
tree3bee6322911da075f1c51a438958b2e4d2dfbf9b
parentc9a0a62d1e7720dc875c041b18d8ee496c0be757
IB/core: Map iWarp AH type to undefined in rdma_ah_find_type

iWarp devices do not support the creation of address handles
so return AH_ATTR_TYPE_UNDEFINED for all iWarp devices.

While we are here reduce the size of port_num to u8 and add
a comment.

Fixes: 2330739532f9 ("IB/core: Define 'ib' and 'roce' rdma_ah_attr types")
Reported-by: Parav Pandit <parav@mellanox.com>
CC: Sean Hefty <sean.hefty@intel.com>
Reviewed-by: Ira Weiny <ira.weiny@intel.com>
Reviewed-by: Shiraz Saleem <shiraz.saleem@intel.com>
Signed-off-by: Don Hiatt <don.hiatt@intel.com>
Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
include/rdma/ib_verbs.h