Commit e83a62bf authored by Daniel Verkamp's avatar Daniel Verkamp Committed by Changpeng Liu
Browse files

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: default avatarDaniel Verkamp <daniel.verkamp@intel.com>
Reviewed-on: https://review.gerrithub.io/413840


Tested-by: default avatarSPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: default avatarBen Walker <benjamin.walker@intel.com>
Reviewed-by: default avatarChangpeng Liu <changpeng.liu@intel.com>
parent 6f872f5a
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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)

+2 −2
Original line number Diff line number Diff line
@@ -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;
		}