[openib-general] [RFC] [PATCH 1/2] sa_query: add generic query interfaces capable of supporting RMPP
Sean Hefty
sean.hefty at intel.com
Tue Aug 1 23:13:12 PDT 2006
>I guess the function to read from the iterator does need to do the
>copying out. I wonder if it's worth trying to get really tricky and
>do the unpacking in the same step?
Internally, I copy a split attribute into an intermediate buffer that is
allocated as part of the cursor / iterator, then unpack into the final buffer.
Ib_sa_iter_attr would simply return a pointer to the intermediate buffer, but
this does prevent being really clever and unpacking in the same step. It's
challenging enough for the code to handle different sized attributes arbitrarily
split across two MADs. I can't imagine trying to unpack at the same time
actually being faster than using an intermediate buffer.
- Sean
More information about the general
mailing list