nvme: add transport qpair_disconnect function
Signed-off-by: Jim Harris <james.r.harris@intel.com> Change-Id: I9918f8fed0e559be5d865702b647566dd1e2ed18 Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/453936 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
This commit is contained in:
parent
3895ca40d9
commit
79fad08a7e
@ -995,6 +995,7 @@ struct spdk_nvme_ctrlr *spdk_nvme_get_ctrlr_by_trid_unsafe(
|
||||
volatile struct spdk_nvme_registers *nvme_ ## name ## _ctrlr_get_registers(struct spdk_nvme_ctrlr *ctrlr); \
|
||||
int nvme_ ## name ## _ctrlr_delete_io_qpair(struct spdk_nvme_ctrlr *ctrlr, struct spdk_nvme_qpair *qpair); \
|
||||
int nvme_ ## name ## _ctrlr_connect_qpair(struct spdk_nvme_ctrlr *ctrlr, struct spdk_nvme_qpair *qpair); \
|
||||
void nvme_ ## name ## _ctrlr_disconnect_qpair(struct spdk_nvme_ctrlr *ctrlr, struct spdk_nvme_qpair *qpair); \
|
||||
void nvme_ ## name ## _qpair_abort_reqs(struct spdk_nvme_qpair *qpair, uint32_t dnr); \
|
||||
int nvme_ ## name ## _qpair_reset(struct spdk_nvme_qpair *qpair); \
|
||||
int nvme_ ## name ## _qpair_submit_request(struct spdk_nvme_qpair *qpair, struct nvme_request *req); \
|
||||
|
@ -1629,6 +1629,11 @@ nvme_pcie_ctrlr_connect_qpair(struct spdk_nvme_ctrlr *ctrlr, struct spdk_nvme_qp
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
nvme_pcie_ctrlr_disconnect_qpair(struct spdk_nvme_ctrlr *ctrlr, struct spdk_nvme_qpair *qpair)
|
||||
{
|
||||
}
|
||||
|
||||
int
|
||||
nvme_pcie_ctrlr_delete_io_qpair(struct spdk_nvme_ctrlr *ctrlr, struct spdk_nvme_qpair *qpair)
|
||||
{
|
||||
|
@ -1604,6 +1604,12 @@ nvme_rdma_ctrlr_connect_qpair(struct spdk_nvme_ctrlr *ctrlr, struct spdk_nvme_qp
|
||||
return nvme_rdma_qpair_connect(nvme_rdma_qpair(qpair));
|
||||
}
|
||||
|
||||
void
|
||||
nvme_rdma_ctrlr_disconnect_qpair(struct spdk_nvme_ctrlr *ctrlr, struct spdk_nvme_qpair *qpair)
|
||||
{
|
||||
nvme_rdma_qpair_disconnect(qpair);
|
||||
}
|
||||
|
||||
int
|
||||
nvme_rdma_qpair_reset(struct spdk_nvme_qpair *qpair)
|
||||
{
|
||||
|
@ -1734,6 +1734,12 @@ nvme_tcp_ctrlr_connect_qpair(struct spdk_nvme_ctrlr *ctrlr, struct spdk_nvme_qpa
|
||||
return nvme_tcp_qpair_connect(nvme_tcp_qpair(qpair));
|
||||
}
|
||||
|
||||
void
|
||||
nvme_tcp_ctrlr_disconnect_qpair(struct spdk_nvme_ctrlr *ctrlr, struct spdk_nvme_qpair *qpair)
|
||||
{
|
||||
return nvme_tcp_qpair_disconnect(qpair);
|
||||
}
|
||||
|
||||
static struct spdk_nvme_qpair *
|
||||
nvme_tcp_ctrlr_create_qpair(struct spdk_nvme_ctrlr *ctrlr,
|
||||
uint16_t qid, uint32_t qsize,
|
||||
|
@ -191,6 +191,12 @@ nvme_transport_ctrlr_get_registers(struct spdk_nvme_ctrlr *ctrlr)
|
||||
NVME_TRANSPORT_CALL(ctrlr->trid.trtype, ctrlr_get_registers, (ctrlr));
|
||||
}
|
||||
|
||||
void
|
||||
nvme_transport_ctrlr_disconnect_qpair(struct spdk_nvme_ctrlr *ctrlr, struct spdk_nvme_qpair *qpair)
|
||||
{
|
||||
NVME_TRANSPORT_CALL(ctrlr->trid.trtype, ctrlr_disconnect_qpair, (ctrlr, qpair));
|
||||
}
|
||||
|
||||
void
|
||||
nvme_transport_qpair_abort_reqs(struct spdk_nvme_qpair *qpair, uint32_t dnr)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user