vmd: remove legacy config support

This patch removes legacy config support in vmd subsystem.
All options through the legacy config are already reflected in JSON.

Signed-off-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
Change-Id: I45f66809a889b39a05bf4f6856431d922b497c76
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/4641
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com>
Reviewed-by: Paul Luse <paul.e.luse@intel.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
This commit is contained in:
Tomasz Zawadzki 2020-10-12 08:51:44 -04:00 committed by Jim Harris
parent 269efef886
commit 8c66958a10
2 changed files with 1 additions and 19 deletions

View File

@ -156,7 +156,7 @@ DEPDIRS-bdev_virtio := $(BDEV_DEPS_CONF_THREAD) virtio
# the SPDK event subsystem code.
DEPDIRS-event_accel := event accel
DEPDIRS-event_net := event net
DEPDIRS-event_vmd := event vmd conf $(JSON_LIBS) log thread
DEPDIRS-event_vmd := event vmd $(JSON_LIBS) log thread
DEPDIRS-event_bdev := event bdev event_accel event_vmd event_sock

View File

@ -32,7 +32,6 @@
*/
#include "spdk/stdinc.h"
#include "spdk/conf.h"
#include "spdk/thread.h"
#include "spdk/likely.h"
@ -79,22 +78,6 @@ vmd_subsystem_init(void)
return 0;
}
static void
_vmd_subsystem_init(void)
{
struct spdk_conf_section *sp;
int rc = 0;
sp = spdk_conf_find_section(NULL, "Vmd");
if (sp != NULL) {
if (spdk_conf_section_get_boolval(sp, "Enable", false)) {
rc = vmd_subsystem_init();
}
}
spdk_subsystem_init_next(rc);
}
static void
vmd_subsystem_fini(void)
{
@ -123,7 +106,6 @@ vmd_write_config_json(struct spdk_json_write_ctx *w)
static struct spdk_subsystem g_spdk_subsystem_vmd = {
.name = "vmd",
.init = _vmd_subsystem_init,
.fini = vmd_subsystem_fini,
.config = NULL,
.write_config_json = vmd_write_config_json,