From patchwork Mon Oct 30 12:59:55 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Amrani, Ram" X-Patchwork-Id: 10032489 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 2491F6039A for ; Mon, 30 Oct 2017 13:00:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0EF7528668 for ; Mon, 30 Oct 2017 13:00:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 039E328755; Mon, 30 Oct 2017 13:00:37 +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 341712887E for ; Mon, 30 Oct 2017 13:00:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751423AbdJ3NAf (ORCPT ); Mon, 30 Oct 2017 09:00:35 -0400 Received: from mail-cys01nam02on0089.outbound.protection.outlook.com ([104.47.37.89]:31040 "EHLO NAM02-CY1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751167AbdJ3NAe (ORCPT ); Mon, 30 Oct 2017 09:00:34 -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=BYtQVzBxGhTK8s0Ey60JkQq31lrFUX8h7RYIc0TPKyA=; b=FriwG31nqtpkj8XZZpvi7JkcGekXZ8vEu5qgATwCuOhBStBxbTCNeIvEIWODPrb6Io87hVYgfie0I4FoH6SRVucGK6auDKFqc9UJHKyaHtUKgDZ4Q+dugHZjaK4zFojoPKYpJXJSHixqQelmFJ19dfywju4oS1EZKDt9LoLyfzU= Received: from CY1PR07CA0035.namprd07.prod.outlook.com (2a01:111:e400:c60a::45) by DM5PR0701MB3813.namprd07.prod.outlook.com (2603:10b6:4:7f::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.178.6; Mon, 30 Oct 2017 13:00:32 +0000 Received: from BN1AFFO11FD005.protection.gbl (2a01:111:f400:7c10::141) by CY1PR07CA0035.outlook.office365.com (2a01:111:e400:c60a::45) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.77.7 via Frontend Transport; Mon, 30 Oct 2017 13:00:32 +0000 Authentication-Results: spf=none (sender IP is 50.232.66.26) smtp.mailfrom=cavium.com; obsidianresearch.com; dkim=none (message not signed) header.d=none;obsidianresearch.com; 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 BN1AFFO11FD005.mail.protection.outlook.com (10.58.52.65) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.20.178.5 via Frontend Transport; Mon, 30 Oct 2017 13:00:31 +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, 30 Oct 2017 06:00:22 -0700 From: Ram Amrani To: , , CC: , , , Ram Amrani Subject: [PATCH rdma-core] libqedr: fix inline data copy Date: Mon, 30 Oct 2017 14:59:55 +0200 Message-ID: <1509368395-16738-1-git-send-email-Ram.Amrani@cavium.com> X-Mailer: git-send-email 2.1.0 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)(346002)(376002)(2980300002)(428002)(199003)(189002)(4326008)(107886003)(50986999)(104016004)(101416001)(5660300001)(6666003)(69596002)(316002)(105586002)(106466001)(5003940100001)(50466002)(48376002)(47776003)(16586007)(72206003)(478600001)(50226002)(2906002)(54906003)(189998001)(2201001)(356003)(305945005)(8936002)(77096006)(36756003)(8676002)(81166006)(81156014)(110136005)(86362001)(575784001); DIR:OUT; SFP:1101; SCL:1; SRVR:DM5PR0701MB3813; H:CAEXCH02.caveonetworks.com; FPR:; SPF:None; PTR:50-232-66-26-static.hfc.comcastbusiness.net; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11FD005; 1:Qhex7GUuw8TxOtVxq+DaEZQrv4gFHyvaviMFs7XT43Xp4kZnQcPT6elELNlzpncA4WZJKl/NywJAq7eVkRpkGahSt+0ydns1lRtoTseRGFXNR22/nimDcc6VAvE5tC6d X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: d88b9ef3-d80c-4e12-8244-08d51f963408 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(4534020)(4602075)(2017052603199); SRVR:DM5PR0701MB3813; X-Microsoft-Exchange-Diagnostics: 1; DM5PR0701MB3813; 3:IDEx507us9GTTHnQGmfb1N/g3Bwo6HIfbqtzurzYvmP+ffqbeTwrSmFzZVNUNF3A3qNnDaMTasrgb97aKTIRIBNccS8YCrv8suqrND9sLlOGsVN7W/hkipK4HegZ0qtSHbJ1qbTOQ4d36EMACrwjwmYVLKrwsjV4Uy4/59svYBoQ6NwMDMxprx58M4W5Nq3w+nhfip5KF/AHZ2tXmKDYZg/W4Z1ru/GMTRhGcqnwAWDZhuT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y5Db2uCgr9rMuRz7wNQPjmYCoPYwQwRr3KvUjr2eweeBhD9iXLk7mTGnVGyBHZEwFTpMitDDedijZTDWRHJKpsiTe4vRBKAZVDE4PG7xn9Qr/7VGx8TYKePdFBCN6m7HULx1/unH1keG/jG1r/YAK8GaStLFrb9e46AJsN1yo57xXdSOESv/QSaCXtTzBs/pr8OrvEZrjbtxPsmU1R X-Exchange-Antispam-Report-Test: UriScan:; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(2401047)(8121501046)(5005006)(100000703101)(100105400095)(3002001)(10201501046)(93006095)(93001095)(3231020)(6041248)(20161123555025)(20161123560025)(20161123558100)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123562025)(20161123564025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:DM5PR0701MB3813; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:DM5PR0701MB3813; X-Microsoft-Exchange-Diagnostics: 1; DM5PR0701MB3813; 4:oVdM1rQVJ4NGhOu3kbJRCzwgU93oSMyoiPMWHzAO5q8vxlAqxGQ5oJ7GqR20D7Yq2nPrWgl2BG4EZFx6RxqfzqUK3vmN8rX1u6DIOafArVIu6q7T/XGD1F9T5k2cHPpNYtU/CXyqA4g8TEjslxh0pueJ0lJ/MKAoXDQH9+VOgsJdGg8yvB6gUEPCv7w2Js5FoupgIwB4RBom8NNHtWZY3orvujhMwquEgHbAsNzxseOcgmD92S4rXlrAq8GKmItz+5ypgaqW/IFad/OnkcTSRA== X-Forefront-PRVS: 0476D4AB88 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM5PR0701MB3813; 23:9Nu3ATYFxssEXaWDUoRR1alu+WVPXcSFhPqTpi3?= =?us-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KVdY SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Oct 2017 13:00:31.5237 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: d88b9ef3-d80c-4e12-8244-08d51f963408 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: DM5PR0701MB3813 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 Advance target pointer during data copy. Signed-off-by: Ram Amrani --- providers/qedr/qelr_verbs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/providers/qedr/qelr_verbs.c b/providers/qedr/qelr_verbs.c index 4a74c50..7db0fb3 100644 --- a/providers/qedr/qelr_verbs.c +++ b/providers/qedr/qelr_verbs.c @@ -874,7 +874,7 @@ static void swap_wqe_data64(uint64_t *p) __be64 *bep=(__be64 *)p; int i; - for (i = 0; i < ROCE_WQE_ELEM_SIZE / sizeof(uint64_t); i++, p++) + for (i = 0; i < ROCE_WQE_ELEM_SIZE / sizeof(uint64_t); i++, p++, bep++) *bep = htobe64(*p); }