On Thu, 2007-01-18 at 19:50 +0200, Michael S. Tsirkin wrote: > > The int -> long change is needed because struct ib_umad_packet > > includes struct ib_user_mad (which has 4 byte alignment) but > > is then cast to struct ib_mad_hdr which has 8 byte alignment. > > But I thought it is the data field which is cast to ib_mad_hdr > and not ib_user_mad? If so Jason's suggestion of using > u64 data[0] > makes more sense.
That looks OK to me too. It would cover other MAD packet types like get/set GUIDs too. _______________________________________________ openib-general mailing list [email protected] http://openib.org/mailman/listinfo/openib-general To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general
