[ofa-general] Re: libmlx4 wc flash

Roland Dreier rdreier at cisco.com
Tue May 15 12:51:26 PDT 2007


 >  		memcpy(ctx->bf_page + ctx->bf_offset, ctrl, align(size * 16, 64));

By the way, why are we aligning the size of the WQE we copy to 64
bytes?  I copied this from Jack's code but I don't see anything that
requires it.  We already have:

	if (nreq == 1 && inl && size > 1 && size < ctx->bf_buf_size / 16) {

so we will always have at least 32 bytes to copy.

 - R.



More information about the general mailing list