UPDATE_CFG_OPTION(ctrl_cfg, cfg, reconnect_delay, 0);
UPDATE_CFG_OPTION(ctrl_cfg, cfg, ctrl_loss_tmo,
NVMF_DEF_CTRL_LOSS_TMO);
+ UPDATE_CFG_OPTION(ctrl_cfg, cfg, fast_io_fail_tmo, 0);
UPDATE_CFG_OPTION(ctrl_cfg, cfg, tos, -1);
UPDATE_CFG_OPTION(ctrl_cfg, cfg, duplicate_connect, false);
UPDATE_CFG_OPTION(ctrl_cfg, cfg, disable_sqflow, false);
(strcmp(transport, "loop") &&
add_int_argument(argstr, "ctrl_loss_tmo",
cfg->ctrl_loss_tmo, false)) ||
+ (strcmp(transport, "loop") &&
+ add_int_argument(argstr, "fast_io_fail_tmo",
+ cfg->fast_io_fail_tmo, false)) ||
(strcmp(transport, "loop") &&
add_int_argument(argstr, "tos", cfg->tos, true)) ||
add_bool_argument(argstr, "duplicate_connect",
* @nr_io_queues: Number of controller IO queues to establish
* @reconnect_delay: Time between two consecutive reconnect attempts.
* @ctrl_loss_tmo: Override the default controller reconnect attempt timeout in seconds
+ * @fast_io_fail_tmo: Set the fast I/O fail timeout in seconds.
* @keep_alive_tmo: Override the default keep-alive-timeout to this value in seconds
* @nr_write_queues: Number of queues to use for exclusively for writing
* @nr_poll_queues: Number of queues to reserve for polling completions
int nr_io_queues;
int reconnect_delay;
int ctrl_loss_tmo;
+ int fast_io_fail_tmo;
int keep_alive_tmo;
int nr_write_queues;
int nr_poll_queues;
if (!strcmp("ctrl_loss_tmo", key_str) &&
cfg->ctrl_loss_tmo != NVMF_DEF_CTRL_LOSS_TMO)
cfg->ctrl_loss_tmo = json_object_get_int(val_obj);
+ JSON_UPDATE_INT_OPTION(cfg, key_str,
+ fast_io_fail_tmo, val_obj);
if (!strcmp("tos", key_str) && cfg->tos != -1)
cfg->tos = json_object_get_int(val_obj);
JSON_UPDATE_BOOL_OPTION(cfg, key_str,
JSON_INT_OPTION(cfg, port_obj, queue_size, 0);
JSON_INT_OPTION(cfg, port_obj, keep_alive_tmo, 0);
JSON_INT_OPTION(cfg, port_obj, reconnect_delay, 0);
- if (strcmp(transport, "loop"))
+ if (strcmp(transport, "loop")) {
JSON_INT_OPTION(cfg, port_obj, ctrl_loss_tmo,
NVMF_DEF_CTRL_LOSS_TMO);
+ JSON_INT_OPTION(cfg, port_obj, fast_io_fail_tmo, 0);
+ }
JSON_INT_OPTION(cfg, port_obj, tos, -1);
JSON_BOOL_OPTION(cfg, port_obj, duplicate_connect);
JSON_BOOL_OPTION(cfg, port_obj, disable_sqflow);