Commit 8c66958a authored by Tomasz Zawadzki's avatar Tomasz Zawadzki Committed by Jim Harris
Browse files

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: default avatarTomasz Zawadzki <tomasz.zawadzki@intel.com>
Change-Id: I45f66809a889b39a05bf4f6856431d922b497c76
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/4641


Reviewed-by: default avatarBen Walker <benjamin.walker@intel.com>
Reviewed-by: default avatarJim Harris <james.r.harris@intel.com>
Reviewed-by: default avatarAleksey Marchuk <alexeymar@mellanox.com>
Reviewed-by: default avatarPaul Luse <paul.e.luse@intel.com>
Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
parent 269efef8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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

+0 −18
Original line number Diff line number Diff line
@@ -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,