OSDN Git Service

IB/Verbs: Reform cma_acquire_dev()
authorMichael Wang <yun.wang@profitbricks.com>
Tue, 5 May 2015 12:50:30 +0000 (14:50 +0200)
committerDoug Ledford <dledford@redhat.com>
Mon, 18 May 2015 17:35:05 +0000 (13:35 -0400)
commit7c11147da2f1a1f14f9b6b307e80d5c0617b88e6
treea0b7b3729213adf0be6081259a1f50fdbdf9ac92
parent5c9a52828a9d2ebbfc91f1d97e8c9b647f9923f0
IB/Verbs: Reform cma_acquire_dev()

Reform cma_acquire_dev() with management helpers, introduce
cma_validate_port() to make the code more clean.

Signed-off-by: Michael Wang <yun.wang@profitbricks.com>
Reviewed-by: Ira Weiny <ira.weiny@intel.com>
Tested-by: Ira Weiny <ira.weiny@intel.com>
Reviewed-by: Sean Hefty <sean.hefty@intel.com>
Reviewed-by: Jason Gunthorpe <jgunthorpe@obsidianresearch.com>
Tested-by: Doug Ledford <dledford@redhat.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/core/cma.c