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 DA81DC47DDB for ; Mon, 29 Jan 2024 15:33:38 +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: Content-Type:In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date: Message-ID:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=ox4xxDn6oljEQ7K6qyL7G2CvcUJki9PX5lD+UlUvILQ=; b=Jhe1KqIffyy1faJyE9cgqrfFZ/ dgeAr6sQCVXihUfNhR/X6WRMe+FsSf1GQdrMLzCvVj+qpK67PqxAQZwxaD1PKC/UvboQ2Tb6mnuYy jZm4c4XKCdE0jgiKlhITjd2Elg4qPE+3Ba9PDvMsOf+oTJG+6Q6rJLBpKEJ+XT4qNRTfX1sT0NdLP yLuSThGhZUg8lfHgPe2xgTepp1uSgkSCz07AD5GZ4wwyATVDK34SYDZMKPl/dVjSCGopJdj1BioyE aOqPpAzvKKzeoRMZyCNYCSloF5czuqul0tfxV6xIJnsLcoPnVSePLziwEimtH9GAeTe7J/hxbRwno YSrubLNA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rUTdi-0000000DIUp-1NL4; Mon, 29 Jan 2024 15:33:38 +0000 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rUTdY-0000000DIOe-2LkV for linux-nvme@lists.infradead.org; Mon, 29 Jan 2024 15:33:30 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1706542407; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ox4xxDn6oljEQ7K6qyL7G2CvcUJki9PX5lD+UlUvILQ=; b=Dj/ZpBYeuu2zTE9NR+51iLKQSB6Z+7XhB4x0AjrJmEnDgJ1A70P/r/UkHxLZL97ErqDajt hinbjaUK00bd+KzjnRo0iWa5/dpCBPemByXvu+zN1YzsxAVR7MIRgPdhrjwkWFGGQYVStc vW7yZt2ezQUpXeuCzPg0FJfE0MbcBws= Received: from mimecast-mx02.redhat.com (mx-ext.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-306-2Pj52PxeNmiTDi5FsJy1nw-1; Mon, 29 Jan 2024 10:31:52 -0500 X-MC-Unique: 2Pj52PxeNmiTDi5FsJy1nw-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.rdu2.redhat.com [10.11.54.2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id AE8013C2E0A0; Mon, 29 Jan 2024 15:31:51 +0000 (UTC) Received: from [10.22.16.145] (unknown [10.22.16.145]) by smtp.corp.redhat.com (Postfix) with ESMTP id 42DF140C122E; Mon, 29 Jan 2024 15:31:51 +0000 (UTC) Message-ID: <1c4ade65-7bbc-4529-918d-05a09601574c@redhat.com> Date: Mon, 29 Jan 2024 10:31:51 -0500 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCHv2 1/3] nvme-tcp: show hostnqn when connecting to tcp target To: "Nitin U. Yewale" , chaitanyak@nvidia.com, linux-nvme@lists.infradead.org Cc: kbusch@kernel.org, axboe@kernel.dk, hch@lst.de, sagi@grimberg.me, loberman@redhat.com References: <20240129110639.45542-1-nyewale@redhat.com> From: John Meneghini Organization: RHEL Core Storge Team In-Reply-To: <20240129110639.45542-1-nyewale@redhat.com> X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.2 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Language: en-US Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240129_073328_853885_DFAFE7E2 X-CRM114-Status: GOOD ( 12.55 ) 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 Reviewed-by: John Meneghini On 1/29/24 06:06, Nitin U. Yewale wrote: > Log hostnqn when connecting to nvme target. > As hostnqn could be changed, logging this information > in syslog at appropriate time may help in troubleshooting. > > Signed-off-by: Nitin U. Yewale > --- > drivers/nvme/host/tcp.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/nvme/host/tcp.c b/drivers/nvme/host/tcp.c > index d058d990532b..5eb53c2566d8 100644 > --- a/drivers/nvme/host/tcp.c > +++ b/drivers/nvme/host/tcp.c > @@ -2753,8 +2753,8 @@ static struct nvme_ctrl *nvme_tcp_create_ctrl(struct device *dev, > if (ret) > goto out_uninit_ctrl; > > - dev_info(ctrl->ctrl.device, "new ctrl: NQN \"%s\", addr %pISp\n", > - nvmf_ctrl_subsysnqn(&ctrl->ctrl), &ctrl->addr); > + dev_info(ctrl->ctrl.device, "new ctrl: NQN \"%s\", addr %pISp, hostnqn: %s\n", > + nvmf_ctrl_subsysnqn(&ctrl->ctrl), &ctrl->addr, opts->host->nqn); > > mutex_lock(&nvme_tcp_ctrl_mutex); > list_add_tail(&ctrl->list, &nvme_tcp_ctrl_list);