nvme: rename quirk from LIGHTNVM to OCSSD

This is consistent with the Open Channel naming we are using elsewhere.

Change-Id: Ib088359bed29a958f8b50e41cf34143a23429f54
Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com>
Reviewed-on: https://review.gerrithub.io/413840
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
This commit is contained in:
Daniel Verkamp 2018-06-05 09:56:50 -07:00 committed by Changpeng Liu
parent 6f872f5ab9
commit e83a62bf09
2 changed files with 4 additions and 4 deletions

View File

@ -100,11 +100,11 @@ extern pid_t g_spdk_nvme_pid;
#define NVME_QUIRK_IDENTIFY_CNS 0x40
/*
* The controller supports LightNVM command set if matching additional
* The controller supports Open Channel command set if matching additional
* condition, like the first byte (value 0x1) in the vendor specific
* bits of the namespace identify structure is set.
*/
#define NVME_QUIRK_LIGHTNVM 0x80
#define NVME_QUIRK_OCSSD 0x80
#define NVME_MAX_ASYNC_EVENTS (8)

View File

@ -74,7 +74,7 @@ static const struct nvme_quirk nvme_quirks[] = {
},
{ {SPDK_PCI_VID_CNEXLABS, 0x1f1f, SPDK_PCI_ANY_ID, SPDK_PCI_ANY_ID},
NVME_QUIRK_IDENTIFY_CNS |
NVME_QUIRK_LIGHTNVM
NVME_QUIRK_OCSSD
},
{ {0x0000, 0x0000, 0x0000, 0x0000}, 0}
};
@ -121,7 +121,7 @@ nvme_get_quirks(const struct spdk_pci_id *id)
PRINT_QUIRK(NVME_QUIRK_DELAY_AFTER_QUEUE_ALLOC);
PRINT_QUIRK(NVME_QUIRK_READ_ZERO_AFTER_DEALLOCATE);
PRINT_QUIRK(NVME_QUIRK_IDENTIFY_CNS);
PRINT_QUIRK(NVME_QUIRK_LIGHTNVM);
PRINT_QUIRK(NVME_QUIRK_OCSSD);
return quirk->flags;
}