[openib-general] mthca adjust_key()

Jesse Butler Jesse.Butler at Sun.COM
Thu Feb 22 10:27:12 PST 2007


Could anyone tell me why this routine in mthca is necessary?  There 
aren't any comments to explain it; I'm wondering if this is a workaround 
for Sinai of some kind?

static inline u32 adjust_key(struct mthca_dev *dev, u32 key)
{
    if (dev->mthca_flags & MTHCA_FLAG_SINAI_OPT)
        return ((key << 20) & 0x800000) | (key & 0x7fffff);
    else
        return key;
}

Thanks in advance,
Jesse







More information about the general mailing list