+15
−0
Loading
cm_id might be set to NULL during nvmf_rdma_qpair_initialize, this patch refines nvmf_rdma_qpair_get_peer_trid() and nvmf_rdma_qpair_get_local_trid() to gracefully return -1 when cm_id is NULL. And listen_id will never be set to NULL after qpair is created, so an assert is used in nvmf_rdma_qpair_get_listen_trid() to check whether the listen_id is NULL. Change-Id: Idabf131ef9faf1e9462ca3345691178d5bd7e2b8 Signed-off-by:Kaiqi Chen <kaiqi.chen@smartx.com> Reviewed-on: https://review.spdk.io/c/spdk/spdk/+/26350 Tested-by:
SPDK Automated Test System <spdkbot@gmail.com> Reviewed-by:
Konrad Sztyber <ksztyber@nvidia.com> Reviewed-by:
Jim Harris <jim.harris@nvidia.com> Reviewed-by:
Changpeng Liu <changpeliu@tencent.com> Community-CI: Mellanox Build Bot