[ofa-general] Re: [RFC/PATCH] mthca: ensure alignment of doorbell writes

Roland Dreier rdreier at cisco.com
Mon Jul 30 13:30:40 PDT 2007


 > +union mthca_doorbell {
 > +	__be64 val64;
 > +	__be32 val32[2];
 > +} __attribute__ ((aligned (sizeof(__be64))));

would we get the same effect from just adding the __attribute__((aligned
to the declarations of the doorbell arrays?

I wonder how it would affect the generated code on various platforms
if we just made the doorbell values be computed as __be64 and then
passed that in to the write64 function...

 - R.



More information about the general mailing list