Spdk/lib/event
Kefu Chai 5a6f3a6f91 event: accept negative --shm-id as a valid option
Before this change, a negative `--shm-id` value is rejected by
`spdk_app_parse_args()` and this function simply errors out after
detecting it. However, `build_eal_cmdline()` has a dedicated branch
checking for a negative `opts->shm_id` and passes `--no-shconf` down
to DPDK as a parameter, so we cannot disable the shared config support
in DPDK.

After this change, a negative value `--shm-id` is accepted, but if it
cannot be parsed as an integer, `spdk_app_parse_args()` errors
out as before. In result we can disable shared config support in DPDK
by passing `--shm-id=-1` to SPDK application.

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
Change-Id: Ibe089f13638eefa9ac28c5c99e303bcc3102f307
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/14097
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Krzysztof Karas <krzysztof.karas@intel.com>
Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
2022-09-09 12:57:01 +00:00
..
app_rpc.c Replace most BSD 3-clause license text with SPDX identifier. 2022-06-09 07:35:12 +00:00
app.c event: accept negative --shm-id as a valid option 2022-09-09 12:57:01 +00:00
log_rpc.c Replace most BSD 3-clause license text with SPDX identifier. 2022-06-09 07:35:12 +00:00
Makefile event: make opts structures packed 2022-08-18 10:08:40 +00:00
reactor.c reactor: Encapsulate a function _event_call. 2022-09-08 07:17:34 +00:00
scheduler_static.c lib/event: do not set default scheduling period during init 2022-06-20 09:56:09 +00:00
spdk_event.map scheduler: create public API and subsystem for scheduler/governor 2021-09-07 07:33:03 +00:00