diff options
| author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2012-10-30 03:20:56 -0400 |
|---|---|---|
| committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2012-10-30 03:20:56 -0400 |
| commit | 53279f36dccffc26ff536003fd6bb97cc21c3b82 (patch) | |
| tree | 9d16e497c0e4158c7c054c479bd0e9ff0388d7bb /include/rdma/ib_cache.h | |
| parent | a6e8c0a25377e27958b11b20e1927885ae7c9857 (diff) | |
| parent | 8f0d8163b50e01f398b14bcd4dc039ac5ab18d64 (diff) | |
Merge tag 'v3.7-rc3' into next to sync up with recent USB and MFD changes
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 00a2b8ec327f..ad9a3c280944 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, | |||
| 101 | u16 *index); | 101 | u16 *index); |
| 102 | 102 | ||
| 103 | /** | 103 | /** |
| 104 | * ib_find_exact_cached_pkey - Returns the PKey table index where a specified | ||
| 105 | * PKey value occurs. Comparison uses the FULL 16 bits (incl membership bit) | ||
| 106 | * @device: The device to query. | ||
| 107 | * @port_num: The port number of the device to search for the PKey. | ||
| 108 | * @pkey: The PKey value to search for. | ||
| 109 | * @index: The index into the cached PKey table where the PKey was found. | ||
| 110 | * | ||
| 111 | * ib_find_exact_cached_pkey() searches the specified PKey table in | ||
| 112 | * the local software cache. | ||
| 113 | */ | ||
| 114 | int ib_find_exact_cached_pkey(struct ib_device *device, | ||
| 115 | u8 port_num, | ||
| 116 | u16 pkey, | ||
| 117 | u16 *index); | ||
| 118 | |||
| 119 | /** | ||
| 104 | * ib_get_cached_lmc - Returns a cached lmc table entry | 120 | * ib_get_cached_lmc - Returns a cached lmc table entry |
| 105 | * @device: The device to query. | 121 | * @device: The device to query. |
| 106 | * @port_num: The port number of the device to query. | 122 | * @port_num: The port number of the device to query. |
