diff options
author | Sagi Grimberg <sagi@grimberg.me> | 2018-11-02 18:28:12 +0100 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2018-12-08 06:26:55 +0100 |
commit | 12b2117161ddbdcdb69777404c5aa2a9fe6ad7d5 (patch) | |
tree | 74ea0f0efa02ce1f7d568f13bf197e6842cfcb7b /drivers/nvme | |
parent | nvme: add a numa_node field to struct nvme_ctrl (diff) | |
download | linux-12b2117161ddbdcdb69777404c5aa2a9fe6ad7d5.tar.xz linux-12b2117161ddbdcdb69777404c5aa2a9fe6ad7d5.zip |
nvme: introduce ctrl attributes enumeration
We are growing more controller attributes, so use a proper enumeration
for it. For now just add the 128-bit hostid which we support.
Reviewed-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/nvme')
-rw-r--r-- | drivers/nvme/target/admin-cmd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/nvme/target/admin-cmd.c b/drivers/nvme/target/admin-cmd.c index 1179f6314323..30778ffc46f5 100644 --- a/drivers/nvme/target/admin-cmd.c +++ b/drivers/nvme/target/admin-cmd.c @@ -304,7 +304,7 @@ static void nvmet_execute_identify_ctrl(struct nvmet_req *req) /* XXX: figure out what to do about RTD3R/RTD3 */ id->oaes = cpu_to_le32(NVMET_AEN_CFG_OPTIONAL); - id->ctratt = cpu_to_le32(1 << 0); + id->ctratt = cpu_to_le32(NVME_CTRL_ATTR_HID_128_BIT); id->oacs = 0; |