From de271dbe13391f24aeab7e684772e91777c6b1d9 Mon Sep 17 00:00:00 2001 From: Seth Howell Date: Fri, 26 Apr 2019 14:34:03 -0700 Subject: [PATCH] nvmf: add srq opts to get_nvmf_transports method. Print these out for the RDMA transport. Signed-off-by: Seth Howell Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/452272 (master) (cherry picked from commit cbf74b20b37d0b2e76a9e95415f3478deac81208) Change-Id: I44ab01088fcab180540a93e024855322036241db Signed-off-by: Tomasz Zawadzki Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/457204 Tested-by: SPDK CI Jenkins Reviewed-by: Darek Stojaczyk --- lib/event/subsystems/nvmf/nvmf_rpc.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/event/subsystems/nvmf/nvmf_rpc.c b/lib/event/subsystems/nvmf/nvmf_rpc.c index 2c9dae5b9..0723e20ec 100644 --- a/lib/event/subsystems/nvmf/nvmf_rpc.c +++ b/lib/event/subsystems/nvmf/nvmf_rpc.c @@ -1589,6 +1589,10 @@ dump_nvmf_transport(struct spdk_json_write_ctx *w, struct spdk_nvmf_transport *t spdk_json_write_named_uint32(w, "max_aq_depth", opts->max_aq_depth); spdk_json_write_named_uint32(w, "num_shared_buffers", opts->num_shared_buffers); spdk_json_write_named_uint32(w, "buf_cache_size", opts->buf_cache_size); + if (type == SPDK_NVME_TRANSPORT_RDMA) { + spdk_json_write_named_uint32(w, "max_srq_depth", opts->max_srq_depth); + spdk_json_write_named_bool(w, "no_srq", opts->no_srq); + } spdk_json_write_object_end(w); }