diff options
author | 2015-06-06 14:38:29 -0400 | |
---|---|---|
committer | 2015-06-12 14:49:17 -0400 | |
commit | 337877a466bb8b0c51f4fa727eeef7d734665632 (patch) | |
tree | 3d05512e358f2fe92e15db23a2b7bc18312f116b /include/rdma/ib_mad.h | |
parent | IB/mad: Support alternate Base Versions when creating MADs (diff) | |
download | linux-337877a466bb8b0c51f4fa727eeef7d734665632.tar.gz linux-337877a466bb8b0c51f4fa727eeef7d734665632.tar.bz2 linux-337877a466bb8b0c51f4fa727eeef7d734665632.zip |
IB/core: Add ability for drivers to report an alternate MAD size.
Add max MAD size to the device immutable data set and have all drivers that
support MADs report the current IB MAD size (IB_MGMT_MAD_SIZE) to the core.
Verify MAD size data in both the MAD core and when reading the immutable data.
OPA drivers will report alternate MAD sizes in subsequent patches.
Signed-off-by: Ira Weiny <ira.weiny@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'include/rdma/ib_mad.h')
-rw-r--r-- | include/rdma/ib_mad.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/rdma/ib_mad.h b/include/rdma/ib_mad.h index bf03ce07c316..349880696abc 100644 --- a/include/rdma/ib_mad.h +++ b/include/rdma/ib_mad.h @@ -135,6 +135,7 @@ enum { IB_MGMT_SA_DATA = 200, IB_MGMT_DEVICE_HDR = 64, IB_MGMT_DEVICE_DATA = 192, + IB_MGMT_MAD_SIZE = IB_MGMT_MAD_HDR + IB_MGMT_MAD_DATA, }; struct ib_mad_hdr { |