From patchwork Fri Jan 29 23:14:55 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 8168571 Return-Path: X-Original-To: patchwork-linux-rdma@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id DE2439F96D for ; Fri, 29 Jan 2016 23:15:02 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 03DD2201B4 for ; Fri, 29 Jan 2016 23:15:02 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D7CC820160 for ; Fri, 29 Jan 2016 23:15:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753506AbcA2XPA (ORCPT ); Fri, 29 Jan 2016 18:15:00 -0500 Received: from mail-bn1on0055.outbound.protection.outlook.com ([157.56.110.55]:21280 "EHLO na01-bn1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753391AbcA2XO6 (ORCPT ); Fri, 29 Jan 2016 18:14:58 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sandiskcorp.onmicrosoft.com; s=selector1-sandisk-com; h=From:To:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=LY0v0svBt9jxekrAa2L9n2pTiBkvSOjlNSVFaXjaDhY=; b=oJ+z1z8/SC/klWzf8YfLC1ftLDEoWvgx+kHfMcr8YAc+kqT8fhFTbCcbTouCF8JHTm3JazkRMulNZjUgs0Nie4emHMTqQzgxvefrL0FjzTnZlbf2tfR4bE+GTytSC+aJHGtu3rDHp78PLZDZl8fimVVvyvtcH1vwMXFtq/dwMe0= Received: from BY2PR02CA0025.namprd02.prod.outlook.com (10.141.216.15) by BL2PR02MB291.namprd02.prod.outlook.com (10.141.90.148) with Microsoft SMTP Server (TLS) id 15.1.390.13; Fri, 29 Jan 2016 23:14:57 +0000 Received: from BN1AFFO11FD023.protection.gbl (2a01:111:f400:7c10::150) by BY2PR02CA0025.outlook.office365.com (2a01:111:e400:2c40::15) with Microsoft SMTP Server (TLS) id 15.1.396.15 via Frontend Transport; Fri, 29 Jan 2016 23:14:57 +0000 Authentication-Results: spf=pass (sender IP is 63.163.107.174) smtp.mailfrom=sandisk.com; lst.de; dkim=none (message not signed) header.d=none;lst.de; dmarc=bestguesspass action=none header.from=sandisk.com; Received-SPF: Pass (protection.outlook.com: domain of sandisk.com designates 63.163.107.174 as permitted sender) receiver=protection.outlook.com; client-ip=63.163.107.174; helo=milsmgep12.sandisk.com; Received: from milsmgep12.sandisk.com (63.163.107.174) by BN1AFFO11FD023.mail.protection.outlook.com (10.58.52.83) with Microsoft SMTP Server id 15.1.355.15 via Frontend Transport; Fri, 29 Jan 2016 23:14:55 +0000 Received: from MILHUBIP04.sdcorp.global.sandisk.com ( [172.22.12.162]) by (Symantec Messaging Gateway) with SMTP id 0D.A8.25823.F62FBA65; Fri, 29 Jan 2016 15:14:55 -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.248.2; Fri, 29 Jan 2016 15:14:56 -0800 X-AuditID: ac160a69-647ff700000064df-8e-56abf26f2f6e Received: from [10.60.52.49] ( [10.177.8.100]) by (Symantec Messaging Gateway) with SMTP id B0.67.02700.F62FBA65; Fri, 29 Jan 2016 15:14:55 -0800 (PST) Subject: [PATCH v2 10/22] IB/srpt: Do not complain about initiator names without leading "0x" To: Doug Ledford References: <56ABF16E.7070006@sandisk.com> CC: Christoph Hellwig , Sagi Grimberg , "Alex Estrin" , "linux-rdma@vger.kernel.org" From: Bart Van Assche Message-ID: <56ABF26F.4010509@sandisk.com> Date: Fri, 29 Jan 2016 15:14:55 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 In-Reply-To: <56ABF16E.7070006@sandisk.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrBLMWRmVeSWpSXmKPExsWyRoxnkW7+p9VhBmvmKFpcePqdyeLl+Q+s FitXH2WyeHaol8XiRtsDNgdWj8V7XjJ57L7ZwObxbPphJo/3+66yeXzeJBfAGsVlk5Kak1mW WqRvl8CV0ff8H1PBAoGKFzs/sTQwbuftYuTkkBAwkVj99hJbFyMXh5DAJkaJbac2QTk7GCV6 GqcywVTtWHWYCSIxh1Fi+sx7rCAJYYF4iW9nIYpEBNQkNr1axA5iCwloSZy78IUdpIFZYBWj xKar18ESbAJGEt/ez2QBsXmBipqWngWzWQRUJbr+bGQGsUUFIiQOd3axQ9QISpyc+QSshlNA W2LJ7AtANgfQUE2J9bv0QcLMAvIS29/OYQbZJSGwiVXiQMtmFogj1CVOLpnPNIFReBaSUbMQ 2mchaV/AyLyKUSw3M6c4Nz21wNBIrzgxLyWzOFsvOT93EyM4PrgydzCumGR+iFGAg1GJh3fB itVhQqyJZcWVuYcYJTiYlUR4614AhXhTEiurUovy44tKc1KLDzFKc7AoifNat6iFCQmkJ5ak ZqemFqQWwWSZODilGhjDeHzOZPLkyAf8qJt4fnIgq3j0a4alewPVPO5fO7HnzN+CKRuSWI5v uGu/yOPA+S/nTSQ+zI+wjrCujtPW81grHarArmBx6unyRVaSBtM3dnf8rle6fmDOqbrJSYIK aob3X6ey3u39JBfatnEJm0OwWePnG77hie6dq5fefO9UWebD6q3A1aHEUpyRaKjFXFScCABn 3T0tiwIAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrHJMWRmVeSWpSXmKPExsXCtZEjRTf/0+owg8UfeC0uPP3OZPHy/AdW i5WrjzJZPDvUy2Jxo+0BmwOrx+I9L5k8dt9sYPN4Nv0wk8f7fVfZPD5vkgtgjeKySUnNySxL LdK3S+DK6Hv+j6lggUDFi52fWBoYt/N2MXJySAiYSOxYdZgJxBYSmMUocepxLIgtLBAv8e3s VLC4iICaxKZXi9gharQkzl34AmRzcTALrGKU+L3yAxtIgk3ASOLb+5ksIDYvUFHT0rNgNouA qkTXn43MILaoQITE4c4udogaQYmTM5+A1XAKaEssmX0BzGYWUJf4M+8SM4QtL7H97RzmCYx8 s5C0zEJSNgtJ2QJG5lWMYrmZOcW56ZkFhoZ6xYl5KZnF2XrJ+bmbGMEhyhm5g/HpRPNDjEwc nFINjLuzPP8YmGwKbOT0X6+zuWrKoUMnVtmlfXGYsPYC7/HpxQ4yHpO+ZefclNh8KaR87S3O fKeHy5wYlmupZc65JhT0zG6SjpHVQb6L3T1e2Q4vpkz08etoVTyYLvCrePYRvmk/WlQSzr87 Wxd8vyJgs+PVCU+DDCwsO8Imvw10ePinS3BLwU9xViWW4oxEQy3mouJEAHRemIEBAgAA X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11FD023; 1:plj9tRj/UusaWJiYjvDKSVUm5v00g8u+VJnmUKEFarct6SvBwBaCd3lHhBpriaVaV9GgzFcuyxu4BrnOMvAsFfFhx6ltxhxTnSpUCffuVzbNGG3pS+pBHja2OZ65kNBxZg5HJohxFFRxpuTUeNNIL4E0FHQpQ8EL2V6Xpm4/z93vTpzwkGrUpdqx22WSirQTVx8NR2/G/Y/+AVSjpZ4TXeiUKrnKIVCVE+adO8oYMql1652ed8wx0sjOcFGOaJ75UxtU41UpnXnhN+I2NEQt2gYHSLaViw3IxWmKCTk/twHSAoY6DduO30H2Y5kGRGAJyuy6DF7mM9CDsERQcyakBrbip6K8Yn8sQU/eTF6ltFbxT+E+6w1Phyrvh0xmCY7STqqs1ml2Q5Ri9drFuCY2/1LX/W4W7Io0addkZT8bqRLfom6+D+17icbBtlEGzVJT X-Forefront-Antispam-Report: CIP:63.163.107.174; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(2980300002)(438002)(199003)(189002)(2906002)(92566002)(83506001)(87936001)(4326007)(4001350100001)(50466002)(80316001)(23676002)(19580395003)(64126003)(11100500001)(36756003)(77096005)(2950100001)(19580405001)(5008740100001)(230700001)(229853001)(1096002)(110136002)(86362001)(5001960100002)(1220700001)(586003)(189998001)(106466001)(33656002)(65956001)(65806001)(50986999)(65816999)(47776003)(87266999)(76176999)(54356999)(21314002); DIR:OUT; SFP:1101; SCL:1; SRVR:BL2PR02MB291; H:milsmgep12.sandisk.com; FPR:; SPF:Pass; MLV:sfv; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2PR02MB291; 2:Ge0GgQ34U6p6BCoYAU/llUBizHoqsUU/Hsa9+0uv6jmlFzAZK9ZmQY27vGgJ5RoZRWT4Ji2crE1KPVNfOO4RPi9Ydl3VeWYQ3Eu994gDoWln1z240/d1ZOA2k9phmbMTeyJ3swtLGKOHwe0OkM0qlQ==; 3:TRaEBA1HebML2OhJdgxbG1ZEMLLrqvMN0pU6U8Kfr9a31yi1+FW9h7oMbqpCRM5KWxWxgFUpMMgrukBstL/suMzZHaqZMoDg9ZV4fzJ/Z6CfHYf23z0lLOKYP9EGtMS90xBuAgbaMKankSC+oZQoDHduKUQ7t6q7pP+e3Pi9Dz/ytreAbBzMFlzmB3Iiy3w8lx7/oNQzJM1hDFPX40OSHyWahasqKb+tT/v3DDN8SouYFIn4g1bEZhkh7rVsxNcd6aJ8Qk7K49qKdH3/WVWQkA==; 25:sooTHREZ7So27P7xzwixpdyFGbs63T16iiiMzCS0Rjx+ZJVwKxFl/xkjIZBHwkLXIHH3Zax8SvQ7pEMlrW0HY41qjJ8rbGVt3dwl+Z8SKzJ1Mufybq88Se0U3VbXnjY8GG5dOKrrotVhPu8rB2X9Qfo/bcdFg0PzKjifCxMLyVVzp9KUIByDxHPUJX9hBc3BfVYfbbEtCJhb3pdN43rCizw0DjBYGbAV0xFumzt53yMwXRo7+RPEiKpz1OBgWGm0 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(8251501001); SRVR:BL2PR02MB291; X-MS-Office365-Filtering-Correlation-Id: 8c94adef-bb32-4c48-f7d8-08d329020046 X-Microsoft-Exchange-Diagnostics: 1; BL2PR02MB291; 20:+c53rqnvnjcuY4b21gkee4rJ0XiWOZfSsPfsqO2KYFl7tLJqjJ3jaS9UsmxBQxDDA/6JhxEeGV0AOMf5q5yNXjgnkgvX0ly2C4tplKDl54mKOufFt7cT38vkuDpdgjYx6DeNS/uKtuuBbz8tslkyoI5Og+H7SxxD/nGuYeQTCvaAW0zFAQGcOESgjg4H4fQEDysvUnhAOh0bqD9d6Ot0oAT/DNTwzWDOBxZUUzUVwN970Lr/NyUkCLDA7Wa4XCwW0s5ldl1ktE4QzJIQI9+Xq0Ddlj2Y9hpftNfwIyGfALZD2cIB/W2hFfHB18iWS4aFs76n+8fqm+OWlqA7kO+3bzoB+o9pu/nP2WKErAzRJlQUrlkt0U387EzDakCJEkXf1riFnfgrFXu7zqCwVrqWsOQOsVA36/pLF99QM+No9+4NNEoDL8jHfuu5A6sWQMpAbCqRJEDBKbvulwqXI3RJEQ2+fG/zjgKfYoKou7B92vByqQU2BYdMxa9VHuQT3drG X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(34787635062028)(42932892334569); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(13023025)(13015025)(8121501046)(13017025)(13018025)(5005006)(13024025)(10201501046)(3002001); SRVR:BL2PR02MB291; BCL:0; PCL:0; RULEID:; SRVR:BL2PR02MB291; X-Microsoft-Exchange-Diagnostics: 1; BL2PR02MB291; 4:ELNK6FUybaQo3M+BH2leggeA4gsXx/sdsE1IVr43loS7XntL9OwI1axKYCMeFZCMbSp0sMgAb8VGjK7ZcI+N3TgIH+zJZi5hWlhmf4SJhuLSs0e36UHAOUWXUJP5LjF8mWwGKWugB/59ZNtZVGtfxBSYWxi4aOz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BbThCeDJyREkzMUcvTnlvdWdwc3gv?= =?utf-8?B?REZhaVRqWlY1WW94SFN3amNCbDVGM3lhd0RUUU1kUWhqbHVzZjNDT3BvTm1N?= =?utf-8?B?ajBRPT0=?= X-Microsoft-Exchange-Diagnostics: 1; BL2PR02MB291; 5:lBcGzpsu2JwIcTEcPcieQYPZCtAOBwqhJ3hPk7c3eDslZ2+RImSo3v5tbWrva9GtDf0tMjjOpYKAK1tudBvWco5HDrgYjUGz5vRXHBgenuOvrqvyGCOgUBr2iUGUKEH2EK9QQUkOqN0hMQSGAyNbrw==; 24:wHP8ZJDLWOXqrsQoq/iyxGRzyZzcMEc1ygKpWSvvvTx9xtSvcivpj8BSnZcaajyykGYPafXjgKcWnMS0Z0bH9JIhuPOXblNUrnoGOHr0mx0=; 20:OxOxlkMUXWzgxQJfapAqn7qgq4NWpDIBNULB+Hzy3Mucg7wQ+fjhssMyG44uL9rXyYpEUIDY7Katt8jcfQJ2VlHGqF3olZ1nblXtsHTzFrQmgKcOAoh0IDvL7gSfVbp/Z7YWrr8fgmUnNuBU0WwXPDoWusmdAtV6wJBKHMC++ENi5gRn5S/KEO713dEyDM+rPfKgW7/FwcjfbRasQYxK/vMxIFljeV7EPXIhxoCtRTnX/HHTpN2F1CPUpRP9zCN3 SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Jan 2016 23:14:55.5548 (UTC) X-MS-Exchange-CrossTenant-Id: fcd9ea9c-ae8c-460c-ab3c-3db42d7ac64d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=fcd9ea9c-ae8c-460c-ab3c-3db42d7ac64d; Ip=[63.163.107.174]; Helo=[milsmgep12.sandisk.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL2PR02MB291 Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Only log an error message if neither the lookup with leading "0x" nor the lookup without leading "0x" succeeds. Signed-off-by: Bart Van Assche Fixes: f246c941549c ("ib_srpt: Convert acl lookup to modern get_initiator_node_acl usage") Cc: Christoph Hellwig Cc: Sagi Grimberg Cc: Nicholas Bellinger --- drivers/infiniband/ulp/srpt/ib_srpt.c | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/drivers/infiniband/ulp/srpt/ib_srpt.c b/drivers/infiniband/ulp/srpt/ib_srpt.c index b46e8d7..d892736 100644 --- a/drivers/infiniband/ulp/srpt/ib_srpt.c +++ b/drivers/infiniband/ulp/srpt/ib_srpt.c @@ -2042,7 +2042,6 @@ static int srpt_cm_req_recv(struct ib_cm_id *cm_id, struct se_node_acl *se_acl; u32 it_iu_len; int i, ret = 0; - unsigned char *p; WARN_ON_ONCE(irqs_disabled()); @@ -2200,7 +2199,6 @@ static int srpt_cm_req_recv(struct ib_cm_id *cm_id, be64_to_cpu(*(__be64 *)(ch->i_port_id + 8))); pr_debug("registering session %s\n", ch->sess_name); - p = &ch->sess_name[0]; ch->sess = transport_init_session(TARGET_PROT_NORMAL); if (IS_ERR(ch->sess)) { @@ -2210,18 +2208,15 @@ static int srpt_cm_req_recv(struct ib_cm_id *cm_id, goto destroy_ib; } -try_again: - se_acl = core_tpg_get_initiator_node_acl(&sport->port_tpg_1, p); + se_acl = core_tpg_get_initiator_node_acl(&sport->port_tpg_1, + &ch->sess_name[0]); + /* If no match, retry without leading '0x'. */ + if (!se_acl) + se_acl = core_tpg_get_initiator_node_acl(&sport->port_tpg_1, + &ch->sess_name[2]); if (!se_acl) { pr_info("Rejected login because no ACL has been" " configured yet for initiator %s.\n", ch->sess_name); - /* - * XXX: Hack to retry of ch->i_port_id without leading '0x' - */ - if (p == &ch->sess_name[0]) { - p += 2; - goto try_again; - } rej->reason = cpu_to_be32( SRP_LOGIN_REJ_CHANNEL_LIMIT_REACHED); transport_free_session(ch->sess);