RDMA/core: Refactor get link layer wrapper
authorLeon Romanovsky <leonro@mellanox.com>
Thu, 17 Aug 2017 12:50:39 +0000 (15:50 +0300)
committerDoug Ledford <dledford@redhat.com>
Thu, 24 Aug 2017 20:27:10 +0000 (16:27 -0400)
commit82901e3eb8f72326b06ac8c7285462d90cd3a56c
tree628fbcec9e95ef13f882d9086cfa8560afe78678
parentcdc596d89e39521cf412209a19b8baeb8d788cdc
RDMA/core: Refactor get link layer wrapper

The return values from rdma_node_get_transport() are strict
and IB_LINK_LAYER_UNSPECIFIED is unreachable in this flow.

Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Reviewed-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/core/verbs.c