IB/core: Add ability for drivers to report an alternate MAD size.
[sfrench/cifs-2.6.git] / drivers / infiniband / hw / ehca / ehca_main.c
index c0e45a46504bcb545cda89266851fdfdb2f23498..8246418cd4e085352f31954dc876c303a0b10daa 100644 (file)
@@ -46,6 +46,7 @@
 
 #include <linux/notifier.h>
 #include <linux/memory.h>
+#include <rdma/ib_mad.h>
 #include "ehca_classes.h"
 #include "ehca_iverbs.h"
 #include "ehca_mrmw.h"
@@ -444,6 +445,7 @@ static int ehca_port_immutable(struct ib_device *ibdev, u8 port_num,
        immutable->pkey_tbl_len = attr.pkey_tbl_len;
        immutable->gid_tbl_len = attr.gid_tbl_len;
        immutable->core_cap_flags = RDMA_CORE_PORT_IBA_IB;
+       immutable->max_mad_size = IB_MGMT_MAD_SIZE;
 
        return 0;
 }