From patchwork Fri Feb 10 23:56:07 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 9567613 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 82465602B6 for ; Fri, 10 Feb 2017 23:56:25 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6EBEB285D2 for ; Fri, 10 Feb 2017 23:56:25 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 63787285EA; Fri, 10 Feb 2017 23:56:25 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1B5C6285D2 for ; Fri, 10 Feb 2017 23:56:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750874AbdBJX4X (ORCPT ); Fri, 10 Feb 2017 18:56:23 -0500 Received: from esa1.hgst.iphmx.com ([68.232.141.245]:36480 "EHLO esa1.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751350AbdBJX4U (ORCPT ); Fri, 10 Feb 2017 18:56:20 -0500 X-IronPort-AV: E=Sophos;i="5.33,348,1477929600"; d="scan'208";a="83251600" Received: from unknown (HELO milsmgep14.sandisk.com) ([63.163.107.225]) by ob1.hgst.iphmx.com with ESMTP; 11 Feb 2017 07:56:18 +0800 Received: from MILHUBIP04.sdcorp.global.sandisk.com (Unknown_Domain [10.201.67.162]) (using TLS with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by (Symantec Messaging Gateway) with SMTP id 8D.D5.18895.2235E985; Fri, 10 Feb 2017 15:56:18 -0800 (PST) Received: from milsmgip11.sandisk.com (10.177.8.100) by MILHUBIP04.sdcorp.global.sandisk.com (10.177.9.97) with Microsoft SMTP Server id 14.3.319.2; Fri, 10 Feb 2017 15:56:15 -0800 X-AuditID: 0ac94371-0fadb980000049cf-3b-589e5322a4f1 Received: from exp-402881.sdcorp.global.sandisk.com ( [10.177.8.100]) by (Symantec Messaging Gateway) with SMTP id 8E.A4.11415.E135E985; Fri, 10 Feb 2017 15:56:14 -0800 (PST) From: Bart Van Assche To: Doug Ledford CC: , Bart Van Assche , Israel Rukshin , Max Gurtovoy , Laurence Oberman Subject: [PATCH 4/8] IB/srp: Make a diagnostic message more informative Date: Fri, 10 Feb 2017 15:56:07 -0800 Message-ID: <20170210235611.3243-5-bart.vanassche@sandisk.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170210235611.3243-1-bart.vanassche@sandisk.com> References: <20170210235611.3243-1-bart.vanassche@sandisk.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrBLMWRmVeSWpSXmKPExsXCddJ5ka5S8LwIg1tr5C1env/AanFj8VoW i2eHelkszn94xWRx+tEBdgdWj2fTDzN5vN93lc3j8ya5AOYoLpuU1JzMstQifbsErozvczvZ CjZzVKyY9Je1gfEyWxcjJ4eEgInEl5Y2IJuLQ0hgKZPEv57ZUM4ORom7c14xw1St7vvHDpHY zCgxt/M0WIJNwEji2/uZLCC2iICaxKZXi8CKmAUOM0q8/z6bESQhLOAucWvqcTCbRUBVYv3B ZUwgNq+AncSeLb+YIDbIS+xqu8gKYnMK2Et8XzYNzBYCqnnz9RMryFAJgTZWidd/9jFDNAtK nJz5BGwzs4CExMEXL5ghGtQlTi6ZzzSBUWgWkrJZSMoWMDKtYhTLzcwpzk1PLTA00StOzEvJ LM7WS87P3cQICe/CHYyvb3sfYhTgYFTi4eU4OjdCiDWxrLgy9xCjBAezkghvkuu8CCHelMTK qtSi/Pii0pzU4kOM0hwsSuK8WbJTI4QE0hNLUrNTUwtSi2CyTBycUg2MM1aXtF1uV3uxpuXJ vjKvedpLn5jWXPnezvyywepuu8hVFUejo6fDl2lPe95aJHz1zovtM4zfLs64v7DlpJ+g84JM LZUpXCFH1Ttnm08/HaXnenZf5LNnIo0XJ99g/O8Uc/XsHk3l6/LvBdeJfH6/JeJf2EcuoQnG gvVM17LOZXM1flUtfiz6R4mlOCPRUIu5qDgRAPwV945rAgAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrGJMWRmVeSWpSXmKPExsXCtZEjRVcueF6Ewe5OG4uDP9sYLV6e/8Bq cWPxWhaLZ4d6WSzOf3jFZHH60QF2BzaPZ9MPM3m833eVzWPamvNMHp83yQWwRHHZpKTmZJal FunbJXBlfJ/byVawmaNixaS/rA2Ml9m6GDk5JARMJFb3/WPvYuTiEBLYyCjxqnsBC0iCTcBI 4tv7mWC2iICaxKZXi9hBbGaBo4wScz5yg9jCAu4St6YeZwSxWQRUJdYfXMYEYvMK2El0NP5g hVggL7Gr7SKYzSlgL/F92TQwWwio5s3XT6wTGLkXMDKsYhTLzcwpzk3PLDA01CtOzEvJLM7W S87P3cQIDgnOyB2MTyeaH2Jk4uCUamC8EWByquI6Y1FDj+etV6v9HoXkqQnullh8dN43sbc6 s38vcPnP+2nB0pe5uo2neTy3r9319pnH4uST8fUpK1SZj10vN9r80EKV+Ygzz70pXxVZWiJM JFM/yS35dDRW76WCy+PpBvfXnMl5OjWCt/U29/MNfaqmJ9IVHk75uIZVMHzDi60Cmdk6SizF GYmGWsxFxYkACNuSkLkBAAA= MIME-Version: 1.0 Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Report the destination port GID if connecting fails. Signed-off-by: Bart Van Assche Cc: Israel Rukshin Cc: Max Gurtovoy Cc: Laurence Oberman --- drivers/infiniband/ulp/srp/ib_srp.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/infiniband/ulp/srp/ib_srp.c b/drivers/infiniband/ulp/srp/ib_srp.c index a43db9d6b399..d21611a4e90f 100644 --- a/drivers/infiniband/ulp/srp/ib_srp.c +++ b/drivers/infiniband/ulp/srp/ib_srp.c @@ -3446,9 +3446,10 @@ static ssize_t srp_create_target(struct device *dev, ret = srp_connect_ch(ch, multich); if (ret) { shost_printk(KERN_ERR, target->scsi_host, - PFX "Connection %d/%d failed\n", + PFX "Connection %d/%d to %pI6 failed\n", ch_start + cpu_idx, - target->ch_count); + target->ch_count, + ch->target->orig_dgid.raw); if (node_idx == 0 && cpu_idx == 0) { goto err_disconnect; } else {