> > Didn't an earlier patch make is possible to read the mad_size directly
> from the device?
> >
>
> Not exactly, that patch specified the "max_mad_size" the device supported.
>
> OPA devices support IB MADs. If the IB Base Version is specified on an
> OPA
> device the IB MAD size is to be used
On Fri, Apr 03, 2015 at 05:40:22PM -0600, Hefty, Sean wrote:
> > @@ -937,20 +937,31 @@ struct ib_mad_send_buf * ib_create_send_mad(struct
> > ib_mad_agent *mad_agent,
> > struct ib_mad_send_wr_private *mad_send_wr;
> > int pad, message_size, ret, size;
> > void *buf;
> > + size_t mad_
> @@ -937,20 +937,31 @@ struct ib_mad_send_buf * ib_create_send_mad(struct
> ib_mad_agent *mad_agent,
> struct ib_mad_send_wr_private *mad_send_wr;
> int pad, message_size, ret, size;
> void *buf;
> + size_t mad_size;
> + int opa;
>
> mad_agent_priv = container_of(m