Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 308A9C433ED for ; Fri, 21 May 2021 08:23:59 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id E1B796135C for ; Fri, 21 May 2021 08:23:58 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E1B796135C Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=suse.de Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-nvme-bounces+linux-nvme=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=VJPeQqZrl+AnRa3RShftBw9ndAfhGxoCuY81HtZ/VBo=; b=X1Ockig7koZd5dFPHyuvlVy3UV GRz+BnUdT8ak82u78r8k0OlrJx/FwAV94/fRdlEE3aeW0e9mc7xNuOHAh2SZasstKZvzyCuippoxI OsGztJvGsmlBRqRjMP21vqtamvQEfMVgSx50Pct7diFgt/1Fm5jphmZkzXZ4+JT+26x8SZagCjQ1h CMbixxAlPTjUnaIv67Jp7WoA2/EPRzvOIE2Oz0+zsi7UQuA3d+7wmy2ZKcY3OH44Z9l5RK0EW3JDy 9yowBiXI5Oq/U/PFzdKOcfF+T26th6/hi9LxC5IoLhCsvY8AkK4yg3v4cQsLYXU2HxoQTx0HNr2Yu IfUD5jTg==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1lk0Rm-004PC5-5u; Fri, 21 May 2021 08:23:54 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1lk0Rk-004PBs-0a for linux-nvme@desiato.infradead.org; Fri, 21 May 2021 08:23:52 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:In-Reply-To:References; bh=WwVE4pENkO9hMThdy7oGlswfz5Ah6La1fxOhqFaTOuA=; b=lcnh3GezMgoR+gjV+y2Qsl9lQs MFOvKAxkQM2hbZxy2vPgX/C/vfA0rgPNyGemxwA/0fFjTfmoht3pouuixJGWK4euGY0F4pv7zwT/H MhocTHkfWPVHjnM6kdcFkgTj28Ch2JK+6CA9KrCunmGVcXCHt5DSrkqkw+gKgbYc8vB3XjjZNxk+v +ngtoGk7pl3fQt03dKTiua/ajeIk6lYiTQ113VkedjUzD1yXsJSgrQUboKnW2i2ZJL1AwE9w87pVt n859eN9sdtoQNe/80CLuXvG/w9P92v5FmZKJHvgyZxDsiEEhpZ+z7lSDlsIJNnHKZc1jZC3r8bXo/ +S7CJVLA==; Received: from mx2.suse.de ([195.135.220.15]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lk0Rh-00GwUa-Il for linux-nvme@lists.infradead.org; Fri, 21 May 2021 08:23:50 +0000 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 4BD4BAAA6; Fri, 21 May 2021 08:23:48 +0000 (UTC) From: Hannes Reinecke To: Christoph Hellwig Cc: Sagi Grimberg , Keith Busch , linux-nvme@lists.infradead.org, Hannes Reinecke Subject: [PATCH] nvme-fabrics: decode host pathing error for connect Date: Fri, 21 May 2021 10:23:46 +0200 Message-Id: <20210521082346.146966-1-hare@suse.de> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210521_012349_777962_0B4272CD X-CRM114-Status: UNSURE ( 7.97 ) 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: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "Linux-nvme" Errors-To: linux-nvme-bounces+linux-nvme=archiver.kernel.org@lists.infradead.org Add an additional decoding for 'host pathing error' during connect. Signed-off-by: Hannes Reinecke --- drivers/nvme/host/fabrics.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/nvme/host/fabrics.c b/drivers/nvme/host/fabrics.c index a2bb7fc63a73..34a84d2086c7 100644 --- a/drivers/nvme/host/fabrics.c +++ b/drivers/nvme/host/fabrics.c @@ -336,6 +336,11 @@ static void nvmf_log_connect_error(struct nvme_ctrl *ctrl, cmd->connect.recfmt); break; + case NVME_SC_HOST_PATH_ERROR: + dev_err(ctrl->device, + "Connect command failed: host path error\n"); + break; + default: dev_err(ctrl->device, "Connect command failed, error wo/DNR bit: %d\n", -- 2.29.2 _______________________________________________ Linux-nvme mailing list Linux-nvme@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-nvme