aboutsummaryrefslogtreecommitdiff
path: root/lib/libnvmf/libnvmf.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libnvmf/libnvmf.h')
-rw-r--r--lib/libnvmf/libnvmf.h17
1 files changed, 13 insertions, 4 deletions
diff --git a/lib/libnvmf/libnvmf.h b/lib/libnvmf/libnvmf.h
index 44f13fda5ddd..f34ccdb177e7 100644
--- a/lib/libnvmf/libnvmf.h
+++ b/lib/libnvmf/libnvmf.h
@@ -321,6 +321,14 @@ int nvmf_host_fetch_discovery_log_page(struct nvmf_qpair *qp,
struct nvme_discovery_log **logp);
/*
+ * Construct a discovery log page entry that describes the connection
+ * used by a host association's admin queue pair.
+ */
+int nvmf_init_dle_from_admin_qp(struct nvmf_qpair *qp,
+ const struct nvme_controller_data *cdata,
+ struct nvme_discovery_log_entry *dle);
+
+/*
* Request a desired number of I/O queues via SET_FEATURES. The
* number of actual I/O queues available is returned in *actual on
* success.
@@ -332,7 +340,8 @@ int nvmf_host_request_queues(struct nvmf_qpair *qp, u_int requested,
* Handoff active host association to the kernel. This frees the
* qpairs (even on error).
*/
-int nvmf_handoff_host(struct nvmf_qpair *admin_qp, u_int num_queues,
+int nvmf_handoff_host(const struct nvme_discovery_log_entry *dle,
+ const char *hostnqn, struct nvmf_qpair *admin_qp, u_int num_queues,
struct nvmf_qpair **io_queues, const struct nvme_controller_data *cdata);
/*
@@ -359,8 +368,8 @@ int nvmf_reconnect_params(int fd, nvlist_t **nvlp);
* Handoff active host association to an existing host in the kernel.
* This frees the qpairs (even on error).
*/
-int nvmf_reconnect_host(int fd, struct nvmf_qpair *admin_qp,
- u_int num_queues, struct nvmf_qpair **io_queues,
- const struct nvme_controller_data *cdata);
+int nvmf_reconnect_host(int fd, const struct nvme_discovery_log_entry *dle,
+ const char *hostnqn, struct nvmf_qpair *admin_qp, u_int num_queues,
+ struct nvmf_qpair **io_queues, const struct nvme_controller_data *cdata);
#endif /* !__LIBNVMF_H__ */