From b86ae8534a383effdf3ed90de262ff3800725882 Mon Sep 17 00:00:00 2001 From: Daniel Verkamp Date: Wed, 14 Mar 2018 15:14:52 -0700 Subject: [PATCH] nvmf: increase emulated NVMe version to 1.3 Now that the NVMe-oF target emulated controller supports Identify with CNS = 03h (Namespace Identification Descriptor list), I believe we support all of the mandatory parts of NVMe 1.3, so let's increase the reported VS/VER fields to 1.3. Change-Id: Iee1052bf9ee1a0954f47770c7e5151886e63f11c Signed-off-by: Daniel Verkamp Reviewed-on: https://review.gerrithub.io/403891 Tested-by: SPDK Automated Test System Reviewed-by: Changpeng Liu Reviewed-by: Jim Harris --- lib/nvmf/ctrlr.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/nvmf/ctrlr.c b/lib/nvmf/ctrlr.c index e1e1b58bc3..2083061a8b 100644 --- a/lib/nvmf/ctrlr.c +++ b/lib/nvmf/ctrlr.c @@ -164,10 +164,10 @@ spdk_nvmf_ctrlr_create(struct spdk_nvmf_subsystem *subsystem, ctrlr->vcprop.cap.bits.mpsmin = 0; /* 2 ^ (12 + mpsmin) == 4k */ ctrlr->vcprop.cap.bits.mpsmax = 0; /* 2 ^ (12 + mpsmax) == 4k */ - /* Version Supported: 1.2.1 */ + /* Version Supported: 1.3 */ ctrlr->vcprop.vs.bits.mjr = 1; - ctrlr->vcprop.vs.bits.mnr = 2; - ctrlr->vcprop.vs.bits.ter = 1; + ctrlr->vcprop.vs.bits.mnr = 3; + ctrlr->vcprop.vs.bits.ter = 0; ctrlr->vcprop.cc.raw = 0; ctrlr->vcprop.cc.bits.en = 0; /* Init controller disabled */