IB/Verbs: Use management helper rdma_cap_ib_smi()
authorMichael Wang <yun.wang@profitbricks.com>
Tue, 5 May 2015 12:50:33 +0000 (14:50 +0200)
committerDoug Ledford <dledford@redhat.com>
Mon, 18 May 2015 17:35:05 +0000 (13:35 -0400)
commit29541e3add4d03682b78311823a5426e82019cda
treedc8737b13bc6ef479d34896cfa8e082ae566648c
parentc757dea816407dc472452091e3ea941cef6638a2
IB/Verbs: Use management helper rdma_cap_ib_smi()

Introduce helper rdma_cap_ib_smi() to help us check if the port of an
IB device support Infiniband Subnet Management Interface.

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/agent.c
drivers/infiniband/core/mad.c
include/rdma/ib_verbs.h