From patchwork Mon May 29 13:23:10 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Amrani, Ram" X-Patchwork-Id: 9753215 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 A29AE6038E for ; Mon, 29 May 2017 13:23:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 93054204C2 for ; Mon, 29 May 2017 13:23:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7DC5022638; Mon, 29 May 2017 13:23:52 +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.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID 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 D50E5204C2 for ; Mon, 29 May 2017 13:23:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750994AbdE2NXv (ORCPT ); Mon, 29 May 2017 09:23:51 -0400 Received: from mail-cys01nam02on0048.outbound.protection.outlook.com ([104.47.37.48]:46880 "EHLO NAM02-CY1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750987AbdE2NXt (ORCPT ); Mon, 29 May 2017 09:23:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=Q4Bihz5nZtAvJGP9fhqq44lQ7tEUb4tH5YoR5o3ooCE=; b=OXm5uQYcfsMwsVGX1EkcROjW4u9r7Eh4Cl23Y1MA6vDwqmN7Jw1la3IVgM7tc/lmPwipgi8K7/J7072M08p8uzkSMX2LG9OdofxKTrhNOpncuEWf3LdjLplfF+5uF+dzaFISPfj7Ohvhk0I47wHc1rjZbDl2nGG9oRQSmxQ+41I= Received: from MWHPR07CA0006.namprd07.prod.outlook.com (10.172.94.16) by BLUPR07MB419.namprd07.prod.outlook.com (10.141.28.18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1124.9; Mon, 29 May 2017 13:23:47 +0000 Received: from BN1AFFO11FD027.protection.gbl (2a01:111:f400:7c10::130) by MWHPR07CA0006.outlook.office365.com (2603:10b6:300:dc::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1124.9 via Frontend Transport; Mon, 29 May 2017 13:23:47 +0000 Authentication-Results: spf=none (sender IP is 50.232.66.26) smtp.mailfrom=cavium.com; vger.kernel.org; dkim=none (message not signed) header.d=none; vger.kernel.org; dmarc=none action=none header.from=cavium.com; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) Received: from CAEXCH02.caveonetworks.com (50.232.66.26) by BN1AFFO11FD027.mail.protection.outlook.com (10.58.52.87) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.1.1075.5 via Frontend Transport; Mon, 29 May 2017 13:23:46 +0000 Received: from lb-tlvb-ramrani.il.qlogic.org (10.185.6.119) by CAEXCH02.caveonetworks.com (10.17.4.29) with Microsoft SMTP Server id 14.2.347.0; Mon, 29 May 2017 06:23:44 -0700 From: Ram Amrani To: CC: , , Subject: [PATCH for-next 1/2] RDMA/qedr: Initialize byte_len in WC of READ and SEND commands Date: Mon, 29 May 2017 16:23:10 +0300 Message-ID: <1496064191-11442-2-git-send-email-Ram.Amrani@cavium.com> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1496064191-11442-1-git-send-email-Ram.Amrani@cavium.com> References: <1496064191-11442-1-git-send-email-Ram.Amrani@cavium.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:50.232.66.26; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(39840400002)(39450400003)(39400400002)(39850400002)(39410400002)(2980300002)(428002)(199003)(189002)(9170700003)(36756003)(478600001)(4326008)(101416001)(2906002)(76176999)(50986999)(72206003)(48376002)(50466002)(106466001)(189998001)(2950100002)(105586002)(50226002)(8936002)(81166006)(8676002)(356003)(104016004)(47776003)(77096006)(86362001)(6666003)(6916009)(5003940100001)(38730400002)(110136004)(54906002)(5660300001)(2351001); DIR:OUT; SFP:1101; SCL:1; SRVR:BLUPR07MB419; H:CAEXCH02.caveonetworks.com; FPR:; SPF:None; MLV:sfv; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11FD027; 1:hN8C7/3GdakG+YjetMOvW7cm8By4BF9zTSqxgpQKWDWmPSNID/YEx3V+W8RVXxBjqyeVIbcGvmHiH8OhqNQTQ6R5YPe4pUv5FSRm8BHipRwfeIGcCXS84XmTDFDWuLjsBEEZ2myfp6AO4KhtDX44RmQGZsRP0rygsasl8UCKzFOPTJYEj4fIWjX4KTUrrv3xQ0B4pD3WMbsJ+fn4RSIbefR8+KRAv5q5aC9ruDYmIatlhaaN7bZFBFHT7WJ2IN+hzjZ5OkvL7T8b8kO2VDOe6toG7qxbZK1kuxbbzRwLm1wZU+AcE0TQS3piuRtN7yYgaXS2yCJUiskAxk+2pUbyfic33uaqUyVuTh5kNPaQLS48tfTO32GCriwNGN1DnmxcPyine6/N1yqZ0eoVnfixEOQFqVuTdiMzBG9kow8okgtMrkClQFXRqo+j6BbKbKeBm5CQWZKVDEzCxOKDwBDr52wwRXkXx5LGA+M5o/lS04pidutf+qPIT/c0MXbgCMba X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BLUPR07MB419: X-MS-Office365-Filtering-Correlation-Id: 625e2f0d-f0f7-4e7d-9d4f-08d4a695efd7 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030254075)(201703131423075)(201703031133081)(201702281549075); SRVR:BLUPR07MB419; X-Microsoft-Exchange-Diagnostics: 1; BLUPR07MB419; 3:pM/tZLuVcIYskmcaToKDrWrORpPAvbOmxNSazU/mGoUY2wJQpV73um210uz4b+mlD/S+2HSifmEC8Pnu1LUTUKhV/1fLsIenxAcXJlcoOz4WNFqPvErkn7CNdQXQq5hABTyATm2bT6/naSeOUg/TpE3I9pTGkqso/eT9ONuR6/E9l+6W1bEuZmEACpvgCZRLxkOzAGRAjbX5aEUCCShy9jfKvXNZ7bTqfEmbSQwT1nPkCc7ZmK3qAwKD3PbEj5VUZkHEWOyyID2xP0pdH4AgTcKsW4vLZLEoPjgjCqgoRFJC0mKIsygssrABcVSB1Y5n4q6395EQk04uY2JMMZxSlhMJqlvsr3sZ15iq28EXTJfjvKSlEp6BZvDFBIvJz+01zlPir4/o5h66/qAvmCFpXbaA4bH14oUbJQvQkVf6uccqSG/sFEfj7EPTTBc4zcZ26plMwZLBBzw7AWrqh7y7SpCjpaeFJCf+hUewzYVzBamg4J8K5IDSaGX7OuczWPSM X-Microsoft-Exchange-Diagnostics: 1; BLUPR07MB419; 25:YmIMn92DPSzXHE9+A1jly8nMi9q3qMT8fpE6ZcYGUaygxvug4+gWWyChzN7DmL1nY7MIoUf1bQN5pGOdtBLzyEZpIsb7U4YJz9oe/3Ra3QeKwggbPTGuIiCT9mW2NKMTFHk8Itv3svweak0zSNVq7d7GCwRfEh+g0pdXUcu3qW/zlMUmb6ihohZ/XGgF75i+vk01T0x5KqlVA9qDtCSGogDs8xzfwri0U3PoMQrKDObraCskvF5ZKa6HBQ4sIJUAwNGMY/7IcJHBXlTvl+G03fiu4ZZ6EZV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am-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(601004)(2401047)(13018025)(13016025)(5005006)(8121501046)(10201501046)(93006095)(93001095)(3002001)(6041248)(20161123558100)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123555025)(20161123562025)(20161123560025)(20161123564025)(6072148); SRVR:BLUPR07MB419; BCL:0; PCL:0; RULEID:; SRVR:BLUPR07MB419; X-Microsoft-Exchange-Diagnostics: 1; BLUPR07MB419; 4:TwS0S4hxqZrRL8PvN/4aTg/6yg9ySZ/sBR8NoMFffBjMuNWiAQcGMNZ0rrL2SdBSHnBGn8guY7uILmL15kF7qms5hF2IZXHoIwthEB2DWvHgngo0QLVpjGuRXLvBYt9Ohq9iEXdB3yyW1wrXS/1fmnJRsziO9NDyjs4fdNlSPXmIoH2M/AuxH0L2DGi4K0uKkWJMLjXLsmRaHaUQO+647BJC/dB2Djh9WM5ZeGP8ue+EMu3cFC65a8I26Clwgnzrb+AeCHz+/7XsC3NIISF6J3SlK8z9fM/GLxuoBB64D13U3HeAiNgBMzxttwZSiy8u8oPu7EMYh3jAf/69mnUQC18iQcG21pwneX2lj+ApbfysL00L+aPaORUN2lpEz7ljiFBoy5gepmJppMSBfTOTx9N+Y77YVFC7RNlis0eQt/o16mJyBwmC713Pb9PceZJoPx2DfZnbCbIEYGhBP7iqWUGV/K1bTVD9qnGcywfjF45jDJveGiyBJiKJZJnT3r96Ali7Nfea9bwKEaCj2YWMjg+fA3qnB2p92E395S+M3NKImyDThgMU+m4sSSTZr4D288kjYkRpQVS7yGKsXwWbKKuLdjAwq/+jXo6b+T6s+7I2ij38/kUHAqYUzRZHgyLa7UjBOSrSXjAEAkPdTyxGvHiF4YhClBGoyYW673kMPlV4zkQaQnolgqqdHwd39gvcLfllDhmpwrUBG2I8VlU2ABG9KzEEH+fMA1J16l0xbka2nGm+NaM3BEoOab3yfSSDWCCInkFCp31Y4ZOvjbSkP4dKDAJfc3ZstNFZ7tUbnfML4vZQAuIo7n9OfND8svPN X-Forefront-PRVS: 0322B4EDE1 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BLUPR07MB419; 23:7niA/Fa5xA+GEfHgHgHuL9Jkdmk46KaYaKMfSK21J7?= =?us-ascii?Q?fXK2fYsB6Ls0+3mIF7uRKKGWf0NigNyVNqFD2kCjBnW1yMjBKaog9314wc+z?= =?us-ascii?Q?fJ9Pl5Trgag7k8tdFShuzEiW7FB9rDKMjJFdheitZIsO/taOkqSo684elYGv?= =?us-ascii?Q?kBUfIcVAvfgeUlbJeiKX6oBXQzRPx+/6OjNLAYd1NF5o1c6cDqW+KFCpkaqw?= =?us-ascii?Q?Fu0SEduRX9RzH8rHbF7IyasN9e67TlR+IWngWqYUc0WhpgkLTuxqGCeqj188?= =?us-ascii?Q?SXr/+GUk4oxGjS2slxEbFk8+FQ7NxUBeviTTXVa561SqkYgDDF1q0k7Oplmr?= =?us-ascii?Q?b0v9qnJiwaNVYX7HIy7VS4DSS6JwTjaux0fJoCDsDtPa2DsLml2/+EASnLB4?= =?us-ascii?Q?0K3o/INnaJJiFvEHv9kri+Zh6ZsoDME+qW3s/NpsszJ9EvL7fgSgV016IymR?= =?us-ascii?Q?7Kcsb8vdA6yPxpEcNCv4TvR8K3FoEnIbLwuwQSIr3HQHrxPSTqO8v7NyweRP?= =?us-ascii?Q?d1X/nSX3tEQdRs61lOeUb4uxBePf9VAvAuf7JdCpIJCC1Jl44zd4zHoxcyyC?= =?us-ascii?Q?Zm2xvZORK7VCOP2H0U4YE8wzTPg0wbPQPi3hGTdfbOuqBFJ0jV0i6dmgscIl?= =?us-ascii?Q?EQKLrq4H2HbwCiKKDiy2d05XA7tLNdM2YtVjTpa6XstLIpKgRx28tdbK5AwW?= =?us-ascii?Q?OkYTyEmeqmWU13vMD52TGa2UPWPWS4QRZfcG1fneDCcoOoWkbv1KXoreOzOP?= =?us-ascii?Q?3EAtVqhpsSjSD0+ORsZbdhkcmAQqRlWmS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24:vG3EfOBbSdHhN/Iv29HOW3FCQmZ2IuqWWZVx23ez5sLnxcxyNyxDWTp0i5A/+mjyY5GKo95jDVFGZxhgJb+lJ/xDgcU/YWgngs0DSbB46B0= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BLUPR07MB419; 7:ttUY/dw/ulTknEgAECfXO6xVkAKOD9G3Q8IUMbK3ChJgJE2KqmQS5oqbBG7MWRCLCDozrldpCOFRfeysY8w2mlZAyEuVhoHPkjycr29Ln2iQJKUNRW64DeppugG/DiW96AVP2SzUsYfWt5UFtyDBl6zuqwDV1cYN4LRV9l5K/QBhAc2O1vLSL1qQ9qOHZnz9ARHndcjPF6lqzzSQikW+fSaiurykiHFImPQw/slfmuDs5lJbzpEBpjEJ7jTggz3cXAINPGctVxqIICKpDon+HOnBfdW/caHSp4tn7Y+JMsjqe4NZzxPXzqXrkUxytpukZiOsqSUPhqB2cYqtzibE8A== X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 May 2017 13:23:46.6717 (UTC) X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=711e4ccf-2e9b-4bcf-a551-4094005b6194; Ip=[50.232.66.26]; Helo=[CAEXCH02.caveonetworks.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR07MB419 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 From: Michal Kalderon Initialize byte_len in work completion of RDMA_READ and RDMA_SEND. Exposed by uDAPL application. Signed-off-by: Michal Kalderon --- drivers/infiniband/hw/qedr/verbs.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/infiniband/hw/qedr/verbs.c b/drivers/infiniband/hw/qedr/verbs.c index 6b3bb32..f3ed4cc 100644 --- a/drivers/infiniband/hw/qedr/verbs.c +++ b/drivers/infiniband/hw/qedr/verbs.c @@ -3149,6 +3149,11 @@ static int process_req(struct qedr_dev *dev, struct qedr_qp *qp, case IB_WC_REG_MR: qp->wqe_wr_id[qp->sq.cons].mr->info.completed++; break; + case IB_WC_RDMA_READ: + case IB_WC_SEND: + wc->byte_len = qp->wqe_wr_id[qp->sq.cons].bytes_len; + + break; default: break; }