diff options
Diffstat (limited to 'include/rdma/ib_cache.h')
| -rw-r--r-- | include/rdma/ib_cache.h | 16 | 
1 files changed, 16 insertions, 0 deletions
diff --git a/include/rdma/ib_cache.h b/include/rdma/ib_cache.h index 00a2b8ec327..ad9a3c28094 100644 --- a/include/rdma/ib_cache.h +++ b/include/rdma/ib_cache.h @@ -101,6 +101,22 @@ int ib_find_cached_pkey(struct ib_device    *device,  			u16                 *index);  /** + * ib_find_exact_cached_pkey - Returns the PKey table index where a specified + *   PKey value occurs. Comparison uses the FULL 16 bits (incl membership bit) + * @device: The device to query. + * @port_num: The port number of the device to search for the PKey. + * @pkey: The PKey value to search for. + * @index: The index into the cached PKey table where the PKey was found. + * + * ib_find_exact_cached_pkey() searches the specified PKey table in + * the local software cache. + */ +int ib_find_exact_cached_pkey(struct ib_device    *device, +			      u8                   port_num, +			      u16                  pkey, +			      u16                 *index); + +/**   * ib_get_cached_lmc - Returns a cached lmc table entry   * @device: The device to query.   * @port_num: The port number of the device to query.  | 
