Re: [PATCH] nvmet: use U32_MAX value to report NN
From: Keith Busch <kbusch@kernel.org>
Date: 2021-06-14 21:19:07
From: Keith Busch <kbusch@kernel.org>
Date: 2021-06-14 21:19:07
On Mon, Jun 14, 2021 at 12:47:12PM -0700, Chaitanya Kulkarni wrote:
@@ -393,7 +393,7 @@ static void nvmet_execute_identify_ctrl(struct nvmet_req *req) /* no enforcement soft-limit for maxcmd - pick arbitrary high value */ id->maxcmd = cpu_to_le16(NVMET_MAX_CMD); - id->nn = cpu_to_le32(ctrl->subsys->max_nsid); + id->nn = cpu_to_le32(U32_MAX);
The NN field has to have the highest valid NSID, and FFFFFFFFh is not valid. That's reserved for the broadcast. _______________________________________________ Linux-nvme mailing list Linux-nvme@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-nvme