From patchwork Fri Jan 29 23:16:11 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: 8168621 Return-Path: X-Original-To: patchwork-linux-rdma@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id CD46FBEEE5 for ; Fri, 29 Jan 2016 23:16:37 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id D801420340 for ; Fri, 29 Jan 2016 23:16:36 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D500C20328 for ; Fri, 29 Jan 2016 23:16:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755980AbcA2XQf (ORCPT ); Fri, 29 Jan 2016 18:16:35 -0500 Received: from mail-bl2on0053.outbound.protection.outlook.com ([65.55.169.53]:15968 "EHLO na01-bl2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1755896AbcA2XQc (ORCPT ); Fri, 29 Jan 2016 18:16:32 -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=NVMJtckmAU+g0Q1ktiTw8+sDVlf5Op5fNvFc9lhkE7M=; b=RReouLWGiLNmSw9irfChWyauciVm7GJWGgk+6r3t7ORU5GTdj326kRXnF9jbhPQronatM2/x8lYbjAOamR1o8qhSYAbGoDkchVjljlUDa6Pf4B0Vl4L3z+zMPuBDMf1jQU9hAE2Ce8PFdtuHtZffDZEAxKQ9RHQQk1iK4Qv+iS0= Received: from BLUPR0201CA0031.namprd02.prod.outlook.com (10.163.116.41) by BY2PR02MB298.namprd02.prod.outlook.com (10.141.140.21) with Microsoft SMTP Server (TLS) id 15.1.365.19; Fri, 29 Jan 2016 23:16:30 +0000 Received: from BY2FFO11FD053.protection.gbl (2a01:111:f400:7c0c::102) by BLUPR0201CA0031.outlook.office365.com (2a01:111:e400:52e7::41) with Microsoft SMTP Server (TLS) id 15.1.390.13 via Frontend Transport; Fri, 29 Jan 2016 23:16:29 +0000 Authentication-Results: spf=pass (sender IP is 63.163.107.172) smtp.mailfrom=sandisk.com; vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=bestguesspass action=none header.from=sandisk.com; Received-SPF: Pass (protection.outlook.com: domain of sandisk.com designates 63.163.107.172 as permitted sender) receiver=protection.outlook.com; client-ip=63.163.107.172; helo=milsmgep11.sandisk.com; Received: from milsmgep11.sandisk.com (63.163.107.172) by BY2FFO11FD053.mail.protection.outlook.com (10.1.15.190) with Microsoft SMTP Server id 15.1.355.15 via Frontend Transport; Fri, 29 Jan 2016 23:16:28 +0000 Received: from MILHUBIP03.sdcorp.global.sandisk.com ( [172.22.12.162]) by (Symantec Messaging Gateway) with SMTP id 7D.40.29304.BC2FBA65; Fri, 29 Jan 2016 15:16:27 -0800 (PST) Received: from milsmgip11.sandisk.com (10.177.8.100) by MILHUBIP03.sdcorp.global.sandisk.com (10.177.9.96) with Microsoft SMTP Server id 14.3.248.2; Fri, 29 Jan 2016 15:16:11 -0800 X-AuditID: ac160a68-2a63198000007278-93-56abf2cb16ad Received: from [10.60.52.49] ( [10.177.8.100]) by (Symantec Messaging Gateway) with SMTP id 5F.67.02700.BB2FBA65; Fri, 29 Jan 2016 15:16:11 -0800 (PST) Subject: [PATCH v2 14/22] IB/srpt: Inline trivial CM callback functions 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: <56ABF2BB.5060905@sandisk.com> Date: Fri, 29 Jan 2016 15:16:11 -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+NgFvrOLMWRmVeSWpSXmKPExsWyRoxnke7pT6vDDLZ+Nre48PQ7k8XL8x9Y LVauPspk8exQL4vFjbYHbA6sHov3vGTy2H2zgc3j2fTDTB7v911l8/i8SS6ANYrLJiU1J7Ms tUjfLoErY87yG+wF5wQrGtZ1MTYwXubrYuTkkBAwkXi54CNLFyMXh5DAJkaJq5N/Qzk7GCUW Ht7EBlP15NlaNojEHEaJA0e/MYMkhAXcJdbceM4CYosIqElserWIHcQWEtCSOHfhCztIA7PA KkaJTVevgyXYBIwkvr2fCdTAwcELVHRzpzlImEVAVaJr9kNGEFtUIELicGcXWDmvgKDEyZlP wOZzCmhLLJl9AayVWUBTYv0ufZAws4C8xPa3c5hBVkkIHGSVuHzqKdQN6hInl8xnmsAoPAvJ qFkI7bOQtC9gZF7FKJabmVOcm55aYGioV5yYl5JZnK2XnJ+7iREcHVwZOxi3TjI/xCjAwajE w+uxbHWYEGtiWXFl7iFGCQ5mJRHeuhdAId6UxMqq1KL8+KLSnNTiQ4zSHCxK4rzWLWphQgLp iSWp2ampBalFMFkmDk6pBka+A6cjuy1FDI05BSNub92x3cdRfcuDSWlHZxaoOvFd4X6aKnhi 8QYWFdbDkou27GvaamT2c84Pt44Ey25Lu83au/8fYHxrrbV+0p4DopWmaavCZsxfOoe5Yc+N i+/vHN1RuvNq6ozqq6WpbLsSHI9mcb1bdePojqtnbJw0mGeX8QreYbzwN7RdiaU4I9FQi7mo OBEA0he+xIoCAAA= X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrHJMWRmVeSWpSXmKPExsXCtZEjRXf3p9VhBhs2KlhcePqdyeLl+Q+s FitXH2WyeHaol8XiRtsDNgdWj8V7XjJ57L7ZwObxbPphJo/3+66y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63.163.107.172; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(2980300002)(438002)(199003)(189002)(1220700001)(229853001)(23676002)(1096002)(106466001)(83506001)(5001960100002)(2950100001)(110136002)(230700001)(47776003)(86362001)(189998001)(87266999)(65816999)(76176999)(50986999)(54356999)(586003)(4001350100001)(92566002)(33656002)(4326007)(64126003)(87936001)(5008740100001)(50466002)(36756003)(77096005)(19580395003)(2906002)(80316001)(19580405001)(65956001)(11100500001)(65806001); DIR:OUT; SFP:1101; SCL:1; SRVR:BY2PR02MB298; H:milsmgep11.sandisk.com; FPR:; SPF:Pass; MLV:sfv; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2PR02MB298; 2:QyqVtwiXITAkH6nyeCjPswbsDeVEDGCdugVNl/6GyaN0m4pMWcQBZnTYeOKo5Eq7WfkmaYl8HH3Zy+ec1AIqMEKZtLNL22H57aoFnjs6IhaavfG2oa+VJ5xaghXivkv3uasd+0YCWoOY+3SCs+ESrQ==; 3:jSPJqK7XV9Ty11rDWYLL8UwIn89ZRgV6uWMQNNjQ+u4VAcwf49bRCRw/H2e/acCOW2w+UUgLkLyTOe4gZa8r96jqrNbgCYYpIaKCyZR/1qEFaMdwfevigMZiW8D3wcc2X7mhQXBNQHc3z7EZJAnuV+9BlZc/Sv9qKo5UPHbBozg8aCuMHWI1xv0x0SZLOO1Srsxdj2epOHYN1s2WIArggB8dEWXeSqyHE7RAoYQYtYtK9bhSkbuQTeTMDQyTj4McFRWzClcrKJFkxR4+FoSmkg==; 25:CDblPl66j6Kzfqw/qh85iPjVL0YnUuHTwPLn+ELGddU6Xqd0gXuFuYEd4ayYW6aZu6RiRnWE9ApIPbr2efG7+p+zpwOHgCo93IkAX9n93dJ6V8yrrx60VEngTTLh2TwqF9f8+ViYC7HXjJxkTuAFNPw+UFMNxzOT5WbeJczNWFpr5D0VC+FKsSGOHIEaobjafAyVZ138edwjyB4MS1CDareI4th1Cz1an1jJvVqGOsvCxdYP5cIfDMKTM9/kFumf X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(8251501001); SRVR:BY2PR02MB298; X-MS-Office365-Filtering-Correlation-Id: be1178c0-189e-4f07-c42b-08d32902378c X-Microsoft-Exchange-Diagnostics: 1; BY2PR02MB298; 20:V6nnIe+2ktsakPJ7EczreRx5UN/2mP93ytLyONB/a+zsYe17NBxlcEx/TPzysGma79X2mCTaa6t529RKCudaAifKCYivIkGyOJIzAKOY8/2Y8N3OUwC4OAH4nE8GBfbdA6iECBwGvnlwmPEa7KdMPcFks/z+SY2zfHwM2cqJpVVzuK0Z/X49XtPnt+GKftvkYvDIJf4uI7mPrp3WlLry1U+bLoOMxo/1kNGx0jsQqEv5BgEvjn79VXwWHgQntB00R0CzE0y2KR2BeHNACdiRkSkejNiaTKp3Pe6mPYbN8sdIatSDt/YT0nwn4EdhI3aRHawu/JZGEqJTudg53mYkerDKz5bi+Lzx23QK59A2fp6HjDCIsVFp/lFZpxyD8jqLPXnIKbs7VyA/g0TWO583vH4I0tDuQqHrNBApg1BhBj7kAGg52hxIDzJJS0NHsLQjNsRbxWIR7dUVuLHZkhDXHw5grC/V/186i6nklRsf4jscACcyUEIKRSjar+ic8u0d 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)(13018025)(13015025)(8121501046)(13017025)(5005006)(13023025)(13024025)(10201501046)(3002001); SRVR:BY2PR02MB298; BCL:0; PCL:0; RULEID:; SRVR:BY2PR02MB298; X-Microsoft-Exchange-Diagnostics: 1; BY2PR02MB298; 4:v3ksS6+j6j03d7e2sVQoR4spL83rRJOxXAR9Qw+Rl2hqnEhfQawEI2YKw7Ot0Bm4ALQwToHbkhV8oSRmmjgew4Rq+xZ67N8C2aEmU4lWSAfYpzpaVL+Ir3OwjRHRo84UP5f4saFCxWIo0wkJIxxDea8bg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ZVA3ZVdiTlAxOGZKR3R1RDhYeGRUSk1SaEc4RDZW?= =?utf-8?Q?pun7cFDbWVlqL43OAnHdhf6sSC?= X-Microsoft-Exchange-Diagnostics: 1; BY2PR02MB298; 5:i1L9aN37nNUKNT7vRM/sc7p+AxnFQ8VOSenDhYgGG9l2SE/X0MFTdD+iYrmHOdmifVdZDkq3RACfQmN4wG8fVPeriPMbyF2TzsHxI9ovYbfUpNJ33Q9urP/hpcb3pE49BF1y3I3s/1vVAfJa454U0w==; 24:hASn3Bv521/9T6o1F2lAltE8k7gn1a1Z6uNNHabEKDyVIWXmwkuxd0z0As07vgKhHrA30cCHNudz/Q+gugfD/GnVynl3127DLwiluzsrFEo=; 20:f4EAUU1ZGNzbCRFYFgHuDYyw+F4Hn3J9MFYwvKxQpm1rsUKr8QLr1oColoD1OD679jpNY1Tkp7XsgO3NoyElgJnAu1KfVsX8+MhkrMzwdwhPaIvfnl1wo+5reiQDdJf/T00xatEsU8SO+/VHkSsaKRTCYd9a14UACol+alAQxF1ezG+NY/vEFwLbSsSqik1dcEwRUTiGhaS19Pih+93/Pt34jN06Bad+hdIgCLW9HHPvbzJVtd4iKXN72hs281Kl SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Jan 2016 23:16:28.7549 (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.172]; Helo=[milsmgep11.sandisk.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2PR02MB298 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 Inline those CM callback functions that are only two lines long. Signed-off-by: Bart Van Assche Cc: Christoph Hellwig Cc: Sagi Grimberg Reviewed-by: Christoph Hellwig Reviewed-by: Alex Estrin --- drivers/infiniband/ulp/srpt/ib_srpt.c | 31 +++++++------------------------ 1 file changed, 7 insertions(+), 24 deletions(-) diff --git a/drivers/infiniband/ulp/srpt/ib_srpt.c b/drivers/infiniband/ulp/srpt/ib_srpt.c index 652e1ef..5e4fee7 100644 --- a/drivers/infiniband/ulp/srpt/ib_srpt.c +++ b/drivers/infiniband/ulp/srpt/ib_srpt.c @@ -2315,18 +2315,6 @@ static void srpt_cm_rtu_recv(struct ib_cm_id *cm_id) } } -static void srpt_cm_timewait_exit(struct ib_cm_id *cm_id) -{ - pr_info("Received IB TimeWait exit for cm_id %p.\n", cm_id); - srpt_drain_channel(cm_id); -} - -static void srpt_cm_rep_error(struct ib_cm_id *cm_id) -{ - pr_info("Received IB REP error for cm_id %p.\n", cm_id); - srpt_drain_channel(cm_id); -} - /** * srpt_cm_dreq_recv() - Process reception of a DREQ message. */ @@ -2365,15 +2353,6 @@ static void srpt_cm_dreq_recv(struct ib_cm_id *cm_id) } /** - * srpt_cm_drep_recv() - Process reception of a DREP message. - */ -static void srpt_cm_drep_recv(struct ib_cm_id *cm_id) -{ - pr_info("Received InfiniBand DREP message for cm_id %p.\n", cm_id); - srpt_drain_channel(cm_id); -} - -/** * srpt_cm_handler() - IB connection manager callback function. * * A non-zero return value will cause the caller destroy the CM ID. @@ -2404,13 +2383,17 @@ static int srpt_cm_handler(struct ib_cm_id *cm_id, struct ib_cm_event *event) srpt_cm_dreq_recv(cm_id); break; case IB_CM_DREP_RECEIVED: - srpt_cm_drep_recv(cm_id); + pr_info("Received InfiniBand DREP message for cm_id %p.\n", + cm_id); + srpt_drain_channel(cm_id); break; case IB_CM_TIMEWAIT_EXIT: - srpt_cm_timewait_exit(cm_id); + pr_info("Received IB TimeWait exit for cm_id %p.\n", cm_id); + srpt_drain_channel(cm_id); break; case IB_CM_REP_ERROR: - srpt_cm_rep_error(cm_id); + pr_info("Received IB REP error for cm_id %p.\n", cm_id); + srpt_drain_channel(cm_id); break; case IB_CM_DREQ_ERROR: pr_info("Received IB DREQ ERROR event.\n");