IB/core: Move rdma_is_upper_dev_rcu to header file
authorMatan Barak <matanb@mellanox.com>
Wed, 23 Dec 2015 12:56:52 +0000 (14:56 +0200)
committerDoug Ledford <dledford@redhat.com>
Wed, 23 Dec 2015 15:35:12 +0000 (10:35 -0500)
commit6020d7e5004cc8591d61d449e9285a6f08279541
treeb37568ba7c8c3180ca1de0791bcea3286f4fcb06
parentc865f24628b9310e1815d59f723a34ea3df4890f
IB/core: Move rdma_is_upper_dev_rcu to header file

In order to validate the route, we need an easy way to check if a
net-device belongs to our RDMA device. Move this helper function
to a header file in order to make this check easier.

Signed-off-by: Matan Barak <matanb@mellanox.com>
Reviewed-by: Haggai Eran <haggaie@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/core/core_priv.h
drivers/infiniband/core/roce_gid_mgmt.c