RDMA/rxe: Add ib_device_get_by_name() and use it in rxe
authorJason Gunthorpe <jgg@mellanox.com>
Wed, 13 Feb 2019 04:12:55 +0000 (21:12 -0700)
committerJason Gunthorpe <jgg@mellanox.com>
Wed, 20 Feb 2019 03:52:18 +0000 (20:52 -0700)
commit6cc2c8e535ec19153714cee62e11e4d9ac2ea953
tree0c9f07b2e1b2e1249d6bbafda3d9557a6074ee49
parentc367074b6c37c2d2d45cb60a15b829eefbcee0f1
RDMA/rxe: Add ib_device_get_by_name() and use it in rxe

rxe has an open coded version of this that is not as safe as the core
version. This lets us eliminate the internal device list entirely from
rxe.

Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/core/device.c
drivers/infiniband/sw/rxe/rxe.c
drivers/infiniband/sw/rxe/rxe.h
drivers/infiniband/sw/rxe/rxe_net.c
drivers/infiniband/sw/rxe/rxe_sysfs.c
drivers/infiniband/sw/rxe/rxe_verbs.h