[openib-general] [PATCH 5 of 5] IB/mthca: give reserved MTTs a separate cache line

Michael S. Tsirkin mst at mellanox.co.il
Fri Jan 5 06:25:39 PST 2007


> Second, isn't reserved_mtts in units of 64 bytes, not sizeof(u64)?

Let's focus on this comment first.
We have at offset 28 bytes:                     
	Log (base 2) of the number of MTT segments reserved for firmware use

And we have
        MTHCA_GET(field, outbox, QUERY_DEV_LIM_RSVD_MTT_OFFSET);
        dev_lim->reserved_mtts = 1 << (field >> 4);

So it seems reserved_mtts is the number of reserved MTTs and each
MTT is 64 bit. Correct?

-- 
MST




More information about the general mailing list