Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 727BBC77B6C for ; Wed, 29 Mar 2023 09:02:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=AHWeEdeCHqqBY/im3wOsoSiaR35kDE0egEtQWNVv+UU=; b=v9miRDDGyN7uWjPSEmssG57Rzf m8NlTPp3vjR4RSTwpPC8XhAVuCPOQg9IZCvGnEJIl1dgEBn/uryNifO9pyQrqk7pjX0Ti+np2SIZD uzuj6Om8EijSdqKqNIBNPJUy4S2sKH4aK0VqS13tPL0V4zSayrlTnMiWBxSci4ShnHyD5usSK1AS7 20zI1qR3RyDIPPqBWswifuUoWebQNNBN8Agxk5+g5rQqs0/X/BUl6QMJ7XFJQ3yz5Py84ypll2WU9 8+pBsaqB6nvCDeSm4ExcfUZi+xSunaRviiBYUfOZsvM74cIW3jOIZestbup+TdkqiwggylDpg7Sk8 wuu1Il6w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1phRhA-00HFHH-0Q; Wed, 29 Mar 2023 09:02:16 +0000 Received: from smtp-out1.suse.de ([195.135.220.28]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1phRh2-00HFCF-36 for linux-nvme@lists.infradead.org; Wed, 29 Mar 2023 09:02:12 +0000 Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id B0DF5219E8; Wed, 29 Mar 2023 09:02:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1680080525; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=AHWeEdeCHqqBY/im3wOsoSiaR35kDE0egEtQWNVv+UU=; b=MvboyGO1sjp5ugq7nwvlVnGSATJdntH5Q88kFfCRexau2+W+mPLk4QvsbhFz+FOeFvaPIg 4t8iRnkJHwVzzQKvsIAHJGcRxnAaQZHLmwIFi13KT1I2iJatr4y3pxls3km44O6pFaUin6 LibQr0DY4rdHLbh3AqH6CMQI7Jo7Evc= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1680080525; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=AHWeEdeCHqqBY/im3wOsoSiaR35kDE0egEtQWNVv+UU=; b=/r8Rvlop8Vi5Xgjf1Iip7RPw/CU2MotfIXO5LC1UjKnodXdzY0GHr38UXDyp56UIHAZE2k 7GPSIICktVoXFEBA== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id A326B138FF; Wed, 29 Mar 2023 09:02:05 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id 8m+qJ43+I2RadgAAMHmgww (envelope-from ); Wed, 29 Mar 2023 09:02:05 +0000 From: Daniel Wagner To: linux-block@vger.kernel.org Cc: linux-nvme@lists.infradead.org, Shin'ichiro Kawasaki , Chaitanya Kulkarni , Keith Busch , Daniel Wagner Subject: [PATCH blktests v3 2/4] nvme/rc: Add nr queue parser arguments to _nvme_connect_subsys() Date: Wed, 29 Mar 2023 11:02:00 +0200 Message-Id: <20230329090202.8351-3-dwagner@suse.de> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230329090202.8351-1-dwagner@suse.de> References: <20230329090202.8351-1-dwagner@suse.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230329_020209_147644_27B79D91 X-CRM114-Status: UNSURE ( 8.93 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-nvme@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-nvme" Errors-To: linux-nvme-bounces+linux-nvme=archiver.kernel.org@lists.infradead.org Signed-off-by: Daniel Wagner --- tests/nvme/rc | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/tests/nvme/rc b/tests/nvme/rc index 20c5e2fa32cb..c1bb08be511a 100644 --- a/tests/nvme/rc +++ b/tests/nvme/rc @@ -326,6 +326,9 @@ _nvme_connect_subsys() { local hostid="$def_hostid" local hostkey="" local ctrlkey="" + local nr_io_queues="" + local nr_write_queues="" + local nr_poll_queues="" while [[ $# -gt 0 ]]; do case $1 in @@ -357,6 +360,18 @@ _nvme_connect_subsys() { ctrlkey="$2" shift 2 ;; + -i|--nr-io-queues) + nr_io_queues="$2" + shift 2 + ;; + -W|--nr-write-queues) + nr_write_queues="$2" + shift 2 + ;; + -P|--nr-poll-queues) + nr_poll_queues="$2" + shift 2 + ;; *) positional_args+=("$1") shift @@ -387,6 +402,16 @@ _nvme_connect_subsys() { if [[ -n "${ctrlkey}" ]]; then ARGS+=(--dhchap-ctrl-secret="${ctrlkey}") fi + if [[ -n "${nr_io_queues}" ]]; then + ARGS+=(--nr-io-queues="${nr_io_queues}") + fi + if [[ -n "${nr_write_queues}" ]]; then + ARGS+=(--nr-write-queues="${nr_write_queues}") + fi + if [[ -n "${nr_poll_queues}" ]]; then + ARGS+=(--nr-poll-queues="${nr_poll_queues}") + fi + nvme connect "${ARGS[@]}" 2> /dev/null } -- 2.40.0