nvmf/tcp: add an assert for transport destroy.
Add a check, which will be required for the further unit test. Change-Id: Ib1987fef914e6546f2bdbacd23bf9bb6005b8155 Signed-off-by: Ziye Yang <ziye.yang@intel.com> Reviewed-on: https://review.gerrithub.io/435197 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
This commit is contained in:
parent
2893aa6117
commit
1b7c0f54d0
@ -608,6 +608,7 @@ spdk_nvmf_tcp_destroy(struct spdk_nvmf_transport *transport)
|
||||
{
|
||||
struct spdk_nvmf_tcp_transport *ttransport;
|
||||
|
||||
assert(transport != NULL);
|
||||
ttransport = SPDK_CONTAINEROF(transport, struct spdk_nvmf_tcp_transport, transport);
|
||||
|
||||
if (spdk_mempool_count(ttransport->data_buf_pool) != (ttransport->max_queue_depth * 4)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user