IB/core: Add OPA MAD core capability flag
authorIra Weiny <ira.weiny@intel.com>
Sat, 6 Jun 2015 18:38:32 +0000 (14:38 -0400)
committerDoug Ledford <dledford@redhat.com>
Fri, 12 Jun 2015 18:49:17 +0000 (14:49 -0400)
commit65995fee842fd9f1427b62be24053846d9c32102
tree13fa6c4fc58ecfc9d6850017a51e4892f413fa96
parent4cd7c9479aff33746af490fa4a5a7dee8654891a
IB/core: Add OPA MAD core capability flag

Add OPA MAD support flags to the core capability immutable flags.  In addition
add the rdma_cap_opa_mad helper function for core functions to use to detect
OPA MAD support.

OPA MADs share a common header with IBTA MADs but with some differences for
increased performance.

Sharing a common header with IBTA MADs allows us to share most of the MAD
processing code when dealing with OPA MADs in addition to supporting some IBTA
MADs on OPA devices.

OPA MADs differ in the following ways:

1) MADs are variable size up to 2K
   IBTA defined MADs remain fixed at 256 bytes
2) OPA SMPs must carry valid PKeys
3) OPA SMP packets are a different format

The MAD stack will use this new functionality to determine if OPA MAD
processing should occur on individual device ports.

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