diff options
Diffstat (limited to 'drivers/nvme/target/admin-cmd.c')
| -rw-r--r-- | drivers/nvme/target/admin-cmd.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/nvme/target/admin-cmd.c b/drivers/nvme/target/admin-cmd.c index 7ab9c9381b98..6fe4c48a21e4 100644 --- a/drivers/nvme/target/admin-cmd.c +++ b/drivers/nvme/target/admin-cmd.c | |||
| @@ -199,7 +199,7 @@ static void nvmet_execute_identify_ctrl(struct nvmet_req *req) | |||
| 199 | */ | 199 | */ |
| 200 | 200 | ||
| 201 | /* we support multiple ports and multiples hosts: */ | 201 | /* we support multiple ports and multiples hosts: */ |
| 202 | id->mic = (1 << 0) | (1 << 1); | 202 | id->cmic = (1 << 0) | (1 << 1); |
| 203 | 203 | ||
| 204 | /* no limit on data transfer sizes for now */ | 204 | /* no limit on data transfer sizes for now */ |
| 205 | id->mdts = 0; | 205 | id->mdts = 0; |
| @@ -511,13 +511,13 @@ int nvmet_parse_admin_cmd(struct nvmet_req *req) | |||
| 511 | case nvme_admin_identify: | 511 | case nvme_admin_identify: |
| 512 | req->data_len = 4096; | 512 | req->data_len = 4096; |
| 513 | switch (le32_to_cpu(cmd->identify.cns)) { | 513 | switch (le32_to_cpu(cmd->identify.cns)) { |
| 514 | case 0x00: | 514 | case NVME_ID_CNS_NS: |
| 515 | req->execute = nvmet_execute_identify_ns; | 515 | req->execute = nvmet_execute_identify_ns; |
| 516 | return 0; | 516 | return 0; |
| 517 | case 0x01: | 517 | case NVME_ID_CNS_CTRL: |
| 518 | req->execute = nvmet_execute_identify_ctrl; | 518 | req->execute = nvmet_execute_identify_ctrl; |
| 519 | return 0; | 519 | return 0; |
| 520 | case 0x02: | 520 | case NVME_ID_CNS_NS_ACTIVE_LIST: |
| 521 | req->execute = nvmet_execute_identify_nslist; | 521 | req->execute = nvmet_execute_identify_nslist; |
| 522 | return 0; | 522 | return 0; |
| 523 | } | 523 | } |
