summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNitesh Shetty <nj.shetty@samsung.com>2025-07-16 19:09:44 +0530
committerChristoph Hellwig <hch@lst.de>2025-07-31 06:35:43 -0700
commitc71fc0f457ca1c2cd4dff2d974df724beb14f67e (patch)
treee0d44b7dd3db34408b4cefdf42436e3f50a3d321
parent5421681bc3ef13476bd9443379cd69381e8760fa (diff)
nvmet: add support for FDP in fabrics passthru path
Add support for admin_get_feature FDP(0x1d) feature id, thus enabling FDP at the initiator side for the target controller and namespaces attached to it. Signed-off-by: Nitesh Shetty <nj.shetty@samsung.com> Signed-off-by: Christoph Hellwig <hch@lst.de>
-rw-r--r--drivers/nvme/target/passthru.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/nvme/target/passthru.c b/drivers/nvme/target/passthru.c
index 3b4b0df8f879..0c361b1e3566 100644
--- a/drivers/nvme/target/passthru.c
+++ b/drivers/nvme/target/passthru.c
@@ -533,6 +533,8 @@ u16 nvmet_parse_passthru_admin_cmd(struct nvmet_req *req)
case NVME_FEAT_HOST_ID:
req->execute = nvmet_execute_get_features;
return NVME_SC_SUCCESS;
+ case NVME_FEAT_FDP:
+ return nvmet_setup_passthru_command(req);
default:
return nvmet_passthru_get_set_features(req);
}