mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-21 18:50:50 +01:00
nvmecontrol: Treat requested KeepAlive timeout as seconds
The internal KATO is stored in milliseconds, so convert the command line argument (given in seconds) to milliseconds before passing to nvmf_connect(). Sponsored by: Chelsio Communications
This commit is contained in:
parent
f38669ef6d
commit
ee912ee57a
@ -82,7 +82,7 @@ connect_nvm_controller(enum nvmf_trtype trtype, int adrfam, const char *address,
|
||||
|
||||
io = calloc(opt.num_io_queues, sizeof(*io));
|
||||
error = connect_nvm_queues(&aparams, trtype, adrfam, address, port,
|
||||
cntlid, subnqn, opt.hostnqn, opt.kato, &admin, io,
|
||||
cntlid, subnqn, opt.hostnqn, opt.kato * 1000, &admin, io,
|
||||
opt.num_io_queues, opt.queue_size, &cdata);
|
||||
if (error != 0) {
|
||||
free(io);
|
||||
|
Loading…
Reference in New Issue
Block a user