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

Introduce helper rdma_cap_ib_mad() to help us check if the port of an
IB device support Infiniband Management Datagrams.

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