The branch main has been updated by jhb:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=ee912ee57a213b25fc9e559054e5869b4a6b2f61

commit ee912ee57a213b25fc9e559054e5869b4a6b2f61
Author:     John Baldwin <[email protected]>
AuthorDate: 2024-07-18 18:54:43 +0000
Commit:     John Baldwin <[email protected]>
CommitDate: 2024-07-18 18:54:43 +0000

    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
---
 sbin/nvmecontrol/connect.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sbin/nvmecontrol/connect.c b/sbin/nvmecontrol/connect.c
index 14bd0cce1f8f..ef614eca2e2a 100644
--- a/sbin/nvmecontrol/connect.c
+++ b/sbin/nvmecontrol/connect.c
@@ -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);

Reply via email to