> 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.
--
MST
_______________________________________________
openib-general mailing list
[email protected]
http://openib.org/mailman/listinfo/openib-general
To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general