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:
parent
6f872f5ab9
commit
e83a62bf09
@ -100,11 +100,11 @@ extern pid_t g_spdk_nvme_pid;
|
|||||||
#define NVME_QUIRK_IDENTIFY_CNS 0x40
|
#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
|
* condition, like the first byte (value 0x1) in the vendor specific
|
||||||
* bits of the namespace identify structure is set.
|
* bits of the namespace identify structure is set.
|
||||||
*/
|
*/
|
||||||
#define NVME_QUIRK_LIGHTNVM 0x80
|
#define NVME_QUIRK_OCSSD 0x80
|
||||||
|
|
||||||
#define NVME_MAX_ASYNC_EVENTS (8)
|
#define NVME_MAX_ASYNC_EVENTS (8)
|
||||||
|
|
||||||
|
@ -74,7 +74,7 @@ static const struct nvme_quirk nvme_quirks[] = {
|
|||||||
},
|
},
|
||||||
{ {SPDK_PCI_VID_CNEXLABS, 0x1f1f, SPDK_PCI_ANY_ID, SPDK_PCI_ANY_ID},
|
{ {SPDK_PCI_VID_CNEXLABS, 0x1f1f, SPDK_PCI_ANY_ID, SPDK_PCI_ANY_ID},
|
||||||
NVME_QUIRK_IDENTIFY_CNS |
|
NVME_QUIRK_IDENTIFY_CNS |
|
||||||
NVME_QUIRK_LIGHTNVM
|
NVME_QUIRK_OCSSD
|
||||||
},
|
},
|
||||||
{ {0x0000, 0x0000, 0x0000, 0x0000}, 0}
|
{ {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_DELAY_AFTER_QUEUE_ALLOC);
|
||||||
PRINT_QUIRK(NVME_QUIRK_READ_ZERO_AFTER_DEALLOCATE);
|
PRINT_QUIRK(NVME_QUIRK_READ_ZERO_AFTER_DEALLOCATE);
|
||||||
PRINT_QUIRK(NVME_QUIRK_IDENTIFY_CNS);
|
PRINT_QUIRK(NVME_QUIRK_IDENTIFY_CNS);
|
||||||
PRINT_QUIRK(NVME_QUIRK_LIGHTNVM);
|
PRINT_QUIRK(NVME_QUIRK_OCSSD);
|
||||||
|
|
||||||
return quirk->flags;
|
return quirk->flags;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user