OSDN Git Service

RDMA/rxe: Use ib_device_get_by_netdev() instead of open coding
authorJason Gunthorpe <jgg@mellanox.com>
Wed, 13 Feb 2019 04:12:52 +0000 (21:12 -0700)
committerJason Gunthorpe <jgg@mellanox.com>
Wed, 20 Feb 2019 03:52:18 +0000 (20:52 -0700)
commit4c173f596b3ffe6b967f5818043665c565648809
tree1d9b0ed94af0ecbaf11417a48895e8ee7134e325
parent324e227ea7c952626abafe72db42ae0d70220a6e
RDMA/rxe: Use ib_device_get_by_netdev() instead of open coding

The core API handles the locking correctly and is faster if there are
multiple devices.

Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
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.c