From cef7ad58ec8fd19f6b512b5c232ffa5e85b8270f Mon Sep 17 00:00:00 2001 From: Daniel Verkamp Date: Mon, 27 Jun 2016 13:01:39 -0700 Subject: [PATCH] nvmf: remove unused nvmf_session::vcfeat field Change-Id: Icebadbf3d49c957f7ae908627b69e5b0773cc6a5 Signed-off-by: Daniel Verkamp --- lib/nvmf/session.c | 2 -- lib/nvmf/session.h | 20 -------------------- 2 files changed, 22 deletions(-) diff --git a/lib/nvmf/session.c b/lib/nvmf/session.c index f3208d3a4..c79a84f82 100644 --- a/lib/nvmf/session.c +++ b/lib/nvmf/session.c @@ -139,9 +139,7 @@ nvmf_init_session_properties(struct nvmf_session *session, int aq_depth) *(uint32_t *)&session->vcdata.sgls); /* feature: Number Of Queues. */ - /* Init to zero. Host shall set before enabling the controller */ session->max_io_queues = MAX_SESSION_IO_QUEUES; - session->vcfeat.noq = 0; session->vcprop.cap_lo.raw = 0; session->vcprop.cap_lo.bits.cqr = 0; /* queues not contiguous */ diff --git a/lib/nvmf/session.h b/lib/nvmf/session.h index 95d3b5fd1..c949b48bb 100644 --- a/lib/nvmf/session.h +++ b/lib/nvmf/session.h @@ -56,25 +56,6 @@ struct nvmf_connection_entry { /* define a virtual controller limit to the number of QPs supported */ #define MAX_SESSION_IO_QUEUES 64 -struct nvmf_vc_features { - uint32_t arb; /* arbitration */ - uint32_t pm; /* power management */ - uint32_t temp; /* temp threshold */ - uint32_t err; /* error recovery */ - uint32_t vwc; /* volatile write cache */ - uint32_t noq; /* number of queues */ - uint32_t ic; /* interrupt coalescing */ - uint32_t ivc; /* interrupt vector config */ - uint32_t wan; /* write atomicity normal */ - uint32_t aec; /* async event config */ - uint32_t apst; /* autonomous power state transition */ - uint32_t hmb; /* host memory buffer */ - uint32_t spm; /* sw progress marker */ - uint32_t hostid; /* host identifier */ - uint32_t resnm; /* reservation notification mask */ - uint32_t resp; /* reservation persistence */ -}; - /* * This structure maintains the NVMf virtual controller session * state. Each NVMf session permits some number of connections. @@ -88,7 +69,6 @@ struct nvmf_session { int active_queues; int is_valid; struct spdk_nvmf_ctrlr_properties vcprop; /* virtual controller properties */ - struct nvmf_vc_features vcfeat; /* virtual controller features */ struct spdk_nvme_ctrlr_data vcdata; /* virtual controller data */ TAILQ_HEAD(connection_q, nvmf_connection_entry) connections;