On Thu, Jan 18, 2007 at 12:17:35PM -0600, Tom Tucker wrote:
 
> Does changing the size of the structure break the ABI?

ib_user_mad_hdr is 56 bytes long, that is already a multiple of 8 so
.data is already aligned on 8. Thus the size of ib_user_mad does not
change and there is no ABI concern here.

__u64 data[0] is still 0 size, just like __u8 data[0].

Really all that happens is that the compiler will mark ib_user_mad as
requiring 8 byte alignment on ia64/etc and 4 byte on x86-64/etc, which
gets you the pad you need in the ib_umad_packet structure.

Jason

_______________________________________________
openib-general mailing list
openib-general@openib.org
http://openib.org/mailman/listinfo/openib-general

To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general

Reply via email to