diff options
author | Jack Wang <jinpu.wang@profitbricks.com> | 2017-01-02 15:19:24 +0300 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2017-01-13 07:00:00 +0300 |
commit | 9e2c3f1c7f3edc6bdd83dab601418ac6c3b6df73 (patch) | |
tree | d9f6df0402e77e029b7628d78bc7c9979e083fa7 /include/rdma | |
parent | aaaca121c7cf9217ab81d9db0a04835d52aabebe (diff) | |
download | linux-9e2c3f1c7f3edc6bdd83dab601418ac6c3b6df73.tar.xz |
RDMA/core: export ib_get_cached_port_state
Export function for rdma_cm, patch for rdma_cm to follow.
Signed-off-by: Jack Wang <jinpu.wang@profitbricks.com>
Reviewed-by: Michael Wang <yun.wang@profitbricks.com>
Acked-by: Sean Hefty <sean.hefty@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'include/rdma')
-rw-r--r-- | include/rdma/ib_cache.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/rdma/ib_cache.h b/include/rdma/ib_cache.h index e30f19bd4a41..385ec88ee9e5 100644 --- a/include/rdma/ib_cache.h +++ b/include/rdma/ib_cache.h @@ -165,4 +165,17 @@ int ib_get_cached_lmc(struct ib_device *device, u8 port_num, u8 *lmc); +/** + * ib_get_cached_port_state - Returns a cached port state table entry + * @device: The device to query. + * @port_num: The port number of the device to query. + * @port_state: port_state for the specified port for that device. + * + * ib_get_cached_port_state() fetches the specified port_state table entry stored in + * the local software cache. + */ +int ib_get_cached_port_state(struct ib_device *device, + u8 port_num, + enum ib_port_state *port_active); + #endif /* _IB_CACHE_H */ |