]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
nvmet: add support for FDP in fabrics passthru path
authorNitesh Shetty <nj.shetty@samsung.com>
Wed, 16 Jul 2025 13:39:44 +0000 (19:09 +0530)
committerChristoph Hellwig <hch@lst.de>
Thu, 31 Jul 2025 13:35:43 +0000 (06:35 -0700)
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>
drivers/nvme/target/passthru.c

index 3b4b0df8f879951436f91287bba6d9f4b8d21484..0c361b1e356656e719bf2ab3ba007a02b6953406 100644 (file)
@@ -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);
                }