Message ID | 562FF43F.2000404@sandisk.com (mailing list archive) |
---|---|
State | Superseded |
Headers | show
Return-Path: <linux-rdma-owner@kernel.org> 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 0E851BEEA4 for <patchwork-linux-rdma@patchwork.kernel.org>; Tue, 27 Oct 2015 22:01:46 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 2F514209C0 for <patchwork-linux-rdma@patchwork.kernel.org>; Tue, 27 Oct 2015 22:01:45 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 3053F209C4 for <patchwork-linux-rdma@patchwork.kernel.org>; Tue, 27 Oct 2015 22:01:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753801AbbJ0WBm (ORCPT <rfc822;patchwork-linux-rdma@patchwork.kernel.org>); Tue, 27 Oct 2015 18:01:42 -0400 Received: from mail-by2on0062.outbound.protection.outlook.com ([207.46.100.62]:64768 "EHLO na01-by2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753617AbbJ0WBk (ORCPT <rfc822;linux-rdma@vger.kernel.org>); Tue, 27 Oct 2015 18:01:40 -0400 Received: from DM2PR0201MB0749.namprd02.prod.outlook.com (10.160.94.25) by DM2PR0201MB0848.namprd02.prod.outlook.com (10.160.95.16) with Microsoft SMTP Server (TLS) id 15.1.306.13; Tue, 27 Oct 2015 22:01:38 +0000 Received: from BY1PR0201CA0036.namprd02.prod.outlook.com (10.160.191.174) by DM2PR0201MB0749.namprd02.prod.outlook.com (10.160.94.25) with Microsoft SMTP Server (TLS) id 15.1.306.13; Tue, 27 Oct 2015 22:01:37 +0000 Received: from BN1AFFO11FD037.protection.gbl (2a01:111:f400:7c10::137) by BY1PR0201CA0036.outlook.office365.com (2a01:111:e400:4814::46) with Microsoft SMTP Server (TLS) id 15.1.306.13 via Frontend Transport; Tue, 27 Oct 2015 22:01:36 +0000 Authentication-Results: spf=pass (sender IP is 63.163.107.173) smtp.mailfrom=sandisk.com; profitbricks.com; dkim=none (message not signed) header.d=none;profitbricks.com; dmarc=bestguesspass action=none header.from=sandisk.com; Received-SPF: Pass (protection.outlook.com: domain of sandisk.com designates 63.163.107.173 as permitted sender) receiver=protection.outlook.com; client-ip=63.163.107.173; helo=milsmgep12.sandisk.com; Received: from milsmgep12.sandisk.com (63.163.107.173) by BN1AFFO11FD037.mail.protection.outlook.com (10.58.52.241) with Microsoft SMTP Server id 15.1.306.13 via Frontend Transport; Tue, 27 Oct 2015 22:01:35 +0000 Received: from MILHUBIP03.sdcorp.global.sandisk.com ( [172.22.12.162]) by milsmgep12.sandisk.com (Symantec Messaging Gateway) with SMTP id C2.C7.32178.F34FF265; Tue, 27 Oct 2015 15:01:35 -0700 (PDT) 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; Tue, 27 Oct 2015 15:01:35 -0700 X-AuditID: ac160a69-f79f76d000007db2-00-562ff43f97d5 Received: from [10.60.52.33] ( [10.177.8.100]) by milsmgip11.sandisk.com (Symantec Messaging Gateway) with SMTP id 7D.4E.03643.F34FF265; Tue, 27 Oct 2015 15:01:35 -0700 (PDT) Subject: [PATCH 2/7] IB/srp: Document srp_map_data() return value To: Doug Ledford <dledford@redhat.com> References: <562FF404.7000504@sandisk.com> CC: Sagi Grimberg <sagig@dev.mellanox.co.il>, Sebastian Parschauer <sebastian.riemer@profitbricks.com>, "linux-rdma@vger.kernel.org" <linux-rdma@vger.kernel.org> From: Bart Van Assche <bart.vanassche@sandisk.com> Message-ID: <562FF43F.2000404@sandisk.com> Date: Tue, 27 Oct 2015 15:01:35 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: <562FF404.7000504@sandisk.com> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrOLMWRmVeSWpSXmKPExsWyRoxnka79F/0wg/VzlCxenv/AavHsUC+L xevjT5ksTt7md2DxmD5jE6vHnz+fmT3e77vK5vF5k1wASxSXTUpqTmZZapG+XQJXxq71xgV/ 2Sre7ldtYHzA2sXIySEhYCLx7c87KFtM4sK99WxdjFwcQgInGCW+/nzLBOHsYJS40nCHGaZj 1sVrjBCJTYwS09efYQdJCAs4Siz8vw/MFhFQk9j0ahGYLSSgJfH94Qd2kAZmgaWMEg3HloMl 2ASMJL69n8kCYvMCFX3puMMIYrMIqEp0vtoJdpOoQITExAkNrBA1ghInZz4Bq+cU0Ja49O4d 0HkcQEM1Jdbv0gcJMwvIS2x/O4cZZJeEwCZWiYe717JAHKEucXLJfKYJjCKzkIyahdA+C0n7 AkbmVYxiuZk5xbnpqQWGRnrFiXkpmcXZesn5uZsYwdHBlbmDccUk80OMAhyMSjy8BhV6YUKs iWXFlbmHGCU4mJVEeHuy9cOEeFMSK6tSi/Lji0pzUosPMUpzsCiJ81q3qIUJCaQnlqRmp6YW pBbBZJk4OKUaGG2FrpXJ8+qsqNi9PeXn6ujWjf13f804u+eQUeHaDoZ3EufmJDQ0vDua2bL8 SYrDvDPNpSJFW6YnnT//uM1VzYzj9OILXZynfJj/iYbz73FbwT/9jOEKzicPGbZ/PfxGK13c zlvJNc9zq0AY459IrzuHnwS+Wbo+ecXHE+9X7LuyLNRydcD5VDslluKMREMt5qLiRABXq1xe igIAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrHJMWRmVeSWpSXmKPExsXCtZEjRdf+i36Ywdv94hYvz39gtXh2qJfF 4vXxp0wWJ2/zO7B4TJ+xidXjz5/PzB7v911l8/i8SS6AJYrLJiU1J7MstUjfLoErY9d644K/ bBVv96s2MD5g7WLk5JAQMJGYdfEaI4QtJnHh3nq2LkYuDiGBDYwSf3r/MYMkhAUcJRb+38cO YosIqElserUIzBYS0JL4/vADO0gDs8BSRokf/T9ZQBJsAkYS397PBLN5gYq+dNwB28AioCrR +Won2GZRgQiJiRMaWCFqBCVOznwCVs8poC1x6d07JhCbWUBd4s+8S8wQtrzE9rdzmCcw8s9C 0jILSdksJGULGJlXMYrlZuYU56ZnFhga6hUn5qVkFmfrJefnbmIEhyhn5A7GpxPNDzEycXBK NTBKr1YS2rlzrkatjFbKBdvL4kW/kpfxblc9WzP9Yl+Q64UUvTAm3X/seVtV3l+cM9U0s6/y ZJJd8RFfGX/rgKlWC8wnfPuyOqXRaMapeqvk+2tSZzVsTsjJ9uaaMD2v+sOft1071BfGr9a+ v5nj4r2vG3Kv6v0J8tolNbnHliXTIL2D85pf83ElluKMREMt5qLiRACoIguZAQIAAA== X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11FD037; 1:kJqJzc0QGgGSLL5zc+Amf1SPs+Oxqw7+zM0RZoPy2w12Gze0bUNlPCnio5Q0SW+LnUvoPqxXAoVVfadTUDYIRujFUdwcYY+n2m156vt/OwFcGJCAsZnUNlQ5aZCE4VR2O+OpifMEFeHcwbKlJdB1OqH8+K+lzeTT4AauphjdlVB8pPjDtFtS07/eQ/mNMZRviOaErLpBAWJQF8yOnaAlb7ZTH3nYN5ZexRc1OK9mZ4K65/APOlzWGfNTEW9zmGhkzxjTjlsslQhArCdbxUMG2Jl3HuE0GOi33BQPOjEeVnJWcSO2ZhXvgH1eGv4chskLPUQjNFJEACl/9/Fxj8ZoDl3UgS85YeUNqLFNCde2B7/GrxIjaUMXmWIKkjDDIlbStqyxicwcxfou1dGgFov73g== X-Forefront-Antispam-Report: CIP:63.163.107.173; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(2980300002)(438002)(189002)(199003)(33656002)(5007970100001)(87266999)(65806001)(65956001)(65816999)(87936001)(36756003)(23676002)(47776003)(54356999)(76176999)(59896002)(50466002)(11100500001)(19580405001)(92566002)(80316001)(69596002)(2950100001)(19580395003)(50986999)(77096005)(110136002)(229853001)(106466001)(64126003)(83506001)(189998001)(86362001)(4001350100001)(5008740100001)(81156007)(5001960100002)(97736004); DIR:OUT; SFP:1101; SCL:1; SRVR:DM2PR0201MB0749; H:milsmgep12.sandisk.com; FPR:; SPF:Pass; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; DM2PR0201MB0749; 2:6bLHkYh2GppO/fVfHKFLl7am3rSIwfeSN96FEFwiCZn52YQUqRfdp6I7uBgfEBpBE6G9ddsC2HcHlyz1F5K6Thh1q4wam4/N3lHwZ6oaqbxCs38GppsjzzucElv7qVxr9/+8yjrG+wPGLQ+B+yTvSOG86LnQGolnAHbJi3L2boo=; 3:R7GRL+mT25RYTaaRAxJBX0YflG/YH5Tvnt+nRcmmHBIfCSWcogdu/8CYu/98FtXjy91HJzTCCjtNZ88ky/4KKuZRu38wMoC4TGtZAIyyKmuw7wpeZpJJ6vIj8PRwAOJTOvtA3U1HF9Tc/IpcPLy4J4/j/2w8mAoVAQ4B20OBtDlLOsBTP5UgF20Un3l25w/2tEWYu4JIdiebCdVWoOokxUbezJfgG0D5h6CanLvtGctZjnyP44JoFwUt3Ad6ECqaft1lP9L8+RHJUMBWDyAcQg==; 25:XvaJOVCzz5wpN+1f/LUmGIpAvgBrIeBqZlqJG10nyYFqPujzkCG+xS2zTiC806cTFg2mqCesxOf51F1iU1TDuTTk5sjMr6qz2W9RmwhajKg+FoGG0UpD+Jgrr9ZYfiWnq4ZtOjwBOH9z7UU6EWDNMrO6OrzwNNuiT7uOH1NaurAe+ukcH++vU7rFDGcSfD4LuwxNlorNcpwCN7MuB0ECh7PcEUhAYwL4m+3i3clVt5+oepKT9YcLmT+Plpmo+zPksG80+Okly4KOdSiLp4nnUw== X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(8251501001); SRVR:DM2PR0201MB0749; X-Microsoft-Exchange-Diagnostics: 1; DM2PR0201MB0749; 20:OV1WIZkcSgTQaFYwr2YxSKORWpXKXzXIiouY4qeVAtQsuMkXb3PtJhB2jPzaOHEZuokUC7SmTMlXi0PPTrtqxekylHLO8iaa0f0NBmYJ4CFa8SDdWmdY3by7Xe5vht7CY26lmpjatL7zXE8r8dvgoP8fRIUcbm8Q5yLtz9d5nLsFjK5m26W3PJEHIKXwdw1nYemO4Bde4LSKqkph3McgUX3VQwwd+wNn5xrrxVL9dhRxPY50JCWo3C5mIe8hbjNAc08j/CcPl5wfY1uN0x9IhH1uM6IfSAP7PNNVciH8IubKibLJxqRy/U/ohVEfmjDaEYI4EEjgcR51sDTZB3KSk7tmxp0CzUq0wY47+NWpcVZEmGV50o4lzk9oULkQ6YOtYn7QKi28lMGd2stDVVqnsLoqI8/q+R2aaSmajR+o6JO7PlSl9S+9c2LKGEo58bF3NuAiAY9PpQdeFVsYUWM6CGm2HI7Lr6OclY1fvHoAujmeJ3gjPBJH41b2sNwyWQay; 4:NjalMTmXejdsyXbn0bJAe2E5wt8lJ8k1ptsp/17g/QjfFp3cgEeAYfSrRnqO5yZyzw1/GUM8UX5z2zmR1rHyKhThut9ucSIMsIgrrw0swuT0ucxlA27/hVLGPxkJWy/M21QM52fT+pOLprCJFWfCC9CZeB/wuTDS8zyWvYPoD9gxio2NOTyxN5wOVlX8liZ/fYThNmQoglk05rwB1nvyfKrmvfenuzbyFlKL6a00xQxstp72tM/NCT0wxMVmKDDhO3auxgWHhFYwvQq7yw1dlf4j8Lu25nAeahRHTSTaRcRIgx+OrPlRG4kaG2HIpUhCvq9NZzbF6HPC+KCe7cEUW/NSjI4PzJMyzn2wqb22jBDGeFzeXlObaSdOB02wOloxR/kY9p2hIQRq4JrVHtdXDA== X-Microsoft-Antispam-PRVS: <DM2PR0201MB0749AB16A6810258D43C609D81220@DM2PR0201MB0749.namprd02.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(34787635062028)(42932892334569); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(8121501046)(5005006)(520078)(3002001)(10201501036)(102215026); SRVR:DM2PR0201MB0749; BCL:0; PCL:0; RULEID:; SRVR:DM2PR0201MB0749; X-Forefront-PRVS: 0742443479 X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtETTJQUjAyMDFNQjA3NDk7MjM6SzF3dFU1QW1aUXZDMmh1SWc4aWlFN3B3?= =?utf-8?B?bVU2ZTVITUlSWEg4S3lVeUxXUFFJOFowdW9DSkZMT1BvQlk5dzh2eHMyMGhI?= =?utf-8?B?T1VJUThPejJVcCtaa21YNkhoK3JPb2VsalJ5N0V0eFpoY2c4aE04WmhFcXNF?= =?utf-8?B?SEtaSXd6Y3JSZHdIdmdoSk50WjBRUkpKSGcwRjJJOTUyL1lNdlU2N09UUkxM?= =?utf-8?B?VzFxV1gwNTFwL3ZqZmxkSlJQVmpiaXJ2L0VhVWpETnNPTXo4U1pnWWJvQXUy?= =?utf-8?B?RFk1NThaekJ4Z044L256SHNZdFo2TTdEQmp6NWJ4ZFBVclZaVXJRRFBnVUhX?= =?utf-8?B?M1FOeDR0R3FMM2g1NVdwYmptTFdaZy9TL3lBQmVCMnhzb1NPY3dQa205R3ho?= =?utf-8?B?U3hsakNIcTdmeCtLLytXRmtycVg2Yi9WckdCTDBjY2R2TkExOWpweENmZ1hS?= =?utf-8?B?MWUydmFkT0grdHJkRFIxOEp0ZHlzU1FidlRCVEFETTkya2hKdGZ1UG1XaC9N?= =?utf-8?B?UGNxczVZZ1E4M3RwMmV2czNLbVFzOGF5b1VjZGJxVFNqZ2grSTJCMXQ1TElV?= =?utf-8?B?eFFQSXRaUnVEcEZWdmpKT1BFd1dYZ1pvZHdRNDA1RThta1BjU21WUm1tT2Fj?= =?utf-8?B?Q2NpQmlyVlhENUR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f2698PBVJdLq523juurbNF/exhS6nrBlKHzFgrUd9yMLpbcXovy4D6iJSUmDFUng==; 24:Bem4zzC0RhTnut/IyWdbGykvKhqCu93r99aI1J2AkBG486gK7qNAgl0UPlWCKfgZpT4ql1ll6IYwIwsTfz5N071g7c9O/IpH1loLWjriDHs=; 20:GlNwym27uAMj0mSp1oYvtGOhEHX8mhJHC6dz3FGTcxLotewl1OlmsozjiX2D2S6k+aR+c5d5FT9/HzksqSKj3NPERoqZHQiHH+N17X9BDon297ZiL+PllPo+EvjEVbOR7Q7xkt6xCWjQ97NfhjyTW+zX6qIf9i0r3TXK5X4xvopCBTcADYOu+dGVPD54MLIR62T6PEBBRkviHZP8b9Od9Fyzxyf7wZ6F6eYBZxDNfAb+oE23ORHbnn3NRJLukw/e SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Oct 2015 22:01:35.5587 (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.173]; Helo=[milsmgep12.sandisk.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM2PR0201MB0749 X-Microsoft-Exchange-Diagnostics: 1; DM2PR0201MB0848; 2:TsYqRFvmoNctf6iXopxC0S39PxiPcaQbY1mi9i9EWIvmRdR8absqgWi5PO8FUzSoJQ2sdcy4eYEgfvcDC/scI5MCn+QD9/N6n3UU8Nin/1WpxJkVLND6h++tdltdJXj7NHrfnm251HP8rSo9ZYzDG7bNmT3eQ92lavhwHSYQ1i0=; 23:LvAsLAsKIpgHVPrC4La4q8P9sB5HVuR8agHCRpwUKhsn4k6Rk1DPmbpDmiNi4Y+uqPNy47j05EUpeUCHuhsOOCXxQsAyuEyMk5E9AZl4TwbEbBa6RzFobsFXbHUMh0ElmKGT+kXrVOrvvCj48D37XhJVqx0KViji1cUmuLHzjJjsReKerTOI3guyLcoiGU3s X-OriginatorOrg: sandisk.com Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: <linux-rdma.vger.kernel.org> X-Mailing-List: linux-rdma@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, 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 |
Looks good,
Reviewed-by: Sagi Grimberg <sagig@mellanox.com>
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/drivers/infiniband/ulp/srp/ib_srp.c b/drivers/infiniband/ulp/srp/ib_srp.c index 1c94d93..c1faf70 100644 --- a/drivers/infiniband/ulp/srp/ib_srp.c +++ b/drivers/infiniband/ulp/srp/ib_srp.c @@ -1497,6 +1497,15 @@ out: return ret; } +/** + * srp_map_data() - map SCSI data buffer onto an SRP request + * @scmnd: SCSI command to map + * @ch: SRP RDMA channel + * @req: SRP request + * + * Returns the length in bytes of the SRP_CMD IU or a negative value if + * mapping failed. + */ static int srp_map_data(struct scsi_cmnd *scmnd, struct srp_rdma_ch *ch, struct srp_request *req) {
Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com> Cc: Sagi Grimberg <sagig@mellanox.com> Cc: Sebastian Parschauer <sebastian.riemer@profitbricks.com> --- drivers/infiniband/ulp/srp/ib_srp.c | 9 +++++++++ 1 file changed, 9 insertions(+)