nvmf: move transport stop listen into public interface
Signed-off-by: Jacek Kalwas <jacek.kalwas@intel.com> Change-Id: Ibb44cb2058dda98d8b56a7e1954706fc7721047c Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/912 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
This commit is contained in:
parent
f545e3009f
commit
e2577e2a24
@ -980,7 +980,6 @@ void spdk_nvmf_tgt_add_transport(struct spdk_nvmf_tgt *tgt,
|
|||||||
void *cb_arg);
|
void *cb_arg);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
|
||||||
* Add listener to transport and begin accepting new connections.
|
* Add listener to transport and begin accepting new connections.
|
||||||
*
|
*
|
||||||
* \param transport The transport to add listener to
|
* \param transport The transport to add listener to
|
||||||
@ -990,11 +989,23 @@ void spdk_nvmf_tgt_add_transport(struct spdk_nvmf_tgt *tgt,
|
|||||||
*
|
*
|
||||||
* \return int. 0 if it completed successfully, or negative errno if it failed.
|
* \return int. 0 if it completed successfully, or negative errno if it failed.
|
||||||
*/
|
*/
|
||||||
|
int
|
||||||
|
spdk_nvmf_transport_listen(struct spdk_nvmf_transport *transport,
|
||||||
|
const struct spdk_nvme_transport_id *trid,
|
||||||
|
spdk_nvmf_tgt_listen_done_fn cb_fn,
|
||||||
|
void *cb_arg);
|
||||||
|
|
||||||
int spdk_nvmf_transport_listen(struct spdk_nvmf_transport *transport,
|
/**
|
||||||
const struct spdk_nvme_transport_id *trid,
|
* Remove listener from transport and stop accepting new connections.
|
||||||
spdk_nvmf_tgt_listen_done_fn cb_fn,
|
*
|
||||||
void *cb_arg);
|
* \param transport The transport to remove listener from
|
||||||
|
* \param trid Address to stop listen at
|
||||||
|
*
|
||||||
|
* \return int. 0 if it completed successfully, or negative errno if it failed.
|
||||||
|
*/
|
||||||
|
int
|
||||||
|
spdk_nvmf_transport_stop_listen(struct spdk_nvmf_transport *transport,
|
||||||
|
const struct spdk_nvme_transport_id *trid);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Write NVMe-oF target's transport configurations into provided JSON context.
|
* Write NVMe-oF target's transport configurations into provided JSON context.
|
||||||
|
@ -40,9 +40,6 @@
|
|||||||
#include "spdk/nvmf.h"
|
#include "spdk/nvmf.h"
|
||||||
#include "spdk/nvmf_transport.h"
|
#include "spdk/nvmf_transport.h"
|
||||||
|
|
||||||
int spdk_nvmf_transport_stop_listen(struct spdk_nvmf_transport *transport,
|
|
||||||
const struct spdk_nvme_transport_id *trid);
|
|
||||||
|
|
||||||
void spdk_nvmf_transport_accept(struct spdk_nvmf_transport *transport, new_qpair_fn cb_fn,
|
void spdk_nvmf_transport_accept(struct spdk_nvmf_transport *transport, new_qpair_fn cb_fn,
|
||||||
void *cb_arg);
|
void *cb_arg);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user