[openib-general] [PATCH 0/4] SA path record caching

Sean Hefty mshefty at ichips.intel.com
Thu Jan 26 10:20:20 PST 2006


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



More information about the general mailing list