Or Gerlitz wrote:
- the ib_get_path_rec api does not seem to allow its consumer to specify a callback to be called when there is no path in the cache

- the ib_get_path_rec seems to only look in the index and return path only if there is cached one.

So is it an incomplete implementation just sent for review or i am missing something(s) ?

The implementation is complete. The interface to the cache operates synchronously. If an item is found in the cache, it is returned. If no item is found, an error is returned. The caller can query the SA directly in this case. (If we wanted to be fancy, the results of that query could be copied into the cache, but the cache will update on its own.)

I originally implemented an asynchronous API, but it complicated the implementation and was inefficient in the most common case, where an item is found in the cache.

- Sean
_______________________________________________
openib-general mailing list
[email protected]
http://openib.org/mailman/listinfo/openib-general

To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general

Reply via email to