From patchwork Fri Aug 11 09:36:04 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Wagner X-Patchwork-Id: 134461 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b824:0:b0:3f2:4152:657d with SMTP id z4csp1059965vqi; Fri, 11 Aug 2023 05:38:19 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHiybtJYg+OPZXKUIChguQrtMVubg5OlNxkf4rjn0uzP+HsexV6Zwz1h2DTih6zursu4op6 X-Received: by 2002:a05:6a20:3943:b0:12f:382d:2a37 with SMTP id r3-20020a056a20394300b0012f382d2a37mr2558978pzg.15.1691757499521; Fri, 11 Aug 2023 05:38:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691757499; cv=none; d=google.com; s=arc-20160816; b=xGbc876f51pQy3WAr6746JsX/Zi3JVKe6GHU3Ae5BK2JifTAgkce5Dsp53fRVaGUmP hNFQyb03qx61Acl8nj1PQnJ8yoCJgDc5JePQzgdk8z1+7u36SJ42ZOR4tBZ727oOggkD l6K4IEOOqm+ck6NsWASIAuzTRvcOz6kKRwq4npUIf3ZFYK6ZIqHxTas8SQ0yR3nKhJ0Z cxoefMCfcFuGuqmjMAfZOA9HOl5xZO5H9VPPjVDfaGA3k207ofYy/pjb7FU3szPQl2GW YCieS02q8mMJ950X4WpgtBo5Q1n4qwkkcXEjxsGC2xCZbkoVxaejLLJPc9m0aEYEBGiU RLtQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:dkim-signature; bh=RiLrAjI/PW50HvWlrm+PJmGFw1sGaHe93CcjuVC440I=; fh=bV6KfuSN3hKC74ZszsAG29NNR6004wMeMm9n9bF0ols=; b=ARmWBBs961Kd7oNeRLzQ7IQxJ5Oi9R28+1laXC/70CoQh2csFKiM2Px3xYWMBe8KOz YIyqhjg/zeJ9eJwFa9+EajY4aebgT1YsygPyYEDjqHW1wnbZqGIMMBswCtI7cTws/fbx ksz2l6/YHb3DUNlAP3DgDmbYoTkPD1/mCn2OkTZ4Yh4wgUTcSxWogXnGGrvRLUNDmvGh 6PB/J8NawQ9OM45JGmKJyvXw8WPUVDwZB3APy26DD6YpRcXFq9Z1/YfWUeaewHAf8sX+ pB9mJ6zDHHKRDoeR8rOIfmKNSc4xhIiua4PJ4e1zdHPj5Ag+C2RJdwoT0A9u1rPZUbgz ifZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b="oNqi5h5/"; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f10-20020a63de0a000000b0055ffed90cc9si861519pgg.609.2023.08.11.05.38.06; Fri, 11 Aug 2023 05:38:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b="oNqi5h5/"; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235235AbjHKJgm (ORCPT + 99 others); Fri, 11 Aug 2023 05:36:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58284 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235103AbjHKJgd (ORCPT ); Fri, 11 Aug 2023 05:36:33 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2001:67c:2178:6::1d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D017130E3; Fri, 11 Aug 2023 02:36:28 -0700 (PDT) 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-out2.suse.de (Postfix) with ESMTPS id 87CED1F889; Fri, 11 Aug 2023 09:36:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1691746587; 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=RiLrAjI/PW50HvWlrm+PJmGFw1sGaHe93CcjuVC440I=; b=oNqi5h5/zwJ1tvBsN0wv/SlP/ckB3ZsZQeRvjdmqQmV1LuGJy5Vt10BQT8dVNhusqUYI2K ZrhGewvKeqltHEfEBZarAhXgpYLCELx/YYHM3BzeDZaGFCIBY1K2fFLC7SHosNc7B4GQ7Q L+6JHtwq9/MUE6cw56JQM0C+0+nD2zU= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1691746587; 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=RiLrAjI/PW50HvWlrm+PJmGFw1sGaHe93CcjuVC440I=; b=To25ejZnOeNxcNud8cyUIGi/7vGMfwzsD6lcY5HU33O0SqROpVN7qUjg9uqOcGY4OAmleD v5KXjZEQqhODwNDQ== 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 76265138E2; Fri, 11 Aug 2023 09:36:27 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id 91rlGxsB1mSrHwAAMHmgww (envelope-from ); Fri, 11 Aug 2023 09:36:27 +0000 From: Daniel Wagner To: linux-nvme@lists.infradead.org Cc: linux-kernel@vger.kernel.org, linux-block@vger.kernel.org, Chaitanya Kulkarni , Shin'ichiro Kawasaki , Max Gurtovoy , Hannes Reinecke , Sagi Grimberg , James Smart , Bart Van Assche , Daniel Wagner Subject: [PATCH blktests v3 03/13] nvme/043: Use hostnqn to generate DHCAP key Date: Fri, 11 Aug 2023 11:36:04 +0200 Message-ID: <20230811093614.28005-4-dwagner@suse.de> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230811093614.28005-1-dwagner@suse.de> References: <20230811093614.28005-1-dwagner@suse.de> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1773936311684240616 X-GMAIL-MSGID: 1773936311684240616 The key is supposed to be derived from the hostnqn not fom the subsys name. Signed-off-by: Daniel Wagner --- tests/nvme/043 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/nvme/043 b/tests/nvme/043 index 4a37f91e50c3..b5cb8378681e 100755 --- a/tests/nvme/043 +++ b/tests/nvme/043 @@ -37,7 +37,7 @@ test() { hostid="${def_hostid}" hostnqn="${def_hostnqn}" - hostkey="$(nvme gen-dhchap-key -n ${subsys_name} 2> /dev/null)" + hostkey="$(nvme gen-dhchap-key -n ${hostnqn} 2> /dev/null)" if [ -z "$hostkey" ] ; then echo "nvme gen-dhchap-key failed" return 1