Message ID | 1497279852-30901-3-git-send-email-Ram.Amrani@cavium.com (mailing list archive) |
---|---|
State | Changes Requested |
Headers | show
Return-Path: <linux-rdma-owner@kernel.org> 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 E6B9360212 for <patchwork-linux-rdma@patchwork.kernel.org>; Mon, 12 Jun 2017 15:05:20 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D177B205F6 for <patchwork-linux-rdma@patchwork.kernel.org>; Mon, 12 Jun 2017 15:05:20 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C620126E51; Mon, 12 Jun 2017 15:05:20 +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 42A08205F6 for <patchwork-linux-rdma@patchwork.kernel.org>; Mon, 12 Jun 2017 15:05:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752159AbdFLPFT (ORCPT <rfc822;patchwork-linux-rdma@patchwork.kernel.org>); Mon, 12 Jun 2017 11:05:19 -0400 Received: from mail-bn3nam01on0069.outbound.protection.outlook.com ([104.47.33.69]:33151 "EHLO NAM01-BN3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752028AbdFLPFS (ORCPT <rfc822;linux-rdma@vger.kernel.org>); Mon, 12 Jun 2017 11:05:18 -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=Pm/Klj1InHxURvijtXa8krporLCN0PEwO9JdN1PAn7g=; b=YN973fDJ2BCcxJzspNPa4Rt+sCbEIZ04bz05b5KFTrnEjXf8m5hVrdOG6sv3FgqNH0QcCrXKiNv3RmPeHgj/O2pLef1DjGYjdpzGVUuLj+Rtct8twkoXsHf2Ls0dlfngdoDfFV9bjS+TMRL/yGzYOLJnHEiOar87yACSbwUtLNQ= Received: from CO2PR07CA0049.namprd07.prod.outlook.com (2603:10b6:100::17) by DM2PR07MB432.namprd07.prod.outlook.com (2a01:111:e400:243a::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1157.12; Mon, 12 Jun 2017 15:05:16 +0000 Received: from BN1BFFO11FD022.protection.gbl (2a01:111:f400:7c10::1:185) by CO2PR07CA0049.outlook.office365.com (2603:10b6:100::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1157.12 via Frontend Transport; Mon, 12 Jun 2017 15:05:16 +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 BN1BFFO11FD022.mail.protection.outlook.com (10.58.144.85) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.1.1143.11 via Frontend Transport; Mon, 12 Jun 2017 15:05:15 +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, 12 Jun 2017 08:05:03 -0700 From: Ram Amrani <Ram.Amrani@cavium.com> To: <dledford@redhat.com>, <leon@kernel.org>, <jgunthorpe@obsidianresearch.com> CC: <Ariel.Elior@cavium.com>, <Michal.Kalderon@cavium.com>, <linux-rdma@vger.kernel.org>, Ram Amrani <Ram.Amrani@cavium.com> Subject: [PATCH rdma-core 2/2] qedr: Convert immediate data to network order Date: Mon, 12 Jun 2017 18:04:12 +0300 Message-ID: <1497279852-30901-3-git-send-email-Ram.Amrani@cavium.com> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1497279852-30901-1-git-send-email-Ram.Amrani@cavium.com> References: <1497279852-30901-1-git-send-email-Ram.Amrani@cavium.com> MIME-Version: 1.0 Content-Type: text/plain X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:50.232.66.26; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(39840400002)(39850400002)(39400400002)(39450400003)(39410400002)(2980300002)(428002)(189002)(199003)(9170700003)(38730400002)(107886003)(2950100002)(47776003)(6666003)(50226002)(8936002)(48376002)(86362001)(4326008)(105586002)(77096006)(5660300001)(72206003)(478600001)(189998001)(54906002)(5003940100001)(101416001)(104016004)(8676002)(2906002)(81166006)(2201001)(305945005)(36756003)(356003)(50986999)(76176999)(14773001); DIR:OUT; SFP:1101; SCL:1; SRVR:DM2PR07MB432; H:CAEXCH02.caveonetworks.com; FPR:; SPF:None; MLV:sfv; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1BFFO11FD022; 1:/n/k7v41yzbgBtonHBqIKLN/hhShX+e6PC5C6CkWwSOWoNLxWXoya+MBH3qAMDacMkLqWQsAP/J+VuMVpaakIE2kiOuBFlVbj0DK5XzrQGgkePdPW0t5uQP4eTqMKmH70eHfsUIdNy8ZhKTiynalzDS903Kc4E5qbOcWvC27q2DlRDjwQ7Ey3x3f1T0KiH6rHleb+D6RnpQCVQFk2JJgCuvC+wX0/7uq0nKD6EIZqC0TDNtvlXGFVdevZSf+bIi8egJiNswpB2ZL15CzLwVK8K0QfAotkxGb/KD3Krdp9pGt3IumMFQILr1xzAtgwxYraiLDUfLvhGjAwzOOzGf6sRO+A/A37DuA4A0Q+VIDlpt68qReXe1+ZYLfB1K7WFx75eqa9SGSN9R1zRgMdlVxwurUHvMOmxrNPJzZ8X2SztRvhg6DmmF6o12rfJCJ8ursnhhjWu2c5w1n31UAncjO2mxnJMqvyuRMD0+L0UoKpNF5KdVN9V0vOtamxfYJHdwxMPkCSZQgpIf+qcPDz7viGQ== X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM2PR07MB432: X-MS-Office365-Filtering-Correlation-Id: 863869eb-eddb-4c0f-b247-08d4b1a46efa X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030254075)(201703131423075)(201703031133081)(201702281549075); SRVR:DM2PR07MB432; X-Microsoft-Exchange-Diagnostics: 1; DM2PR07MB432; 3:fJyTbOYly/qPz1Av6oEW+eZm4RXJup54Xh7RZUuMrZKLiJ0Pl34BfwkSKOkd7UYHe5S0GAM55wKlUAzOMhX8ojKMwLIQBBF9w+94bUJ9DgKN9JGe0HREAfUwHVHoVWvSH/EnGq8fyuxshWSwzNbmLeRgaOYnYiXbLQqJMUaugHxH1tpQO9vhrZ8mGKiDb8PoKrDqj3BmU/XxmRP8bZQBFD2coy33Kf55BSkTmKgq7PkRU8T8XYWLO+Rvtmfv1UM2krWfYlP+qvX8JqhNkQpcW7tZQo4MzMZNksyWc7RM8oO+RKRlYv7Ak3UoZjhTjp3SOToZ3MI0DacsDy5r4d+ZmsV0TMX2cvO0hsPOPW5kbaiWNjoNXo0y+FkMHei6sQhR4J8urZFyxHLHRVGEwtH0FF6q+cJ7qmQ2TCXKQepdRZMMxUMDb4FETHrqAdHhxiozPlpz3bZc6CQmNOrkxNcmDNutk7a3ixeOmdomGHOjD1b0IgL0NBUrZ4nYkMCPqQKA X-Microsoft-Exchange-Diagnostics: 1; DM2PR07MB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1lQicJE/Dei4natj6f9hck5ftrWysb/XvEnT6MR+7AWU0jHaWoJpB9VpzndMRS6VEl/IFyOB0H7nLW8hWy6/jTp1d3Jv2kjzEhZiuIjhjENYkculUzmSHddqYu5MBx8JRa1Ha0F5IbX7yeRfizmmhZ2Zqq2poGeEzSfOVIoNS4d9ZuWy8dip7YygFDkIXDJ7zsa4t2fl9Fifk8hKSvrvbr0D30l6BiDXVP+4nPIgLM0c9nvgmHUcVyZFcMCrkioEObp X-Microsoft-Antispam-PRVS: <DM2PR07MB43242042E0EBC65F0333F7EF8CD0@DM2PR07MB432.namprd07.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(8121501046)(5005006)(13016025)(13018025)(3002001)(10201501046)(100000703101)(100105400095)(93006095)(93001095)(6041248)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123555025)(20161123562025)(20161123564025)(20161123558100)(20161123560025)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:DM2PR07MB432; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:DM2PR07MB432; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM2PR07MB432; 4:FbDD6fO7SW1XJTkmKt8ygRkidKX7t0wJpyMr2amFW24?= =?us-ascii?Q?QLQoj0m4JuZ7Zn+okju/ivJusbCw6ycm4YnxIM3BXv4U/VHY+3KtvcS36YFR?= =?us-ascii?Q?yCDlboI7HXukFxeZFujIO+819MMTtbpn9tZApL49PlXfilBFqBWCcAgAGdZN?= =?us-ascii?Q?SB7cm1B1cTN/uFhS6u3ApHPAac3wv5Znj5I0Trv+k/DxpoMH3AS0cy4/YPLY?= =?us-ascii?Q?nP3Nq6utOftz349WeApxpqgSbtW/vuc0StFk9uvnnSTZBkl+9XN/73k3uqxM?= =?us-ascii?Q?NwY9tzJxefQPsVephufT1x9qo00X3f/OmhpEyYpCS4dKFSsgRmD9geI1ECw3?= =?us-ascii?Q?uer17T9vhuf2FXumkSicdY19AjBWlfoqmaUNydhbiMO9GUOAACqfJBsnqSYE?= =?us-ascii?Q?ieKy4i5adUEO6+LR/9l0UQXEJyveIfXg9hlWYLUIMG677jApPjXL2uhZDeJw?= =?us-ascii?Q?mMxYgust44RtBbbbaK8p93vZhPimNWqpA5HSqBWy+nJAcbA38cvkCsFo8OsV?= =?us-ascii?Q?dLlJOVfYK32H4tLD7v/ikIE20/TOb/ymuDoWCyBbaxNLbAyxHka/FNFBEKfD?= =?us-ascii?Q?X3C2lNicBz0kE5BWsW0HDfIG32SeYkAF77pwsRfJS6vKkVz4HL6gM5ieorWT?= =?us-ascii?Q?XvC+Nli4NAQ5gd57fii4v6wv71tAmPjEmVAuuQyMpTjWTXvx5ctyiWfb1r3w?= =?us-ascii?Q?2Hu6WCV8TbySh14da2Me2LG6kfGkKGpAfHpqkraF7JCea1XL/4nuK4OE4aoa?= =?us-ascii?Q?4TPdSoNNlRh5nAC5fW13sYT4bILGsiSW51F08mx2wJCH+sXu1xFGqNDoHsTd?= =?us-ascii?Q?mE0eufGa8g/dDWfFTnR76w9g8DUbc71Van7/R2nDEz1hzs0LdNSZb8DMijOH?= =?us-ascii?Q?0ohjbYEW1Q60h451qHCoPWfRXNcKJVh2hXp0dZQBPv2cu7pQhmEJWja16q6/?= =?us-ascii?Q?2B+1iaRN0N4XQKirPMLjaevxiqeQi5ZfuKjx9w1KR2t4U+mLmsmMadWxUPPJ?= =?us-ascii?Q?eaiUtrJvfXN94MVh+oJ/KqnDs1WaPQ775DkI/AthDF1ALmkoQxq8Hb3oI+8D?= =?us-ascii?Q?srpgQH/uGCfEyTb363L2j6M/nh7hMdEtCrVrwyyRjyjsEq9j63eLew4QBqVv?= =?us-ascii?Q?h6brt5+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A0KMe94tZVKQX81Y?= =?us-ascii?Q?gAdl6VMVox6oG9TaR45ghY4rxLtMe+SWigpq3y4IgddQFViHBXgpOR+tAT5M?= =?us-ascii?Q?YN4PAFkJA5Mp9LKWU1Un8icLSyAUHr6UQL0PP0loF2O4YxsR4qlrOQky3yuf?= =?us-ascii?Q?LMrrU+x6SqwaKX5qytV0qIMosY9ubwrh6KQG52A6OcpdpfEcoKc9DT3W/SCo?= =?us-ascii?Q?FsP7ZR/yZ3sjFl6o99p5jzYWtrb8m82Jy2wydC9qMjjymPf90ko7f1FxwFIe?= =?us-ascii?Q?Ebe0y9jsl6Wqyge/kLcDUXLKN1RWvCrzn9jHRgzZXq1A=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1; DM2PR07MB432; 6:xoexCbJOPceMKafGvBX0RxcurflWo6W+kJm7KjOC5kKLQS4DY01OLipCX+bVlgSMW3QOEkbiTP5dgnHuI0H8oV56A3r7du8wPP2tLi2+qMmIZoQJdzBmiyL7g2mntO6dO0TnUQs4f8bAVQ1Yy5yjvqBQzxz4QsBrmpYVy+ovg/0WoVf5eUQNHEhIpyFeOTxNY33N4xy424toGTqtMbZk5yy1hU14owrQNJhfK5ebN7nU06fRH7b7BkJvDevrD9+hEGqh03a0mBIrNMbmckrgphYPwXJ8YFEN2Hs4mMFph5anpEt9XbZoyXsF6jaDFUvgA8fMShqVDWs3UMOvwupN761brjwmVsilnqoSfvKsT4fG15mQt/du3PH5jt8NOE+O5XEAtYmRAItttI7u/zfVwrrguNVH5GGjBjxiY2iaTGxlc/5s4tVDBedvTdj6Rod/sKRKomGmC3K/z43NdUDm0hzsXbwZE4TYwhggF3AQbI0DA1WTuxb7foQNFjAVZjhlraMEY4SAYvnTCUe3sy/PxA== X-Microsoft-Exchange-Diagnostics: 1; DM2PR07MB432; 5:Od3NU0vyBInVWN2tDo4kB+S8ECl32oej4WOTyvT28VfKjB2ED6HwcIhI5vZzKmIUlzrAiF4g3JId+24IUhdEFkiD4WaS0qk6/W/Pm3hM12+sIu0T+qCObAZzgD5swlOf8dhIyOSrREgmQX74cOI9OPt/DGKiExC7QBcokAhBoO74Z+VPecwJI/TgmrqmS3+RwV0QAjMb7EmMQ5BhfI7DaRhCn4H883aPWh7l6uUtEnqsJbgRYz1G0xR9qLk9QhMhX3lYb6jl/q73OywZyegD6iW44btBrboz/YDOxAunaHmFVO4arJfhDMpe8/ISeP+9NuBxILUp96vbI/CojRNfcAmFgZ9pHvsY+tyuChOSzr+2/Y/NJo5XYUAJX4mXrrNBFy7eM6B7drJEDSMGjKrv0kFZqz7klQPC5p15CybszRue/43q2tZgxTRTS1EZc2zHqt8lqdNRD2fD59DJ2RIRZbOR2k/iapmy/9Ca3UNoI2DISwZ7TkAbrVugrtb677rR; 24:QCrnFrjyoiICI5o+fbMAGkhOKKWEyN3AphXngCgzDOUBAPjkVGVl6QyFQRW9vYdSZaxRXDSJmyswPzyiDuw9HFkiQ8a3O7DhqqFq4EJwAAU= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DM2PR07MB432; 7:8kLb1tRyf1gfG+JtshcHctDaSmsnSglh7uaUEPRp6X9TTIE+Ih3anSfueQcpEJXyPiRSP3cYTjbDVSzNsS9m5YiuPacQ5US/Xrpqeh2w52Wu2+vERnJboU7xlSaU2/HJMmdAafIbrzMEoUTz6L8DezNAFd5FopsurdIT/9MRZG0abVhSskNaldHYV/aqUdPfmZ0zFLoSWcgyhX8q7nfz5lJ4nr67UIwW5FjoxJeeWfUKg7ACh2GFsekn+oHTbj1eVDoqYx8sDjscSFArqW70w1omQ+MDiCz/NXA0/MI1rAhZ4UHx+QwqTr0l82dYi79Pyqwj9uniOQDo2gA7qGzmyQ== X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Jun 2017 15:05:15.7326 (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: DM2PR07MB432 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-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/providers/qedr/qelr_verbs.c b/providers/qedr/qelr_verbs.c index 358f3f7..193b274 100644 --- a/providers/qedr/qelr_verbs.c +++ b/providers/qedr/qelr_verbs.c @@ -922,14 +922,17 @@ static inline void qelr_edpm_set_inv_imm(struct qelr_qp *qp, struct qelr_edpm *edpm, uint32_t inv_key_or_imm_data) { + uint32_t data; + if (!edpm->is_edpm) return; - memcpy(&edpm->dpm_payload[edpm->dpm_payload_offset], - &inv_key_or_imm_data, sizeof(inv_key_or_imm_data)); + data = htobe32(inv_key_or_imm_data); + + memcpy(&edpm->dpm_payload[edpm->dpm_payload_offset], &data, sizeof(data)); - edpm->dpm_payload_offset += sizeof(inv_key_or_imm_data); - edpm->dpm_payload_size += sizeof(inv_key_or_imm_data); + edpm->dpm_payload_offset += sizeof(data); + edpm->dpm_payload_size += sizeof(data); } static inline void qelr_edpm_set_rdma_ext(struct qelr_qp *qp,
Convert immediate data sent over EDPM to network order. Signed-off-by: Ram Amrani <Ram.Amrani@cavium.com> --- providers/qedr/qelr_verbs.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-)