[ofa-general] RE: [PATCH] IB/mad: Allow tuning of QP0 and QP1 sizes

Sean Hefty sean.hefty at intel.com
Wed Aug 12 10:09:58 PDT 2009


>+	mad_recvq_size = roundup_pow_of_two(mad_recvq_size);
>+	mad_recvq_size = min(mad_recvq_size, IB_MAD_QP_MAX_SIZE);
>+	mad_recvq_size = max(mad_recvq_size, IB_MAD_QP_MIN_SIZE);
>+
>+	mad_sendq_size = roundup_pow_of_two(mad_sendq_size);
>+	mad_sendq_size = min(mad_sendq_size, IB_MAD_QP_MAX_SIZE);
>+	mad_sendq_size = max(mad_sendq_size, IB_MAD_QP_MIN_SIZE);

Why round up to a power of two or have min/max restrictions?




More information about the general mailing list