|
@@ -336,7 +336,7 @@ static int nvme_get_stream_params(struct nvme_ctrl *ctrl,
|
|
|
|
|
|
c.directive.opcode = nvme_admin_directive_recv;
|
|
c.directive.opcode = nvme_admin_directive_recv;
|
|
c.directive.nsid = cpu_to_le32(nsid);
|
|
c.directive.nsid = cpu_to_le32(nsid);
|
|
- c.directive.numd = cpu_to_le32(sizeof(*s));
|
|
|
|
|
|
+ c.directive.numd = cpu_to_le32((sizeof(*s) >> 2) - 1);
|
|
c.directive.doper = NVME_DIR_RCV_ST_OP_PARAM;
|
|
c.directive.doper = NVME_DIR_RCV_ST_OP_PARAM;
|
|
c.directive.dtype = NVME_DIR_STREAMS;
|
|
c.directive.dtype = NVME_DIR_STREAMS;
|
|
|
|
|