IB/core: Create common start/end port functions
authorIra Weiny <ira.weiny@intel.com>
Thu, 14 May 2015 00:02:55 +0000 (20:02 -0400)
committerDoug Ledford <dledford@redhat.com>
Mon, 18 May 2015 17:35:06 +0000 (13:35 -0400)
commit0cf18d7723055709faf51b50f5a33253b480637f
tree4057c072cb7cd39f80c4d35f359010afd17f734f
parent296ec00995fb28c4e34b41f80b5a876f3a25c134
IB/core: Create common start/end port functions

Previously start_port and end_port were defined in 2 places, cache.c and
device.c and this prevented their use in other modules.

Make these common functions, change the name to reflect the rdma
name space, and update existing users.

Signed-off-by: Ira Weiny <ira.weiny@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/core/cache.c
drivers/infiniband/core/device.c
include/rdma/ib_verbs.h