Message ID | 1520937106-22602-1-git-send-email-Michal.Kalderon@cavium.com (mailing list archive) |
---|---|
State | Accepted |
Delegated to: | Leon Romanovsky |
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 4F22460231 for <patchwork-linux-rdma@patchwork.kernel.org>; Tue, 13 Mar 2018 10:32:08 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3E1DB28F1C for <patchwork-linux-rdma@patchwork.kernel.org>; Tue, 13 Mar 2018 10:32:08 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3114728F27; Tue, 13 Mar 2018 10:32:08 +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 5A0C928F1C for <patchwork-linux-rdma@patchwork.kernel.org>; Tue, 13 Mar 2018 10:32:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932617AbeCMKcC (ORCPT <rfc822;patchwork-linux-rdma@patchwork.kernel.org>); Tue, 13 Mar 2018 06:32:02 -0400 Received: from mail-co1nam03on0057.outbound.protection.outlook.com ([104.47.40.57]:23072 "EHLO NAM03-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932514AbeCMKcA (ORCPT <rfc822;linux-rdma@vger.kernel.org>); Tue, 13 Mar 2018 06:32:00 -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=RJC74TzGqd+5xjvcVzz+NXU8peJGMQJPYXv5asnSlic=; b=emqh7C/i1QZL6yctXQqlNJ9Lj7GbvjoJx6iGIBgmSRPxJyhQGvgoFwL+kBFp9Bx6cQ0+zJbI59Dari/limaWZDezQ4rgV2uMsCipZkJlXM0Dv62SScnZR8cwJ4bDneX8MZZ9/0gEepdkK+AVnezkUSZtu7R21jRm/3SY69KLxEg= Received: from CO2PR07CA0065.namprd07.prod.outlook.com (2603:10b6:100::33) by DM5SPR01MB332.namprd07.prod.outlook.com (2603:10b6:4:36::39) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.567.18; Tue, 13 Mar 2018 10:31:59 +0000 Received: from BN1AFFO11FD008.protection.gbl (2a01:111:f400:7c10::112) by CO2PR07CA0065.outlook.office365.com (2603:10b6:100::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.567.14 via Frontend Transport; Tue, 13 Mar 2018 10:31:59 +0000 Authentication-Results: spf=fail (sender IP is 50.232.66.26) smtp.mailfrom=cavium.com; kernel.org; dkim=none (message not signed) header.d=none; kernel.org; dmarc=none action=none header.from=cavium.com; Received-SPF: Fail (protection.outlook.com: domain of cavium.com does not designate 50.232.66.26 as permitted sender) receiver=protection.outlook.com; client-ip=50.232.66.26; helo=CAEXCH02.caveonetworks.com; Received: from CAEXCH02.caveonetworks.com (50.232.66.26) by BN1AFFO11FD008.mail.protection.outlook.com (10.58.52.68) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.20.527.18 via Frontend Transport; Tue, 13 Mar 2018 10:31:58 +0000 Received: from lb-tlvb-michal.il.qlogic.com.com (10.185.6.89) by CAEXCH02.caveonetworks.com (10.17.4.29) with Microsoft SMTP Server id 14.2.347.0; Tue, 13 Mar 2018 03:31:55 -0700 From: Michal Kalderon <Michal.Kalderon@cavium.com> To: <michal.kalderon@cavium.com>, <dledford@redhat.com>, <jgg@mellanox.com>, <leon@kernel.org> CC: <linux-rdma@vger.kernel.org>, Yuval Bason <Yuval.Bason@cavium.com>, Yuval Bason <yuval.bason@cavium.com> Subject: [PATCH] libqedr: fix wc wr_id initialization on failure cases Date: Tue, 13 Mar 2018 12:31:46 +0200 Message-ID: <1520937106-22602-1-git-send-email-Michal.Kalderon@cavium.com> X-Mailer: git-send-email 1.9.3 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)(39380400002)(376002)(346002)(39860400002)(396003)(2980300002)(1109001)(1110001)(339900001)(199004)(189003)(77096007)(81156014)(336012)(81166006)(86362001)(6666003)(478600001)(104016004)(1857600001)(2201001)(50226002)(8936002)(107886003)(186003)(16586007)(26005)(8676002)(72206003)(85426001)(316002)(51416003)(59450400001)(4326008)(2906002)(106466001)(110136005)(54906003)(305945005)(69596002)(36756003)(105606002)(48376002)(356003)(50466002)(5660300001)(47776003); DIR:OUT; SFP:1101; SCL:1; SRVR:DM5SPR01MB332; H:CAEXCH02.caveonetworks.com; FPR:; SPF:Fail; PTR:50-232-66-26-static.hfc.comcastbusiness.net; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11FD008; 1:LqvE8/3h8jYu/iA+ODX2v0iN759t8D5Kzlt2HEKgzaeajeciSjbj85gTUck1QiX79+qZLYLvvxljTbKK9YLHjw00ppqDM/yUd/uWDe80byxSDKeah9iSJR/nZEImBLvO X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 00346744-6b22-4335-6169-08d588cda6c9 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(4604075)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060); SRVR:DM5SPR01MB332; X-Microsoft-Exchange-Diagnostics: 1; DM5SPR01MB332; 3:KqjdjqdCTbZ/DiNI3SI5bDZfWkPGsIJJ6KjVOLMkmrs1TO/ziEFea6wdDppS6cDDqalFY3kyaHs/PF4ucqchju+nX/P/5wL2LfQfknNG49M3flRZO1kJ5oG6hZKsMI403tEmB6UZTFaC0EDnu7cMgpvsmhuR5CMqRrBvU66/I6t1hCe+7JNILaAzJbcEsyXgxqd57coBBmySiBUb4fDz/atHh0HqUvr+OkOijSJGhqbvbZL/9C9+EA/Z65yttYfMRCBzTIwifK8tpgnjtvI6k12NA9PRK1DfMcO1QmkTrD0jxHJ6exJHua+BEvsFwpiDN4O8oIGZAPTO4prvv7KhjtnmN7jFMb/ehJilJckN2N8=; 25:sZnIgbdGYheWiH0HdPnmkRzMabS+rbi62dgesQqlxxqqY3hm/M512kwtKp6e5HEY8u+fOIT8WJq9fYvm4tYWzVF3S0x7ziJd8+wY9o8qUeWXNVoG5Hiup/WyTllp80ujRAKIQupvD89xPcAfJ1EfqstS6piNFAJ5ROytAf9nfKM+QHWoVCSAiSjlG2xOgHeo4wvr2DamkpVHCJvRcsc3ceQGvREamdh92NzVto//nT/PO6dizXOIj1TQfDQ+CfzZ/np8kBbrVLsuL9KHd3DLW/8oRWcIQAjke0tqQiwEnnZm+2Yk8amJPBdA90qPAeMikr0iZ0ITHJCfM9zFIcub4A== X-MS-TrafficTypeDiagnostic: DM5SPR01MB332: X-Microsoft-Exchange-Diagnostics: 1; DM5SPR01MB332; 31:Vnp8kNBDj1oxvSz7qAP1vJnL8qPmwnM7wd77cbg7VN0v80Qc+8j670S+9H0od9Jcs14P9VYTShpMDYqbjo5foE6xfBQYETKHY4jr98IUSRb52dzaFzQ1EFrrxIJitQISGXoGbBaDADGpwEh98MP31dChb43Vqn1e49OX/G50mQEIVCclDJI5djN9xs6cYsKYYR3sWfDE3e0+HlfBmL7SwsvhLYo6WkVocs6Yb+iEAx0=; 20:S/DlkyUicBqnfEv+gHsxE4XEZuJUy0PP4l1MPlVkMYWal8+QeOjJ86xHnquQDz4uPZ9CKCWGP9jgFP1HN+bTu6Hb+fF4b/R3h8fo1E0FeOVKqolQToTv2YcWfzp+3hbpwfuGfATwlo9RVlCRKNmH1gaUMB47OW/fkawICm6RSnBWucYZHG/XcNJtzYCDAs3lPOKBLab253nq4nzKjVLQRxWD4o28LWLhH+3mQaX1HCdrLf9pwZgx3tskAVymuQKmxblXnkGzouMU94tURLPjTdnB6wht4/rvaZTDsmuc7etRifWL8xYqh5sbgA9bVzCc/xF7jqc1lXw+KQoG3ao6ip9bUoj4gmM4TBWzJ0mRi+BRMTBW3KGgcKrf+5F3ylsvvOENdzHvfTpPjTpM6n74t1HCPSyqPF8DJ20wRDja6BIiK66FJOu6/dwyhte0HCPqSCtwZ/VJwmN8yHLpD8SsQDdyzZQ0PwNYe0Jq+LK/sez1T6VK3lVoUnODWx2T100e X-Microsoft-Antispam-PRVS: <DM5SPR01MB33288548397C518AF5CC8A088D20@DM5SPR01MB332.namprd07.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3002001)(10201501046)(93006095)(93001095)(3231221)(944501244)(52105095)(6041310)(20161123558120)(20161123560045)(20161123562045)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011); SRVR:DM5SPR01MB332; BCL:0; PCL:0; RULEID:; SRVR:DM5SPR01MB332; X-Microsoft-Exchange-Diagnostics: 1; DM5SPR01MB332; 4:THt55CkLtfQVt+muDHd9YIOaAx6KD3LVUkyYUYSAi0ZPOW0+IQjZmcPkg/oOq2ViA0gX+iaPViN7Z+ruWJoQsWTfXumNu3iMZfVxO66Rz7Hr1lp88e09LeleVqspc2AaU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d?= =?us-ascii?Q?7YmQJ1S7dcvUOVUvW68EwVLMkeJ79yHXyi6gIC2IELladjX8y5PAPchNdNwP?= =?us-ascii?Q?lIgV+YLLGjFCOXp4ug/Cmr2ATDeu+KvG+VAv8eAzBZPhqg6MnN6hdNCgHC5N?= =?us-ascii?Q?m6rUDF0b4cBCUNImi8RbsVGij4RifUgX/ITjXP4j/lKZxF8BypF3WpWFvvLT?= =?us-ascii?Q?ArMr19MtBmNe4RNzRTajDSvC/NxYhA/2ZSHA3E2odQ0HkSViOEv/1nZ9T9mM?= =?us-ascii?Q?P3+QtLp1oFoO9TQfBW0kZ71D7hM+8Hzc+tdGHslc5bo8LuSRq69XPgTyzHme?= =?us-ascii?Q?sdwkNmWA/avBwdxVK5KarA/f2hzAfxS6yf9NIQPtVQV0MRpsV18z7MNEzpJ7?= =?us-ascii?Q?1sq1s1dfHd3csxq52YlK4hrsrf5CUhM+uBehnat38fVNGix3g=3D=3D?= X-Microsoft-Antispam-Message-Info: LrnhpxQdG3STCIG05ph02JAwHEz9Oat+tp1PAQBPS/GT8fuoK9E+svkJLHBwNTaGse5UeGRDPyqme2my5dejozqCVSBYYJG/2AQh39DQYdfeQGdni+sVDkw6ef08LSyuH5De85Z9/SCN2iHIDHjlRmIsprNuk4pcR8kv7xCDgJrmCuUxO+sLdkYxCX4f8oM/ X-Microsoft-Exchange-Diagnostics: 1; DM5SPR01MB332; 6:YiPHS1vL0M/np7ErH1GQAR9aJatM0ol0+4I96LnowQYFqkPY47iMukhh1PyCm20ol5hsRniysArU1L7HMdq7D9/kb4xagAKXwEPq1YkDwtSPINOCdniEB0m3IIw39MgvtLfhH/c39aRCGq94/zsZekGErxZG3C398vAta3xwfqdlJA4aHnTQLzio1KyAW2vm79VLkSCnjzR7wRoioWkbJ+ozQI3Zttti8TrJZJWPj0OT7/N2BeDXYqN/drqvhnbybKrxaV42u3iIJ7AP92bN1/El3crsyWxQmc2Za8bLw3nWbIjOaSEzLM04ufVCYLT8rZpre1QdqWgJGQEyfDBq2G6KZFDvQcdp7g16f0AhJUo=; 5:T4yg6SRH2TnQf5w18bpllprn2/qwiC3sKqisIRQlyfWFSUFQgkR0e13XuGlS43heS6cLj21D4MajxA1o6KuUeWZDRVLxCxadnHHtO7dr3YT0hUd37d002ALKcShOi+s7sYgGCq0wPFI1XHJy50lATRcAqeocNY1d6gABuw4PQKU=; 24:c9hCW5QfQnZVnLiGa71wCMWdvmjrN+R8tFaE+XBMCYF4WLA+kOklVsQ1DtaVMo2QG8n+AzL+6YEamUtozomvURfbnAZsKNOcW/If7kpVDFo=; 7:KEDCUtR7gi7mCg2hHV857vXmtIS2scSdPuKlka2nj8byPx6rwUtNcCDCD7kCP8i7kyLaUg0jzNZJYlBXkxk+3SCf6YHLAfZV9kKT+NREWeizK+74vPhLkrtkshj30eRi0nrvjDeW5tCMfRnMD4K/pyvq/ZE8VJIdjC2elDe1sgaRtuliJG4zED+S7kkwW62vfOkC++Q0KLNcoBgSpIL8v9L6oibKSa4cGftFUIv+yFnfzo3lKGgDs+ualPtLcR5w SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Mar 2018 10:31:58.7249 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 00346744-6b22-4335-6169-08d588cda6c9 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: DM5SPR01MB332 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 |
On Tue, Mar 13, 2018 at 12:31:46PM +0200, Michal Kalderon wrote: > From: Yuval Bason <Yuval.Bason@cavium.com> > > Assign to a wc it's relevant wr_id in each completion status > (not only in success) > > Signed-off-by: Yuval Bason <yuval.bason@cavium.com> > Signed-off-by: Michal Kalderon <michal.kalderon@cavium.com> Thanks, applied. BTW, yuval.bason@cavium.com vs. Yuval.Bason@cavium.com was the reason to DCO failures. Thanks
diff --git a/providers/qedr/qelr_verbs.c b/providers/qedr/qelr_verbs.c index 5d7aeb3..bac5aae 100644 --- a/providers/qedr/qelr_verbs.c +++ b/providers/qedr/qelr_verbs.c @@ -1771,6 +1771,7 @@ static void __process_resp_one(struct qelr_qp *qp, struct qelr_cq *cq, uint8_t flags; wc->opcode = IBV_WC_RECV; + wc->wr_id = wr_id; wc->wc_flags = 0; switch (resp->status) { @@ -1815,7 +1816,6 @@ static void __process_resp_one(struct qelr_qp *qp, struct qelr_cq *cq, break; } - wc->wr_id = wr_id; break; default: wc->status = IBV_WC_GENERAL_ERR;