[PATCH 06/11] nvmet: advertise the FDP capability
Guixin Liu
kanie at linux.alibaba.com
Sun Oct 18 20:36:19 PDT 2026
Set the Flexible Data Placement Supported (FDPS) bit in the Identify
Controller ctratt field whenever at least one enabled namespace of
the subsystem bridges FDP. Hosts use the FDPS bit to decide whether
to query the FDP feature and configuration for each namespace, so
without it the bridge stays invisible. The FDP log pages are listed
in the Supported Log Pages log page by the patches that serve them.
Assisted-by: LLM
Signed-off-by: Guixin Liu <kanie at linux.alibaba.com>
---
drivers/nvme/target/admin-cmd.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/nvme/target/admin-cmd.c b/drivers/nvme/target/admin-cmd.c
index aad5abdb6ef96..b293ce418e2c3 100644
--- a/drivers/nvme/target/admin-cmd.c
+++ b/drivers/nvme/target/admin-cmd.c
@@ -699,6 +699,8 @@ static void nvmet_execute_identify_ctrl(struct nvmet_req *req)
ctratt = NVME_CTRL_ATTR_HID_128_BIT | NVME_CTRL_ATTR_TBKAS;
if (nvmet_is_pci_ctrl(ctrl))
ctratt |= NVME_CTRL_ATTR_RHII;
+ if (nvmet_fdp_subsys_configured(ctrl->subsys))
+ ctratt |= NVME_CTRL_ATTR_FDPS;
id->ctratt = cpu_to_le32(ctratt);
id->oacs = 0;
--
2.43.7
More information about the Linux-nvme
mailing list