From patchwork Tue Feb 14 18:56:33 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: 9572525 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 C4109601E7 for ; Tue, 14 Feb 2017 18:56:53 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9D40027DCD for ; Tue, 14 Feb 2017 18:56:53 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 920A528467; Tue, 14 Feb 2017 18:56:53 +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 4C71127DCD for ; Tue, 14 Feb 2017 18:56:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752889AbdBNS4u (ORCPT ); Tue, 14 Feb 2017 13:56:50 -0500 Received: from esa1.hgst.iphmx.com ([68.232.141.245]:26530 "EHLO esa1.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752868AbdBNS4q (ORCPT ); Tue, 14 Feb 2017 13:56:46 -0500 X-IronPort-AV: E=Sophos;i="5.33,348,1477929600"; d="scan'208";a="86579473" Received: from unknown (HELO milsmgep15.sandisk.com) ([63.163.107.21]) by ob1.hgst.iphmx.com with ESMTP; 15 Feb 2017 02:56:44 +0800 Received: from MILHUBIP03.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 EC.34.57638.BE253A85; Tue, 14 Feb 2017 10:56:43 -0800 (PST) Received: from milsmgip12.sandisk.com (10.177.9.6) by MILHUBIP03.sdcorp.global.sandisk.com (10.177.9.96) with Microsoft SMTP Server id 14.3.319.2; Tue, 14 Feb 2017 10:56:39 -0800 X-AuditID: 0ac94369-26dee9800001e126-50-58a352eba63d Received: from exp-402881.sdcorp.global.sandisk.com ( [10.177.9.6]) by (Symantec Messaging Gateway) with SMTP id 72.D6.18148.8E253A85; Tue, 14 Feb 2017 10:56:40 -0800 (PST) From: Bart Van Assche To: Doug Ledford CC: , Bart Van Assche , Israel Rukshin , Max Gurtovoy , Laurence Oberman Subject: [PATCH v2 5/8] IB/srp: Make a diagnostic message more informative Date: Tue, 14 Feb 2017 10:56:33 -0800 Message-ID: <20170214185636.29250-6-bart.vanassche@sandisk.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170214185636.29250-1-bart.vanassche@sandisk.com> References: <20170214185636.29250-1-bart.vanassche@sandisk.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrOLMWRmVeSWpSXmKPExsXCddJ5ke7roMURBu/PWVm8PP+B1eLG4rUs Fs8O9bJYnP/wisni9KMD7A6sHs+mH2byeL/vKpvH501yAcxRXDYpqTmZZalF+nYJXBkbzr5k K9jMUfFyxX/mBsbLbF2MnBwSAiYSr1uOs3cxcnEICSxlkti0cx4jhLONUeLF/WmsMFXfbh1i hUhsZJSYd/Y0WDubgJHEt/czWUBsEQE1iU2vFoGNYhY4zCjx/vtsRpCEsICXROe9KUA2BweL gKrErXVlIGFeAXuJYyd+MkIskJfY1XYRbBmngIPEzG8LwWwhoJqz/XPAZkoINLFKbHt1jxGi WVDi5MwnYIuZBSQkDr54wQzRoC5xcsl8pgmMQrOQlM1CUraAkWkVo1huZk5xbnpqgaGpXnFi XkpmcbZecn7uJkZIcGfuYLz7xPsQowAHoxIP7wnZxRFCrIllxZW5hxglOJiVRHg1HIBCvCmJ lVWpRfnxRaU5qcWHGKU5WJTEec/JTI0QEkhPLEnNTk0tSC2CyTJxcEo1MPrPYCxyWH71fsAJ LQdp9nOewtm9ETf3/v1hN1W/qUjirfPni5YfnLm75q4T5X08zd/PZ41P1hdB1VmW1xbzf+K5 sjAwx/za01NC/n5mfD399k2lCeWPf3HfCz02o+GSjXC08662mubEgj87Nq23j5F4fMH/ldqk hpn3Xr7e/62vNCtl1/0/+UosxRmJhlrMRcWJADN5HAVqAgAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrCJMWRmVeSWpSXmKPExsXCtZGTTfdF0OIIgy2LuC0O/mxjtHh5/gOr xY3Fa1ksnh3qZbE4/+EVk8XpRwfYHdg8nk0/zOTxft9VNo9pa84zeXzeJBfAEsVlk5Kak1mW WqRvl8CVseHsS7aCzRwVL1f8Z25gvMzWxcjJISFgIvHt1iFWEFtIYD2jxKEPwiA2m4CRxLf3 M1lAbBEBNYlNrxaxg9jMAkcZJeZ85AaxhQW8JDrvTWHsYuTgYBFQlbi1rgwkzCtgL9E5ay0j xHh5iV1tF8HGcwo4SMz8thBqlb3E2f457BMYuRcwMqxiFMvNzCnOTc8sMDTSK07MS8ksztZL zs/dxAgJh6gdjNcnmh9iZOLglGpgDF73bn/LjfZkR43EXZcvll0x37/LyEz23tPyX8WKT8UY bMUZTn0qlozgOc27wIpfqjtWe81U8R2nVN+7FmiuMOM4tDH19Po7+64H2/44uXfZiuTHpk88 Nt7OeTbVLXmG21QXQfHyCRo8Zdaa7HILGlb2JUmbFYld8EoXvuZqXPS/ce+kk2KflViKMxIN tZiLihMBjvpM1LcBAAA= 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 01da4400f5bb..9115d2902ad4 100644 --- a/drivers/infiniband/ulp/srp/ib_srp.c +++ b/drivers/infiniband/ulp/srp/ib_srp.c @@ -3436,9 +3436,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 {