File 0034-fabrics-allow-nr_io-write-poll_queues-and-queue-size.patch of Package nvme-cli.12152

From 181d8f70d10a36fe17234ba5a70dfa24559d03a5 Mon Sep 17 00:00:00 2001
From: Sagi Grimberg <sagi@grimberg.me>
Date: Mon, 7 Jan 2019 23:55:31 -0800
Subject: [PATCH] fabrics: allow nr_io/write/poll_queues and queue size to
 discovery

References: bsc#1084379

The discovered controllers will inherit the arguments.

[hare: ported to SLE15 and removed nr_poll_queues and nr_write_queues]

Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Hannes Reinecke <hare@suse.com>
---
 fabrics.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/fabrics.c b/fabrics.c
index 1513c3f..54b1ea2 100644
--- a/fabrics.c
+++ b/fabrics.c
@@ -871,6 +871,8 @@ int discover(const char *desc, int argc, char **argv, bool connect)
 		{"keep-alive-tmo",  'k', "LIST", CFG_INT, &cfg.keep_alive_tmo,  required_argument, "keep alive timeout period in seconds" },
 		{"reconnect-delay", 'c', "LIST", CFG_INT, &cfg.reconnect_delay, required_argument, "reconnect timeout period in seconds" },
 		{"ctrl-loss-tmo",   'l', "LIST", CFG_INT, &cfg.ctrl_loss_tmo,   required_argument, "controller loss timeout period in seconds" },
+		{"nr-io-queues",    'i', "LIST", CFG_INT, &cfg.nr_io_queues,    required_argument, "number of io queues to use (default is core count)" },
+		{"queue-size",      'Q', "LIST", CFG_INT, &cfg.queue_size,      required_argument, "number of io queue elements to use (default 128)" },
 		{NULL},
 	};
 
-- 
2.13.7
openSUSE Build Service is sponsored by