diff options
author | Hannes Reinecke <hare@suse.de> | 2021-09-22 08:35:22 +0200 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2021-10-20 19:16:02 +0200 |
commit | d3aef70124e7f69975eabeb340866bc91672532d (patch) | |
tree | 49ac7eb29f0f2994e0ea48729940ff9a2f24a54a /drivers/nvme/target/discovery.c | |
parent | a294711ed5123f757ed8ed2f103c851b8ee416c9 (diff) | |
download | lwn-d3aef70124e7f69975eabeb340866bc91672532d.tar.gz lwn-d3aef70124e7f69975eabeb340866bc91672532d.zip |
nvmet: set 'CNTRLTYPE' in the identify controller data
Set the correct 'CNTRLTYPE' field in the identify controller data.
Signed-off-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'drivers/nvme/target/discovery.c')
-rw-r--r-- | drivers/nvme/target/discovery.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/nvme/target/discovery.c b/drivers/nvme/target/discovery.c index 7aa62bc6ae84..7b360f8d07e9 100644 --- a/drivers/nvme/target/discovery.c +++ b/drivers/nvme/target/discovery.c @@ -268,6 +268,8 @@ static void nvmet_execute_disc_identify(struct nvmet_req *req) memcpy_and_pad(id->fr, sizeof(id->fr), UTS_RELEASE, strlen(UTS_RELEASE), ' '); + id->cntrltype = NVME_CTRL_DISC; + /* no limit on data transfer sizes for now */ id->mdts = 0; id->cntlid = cpu_to_le16(ctrl->cntlid); |