char *trsvcid;
char *hostnqn;
char *nr_io_queues;
+ char *keep_alive_tmo;
char *raw;
char *device;
} cfg = { 0 };
max_len -= len;
}
+ if (cfg.keep_alive_tmo) {
+ len = snprintf(argstr, max_len, ",keep_alive_tmo=%s", cfg.keep_alive_tmo);
+ if (len < 0)
+ return -EINVAL;
+ argstr += len;
+ max_len -= len;
+ }
+
return 0;
}
{"nr-io-queues", 'i', "LIST", CFG_STRING, &cfg.nr_io_queues,
required_argument,
"number of io queues to use (default is core count)" },
+ {"keep-alive-tmo", 'k', "LIST", CFG_STRING, &cfg.keep_alive_tmo, required_argument,
+ "keep alive timeout period in seconds" },
{0},
};