svn commit: r341710 - head/sys/dev/nvme

Warner Losh imp at FreeBSD.org
Fri Dec 7 21:58:09 UTC 2018


Author: imp
Date: Fri Dec  7 21:58:08 2018
New Revision: 341710
URL: https://svnweb.freebsd.org/changeset/base/341710

Log:
  Even though they are reserved, cdw2 and cdw3 can be set via nvme-cli
  (and soon nvmecontrol). Go ahead and copy them into rsvd2 and rsvd3.
  
  Sponsored by: Netflix

Modified:
  head/sys/dev/nvme/nvme_ctrlr.c

Modified: head/sys/dev/nvme/nvme_ctrlr.c
==============================================================================
--- head/sys/dev/nvme/nvme_ctrlr.c	Fri Dec  7 21:57:39 2018	(r341709)
+++ head/sys/dev/nvme/nvme_ctrlr.c	Fri Dec  7 21:58:08 2018	(r341710)
@@ -1075,6 +1075,8 @@ nvme_ctrlr_passthrough_cmd(struct nvme_controller *ctr
 	/* Assume userspace already converted to little-endian */
 	req->cmd.opc = pt->cmd.opc;
 	req->cmd.fuse = pt->cmd.fuse;
+	req->cmd.rsvd2 = pt->cmd.rsvd2;
+	req->cmd.rsvd3 = pt->cmd.rsvd3;
 	req->cmd.cdw10 = pt->cmd.cdw10;
 	req->cmd.cdw11 = pt->cmd.cdw11;
 	req->cmd.cdw12 = pt->cmd.cdw12;


More information about the svn-src-all mailing list