aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/core/verbs.c
diff options
context:
space:
mode:
authorGal Pressman <galpress@amazon.com>2019-05-05 20:59:21 +0300
committerJason Gunthorpe <jgg@mellanox.com>2019-05-06 13:47:50 -0300
commitf95be3d28d891b0c0f339a504e3aa8e382bbd9a6 (patch)
treeef6bad8e3afc50c3a68b3392fb98c6ef62f34335 /drivers/infiniband/core/verbs.c
parentRDMA/umem: Remove hugetlb flag (diff)
downloadlinux-dev-f95be3d28d891b0c0f339a504e3aa8e382bbd9a6.tar.xz
linux-dev-f95be3d28d891b0c0f339a504e3aa8e382bbd9a6.zip
RDMA: Add EFA related definitions
Add EFA driver ID to the IOCTL interface uapi. This patch also adds unspecified node/transport type that will be used by EFA (usnic is left unchanged as it's already part of our ABI). Signed-off-by: Gal Pressman <galpress@amazon.com> Reviewed-by: Shiraz Saleem <shiraz.saleem@intel.com> Reviewed-by: Steve Wise <swise@opengridcomputing.com> Reviewed-by: Leon Romanovsky <leonro@mellanox.com> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'drivers/infiniband/core/verbs.c')
-rw-r--r--drivers/infiniband/core/verbs.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/infiniband/core/verbs.c b/drivers/infiniband/core/verbs.c
index a4e97dd3c4b6..e666a1f7608d 100644
--- a/drivers/infiniband/core/verbs.c
+++ b/drivers/infiniband/core/verbs.c
@@ -218,6 +218,8 @@ rdma_node_get_transport(enum rdma_node_type node_type)
return RDMA_TRANSPORT_USNIC_UDP;
if (node_type == RDMA_NODE_RNIC)
return RDMA_TRANSPORT_IWARP;
+ if (node_type == RDMA_NODE_UNSPECIFIED)
+ return RDMA_TRANSPORT_UNSPECIFIED;
return RDMA_TRANSPORT_IB;
}