Commit 8eaf5331 authored by Ziye Yang's avatar Ziye Yang Committed by Daniel Verkamp
Browse files

nvme/rdma: set IOSQES and IOCQES in cc register



The reason is that kernel nvmf target will check the
value. If not set, it will fail the other commands later.
Even for discovery ctrlr, kernel nvmf target will
check the cc value.

Change-Id: I998327f91ba96281d261952878eb84d648a823da
Signed-off-by: default avatarZiye Yang <ziye.yang@intel.com>
parent 152a3f05
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1082,6 +1082,8 @@ nvme_rdma_ctrlr_scan(enum spdk_nvme_transport_type trtype,
	/* TODO: this should be using the normal NVMe controller initialization process */
	cc.raw = 0;
	cc.bits.en = 1;
	cc.bits.iosqes = 6; /* SQ entry size == 64 == 2^6 */
	cc.bits.iocqes = 4; /* CQ entry size == 16 == 2^4 */
	rc = nvme_transport_ctrlr_set_reg_4(discovery_ctrlr, offsetof(struct spdk_nvme_registers, cc.raw),
					    cc.raw);
	if (rc < 0) {