spdk_top: change scheduler name to be optional in decoders
Make scheduler name optional in decoders. Some of our applications do not use scheduler, so they do not provide its data via RPC requests. This will spare users from seeing an error encountered while getting scheduler data. Change-Id: I5213b85cd9217b8573e980918bbfa2bb0c9d2cfd Signed-off-by: Krzysztof Karas <krzysztof.karas@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/11781 Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com> Community-CI: Mellanox Build Bot Reviewed-by: Dong Yi <dongx.yi@intel.com> Reviewed-by: Changpeng Liu <changpeng.liu@intel.com> Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
This commit is contained in:
parent
f3f93539c2
commit
1de1797b11
@ -568,7 +568,7 @@ free_rpc_scheduler(struct rpc_scheduler *req)
|
||||
}
|
||||
|
||||
static const struct spdk_json_object_decoder rpc_scheduler_decoders[] = {
|
||||
{"scheduler_name", offsetof(struct rpc_scheduler, scheduler_name), spdk_json_decode_string},
|
||||
{"scheduler_name", offsetof(struct rpc_scheduler, scheduler_name), spdk_json_decode_string, true},
|
||||
{"scheduler_period", offsetof(struct rpc_scheduler, scheduler_period), spdk_json_decode_uint64},
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user