Commit 3cf9ff74 authored by Alexey Marchuk's avatar Alexey Marchuk Committed by Tomasz Zawadzki
Browse files

rdma/conf: Add parsing of no_srq parameter via conf file

parent 6a382b98
Loading
Loading
Loading
Loading
+5 −6
Original line number Diff line number Diff line
@@ -626,14 +626,13 @@ spdk_nvmf_parse_transport(struct spdk_nvmf_parse_transport_ctx *ctx)
		opts.buf_cache_size = val;
	}

	if (trtype == SPDK_NVME_TRANSPORT_RDMA) {
		val = spdk_conf_section_get_intval(ctx->sp, "MaxSRQDepth");
		if (val >= 0) {
		if (trtype == SPDK_NVME_TRANSPORT_RDMA) {
			opts.max_srq_depth = val;
		} else {
			SPDK_ERRLOG("MaxSRQDepth is relevant only for RDMA transport '%s'\n", type);
			goto error_out;
		}
		bval = spdk_conf_section_get_boolval(ctx->sp, "NoSRQ", false);
		opts.no_srq = bval;
	}

	if (trtype == SPDK_NVME_TRANSPORT_TCP) {