Commit ba69d467 authored by Tomasz Zawadzki's avatar Tomasz Zawadzki
Browse files

event/scheduler: remove custom opts from static scheduler



Static scheduler does not take any opts. Remove them in order to
return failure when passed.

See (6371dd64) event/scheduler: do not accept params for scheduler without set_opts
This scenario is tested in scheduler_opts().

Signed-off-by: default avatarTomasz Zawadzki <tomasz.zawadzki@intel.com>
Change-Id: I9b0dc723b96b98113ae4b3c2f6a00da7191ea5df
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/24302
Community-CI: Mellanox Build Bot
parent 79fce488
Loading
Loading
Loading
Loading
+0 −13
Original line number Diff line number Diff line
@@ -31,23 +31,10 @@ balance_static(struct spdk_scheduler_core_info *cores, uint32_t core_count)
{
}

static int
set_opts_static(const struct spdk_json_val *opts)
{
	return 0;
}

static void
get_opts_static(struct spdk_json_write_ctx *ctx)
{
}

static struct spdk_scheduler scheduler = {
	.name = "static",
	.init = init_static,
	.deinit = deinit_static,
	.balance = balance_static,
	.set_opts = set_opts_static,
	.get_opts = get_opts_static,
};
SPDK_SCHEDULER_REGISTER(scheduler);