[openib-general] Re: calculate inline data size

Sean Hefty sean.hefty at intel.com
Fri Jul 8 11:42:58 PDT 2005


>>     Gleb> But how should I know what maximum size that I can use? By
>>     Gleb> trial and error?
>>
>> This is a good question that I don't have an answer to right now.
>
>Why not add the max inline size to the CA attributes?  HCAs that don't support
>inline data would set it to zero.
>
>It does require the user to query the CA attributes to get the limit, but
>that's
>probably OK.

In general I agree that the ib_device_attr is a good place to store this.  The
problem is that the maximum changes depending on the work request type (send or
RDMA write), if immediate data is used, and number of sge's.

- Sean





More information about the general mailing list