From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-BY2-obe.outbound.protection.outlook.com (mail-by2nam01on0080.outbound.protection.outlook.com [104.47.34.80]) by dpdk.org (Postfix) with ESMTP id F15131B16D for ; Fri, 12 Jan 2018 16:08:07 +0100 (CET) Received: from CY4PR03CA0093.namprd03.prod.outlook.com (10.171.242.162) by DM5PR03MB2697.namprd03.prod.outlook.com (10.168.197.135) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.407.7; Fri, 12 Jan 2018 15:08:06 +0000 Received: from BN1AFFO11FD046.protection.gbl (2a01:111:f400:7c10::169) by CY4PR03CA0093.outlook.office365.com (2603:10b6:910:4d::34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.407.7 via Frontend Transport; Fri, 12 Jan 2018 15:08:06 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; NXP1.onmicrosoft.com; dkim=none (message not signed) header.d=none;NXP1.onmicrosoft.com; dmarc=fail action=none header.from=nxp.com; Received-SPF: Fail (protection.outlook.com: domain of nxp.com does not designate 192.88.168.50 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.168.50; helo=tx30smr01.am.freescale.net; Received: from tx30smr01.am.freescale.net (192.88.168.50) by BN1AFFO11FD046.mail.protection.outlook.com (10.58.53.61) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.345.12 via Frontend Transport; Fri, 12 Jan 2018 15:08:03 +0000 Received: from b27504-OptiPlex-790.ap.freescale.net (b27504-OptiPlex-790.ap.freescale.net [10.232.132.60]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id w0CF7oOx020468; Fri, 12 Jan 2018 08:08:00 -0700 From: Nipun Gupta To: CC: , , Nipun Gupta Date: Sat, 13 Jan 2018 02:52:58 +0530 Message-ID: <1515792181-11836-4-git-send-email-nipun.gupta@nxp.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1515792181-11836-1-git-send-email-nipun.gupta@nxp.com> References: <1515792181-11836-1-git-send-email-nipun.gupta@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131602432854915487; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(376002)(39860400002)(346002)(39380400002)(396003)(2980300002)(1110001)(1109001)(339900001)(189003)(199004)(48376002)(2351001)(47776003)(5660300001)(105606002)(4326008)(316002)(296002)(68736007)(8656006)(305945005)(106466001)(50466002)(498600001)(53936002)(8676002)(97736004)(36756003)(8936002)(51416003)(16586007)(77096006)(356003)(85426001)(86362001)(6916009)(81156014)(104016004)(81166006)(76176011)(2950100002)(2906002)(54906003)(50226002); DIR:OUT; SFP:1101; SCL:1; SRVR:DM5PR03MB2697; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11FD046; 1:J0pppxcybpiS623om7mYr8YfaZsRdAQk6z0IzjB6tAn11yE/c8RoSblkKbJbMBLSYguDc9IwUczLN1+V2pRyaEKdXS1ZywQiACOyrzR2vmOlrGjT2fjrH67h3vPI/9Hy MIME-Version: 1.0 Content-Type: text/plain X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: c05b7a72-a495-4fdc-9841-08d559ce4859 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(4534020)(4628075)(201703131517081)(5600026)(4604075)(2017052603307); SRVR:DM5PR03MB2697; X-Microsoft-Exchange-Diagnostics: 1; DM5PR03MB2697; 3:yCiyHwcXFezaZIMSPvMcfAHndJUOzhnDbtNFzitnvyJxynmdBX546UGN573/0S2rB1Cg9qIHDnuYAPbTKD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S2ll215AnfHaEtF7LtnTstypXbWK/XOFIMYIOPJAk0qbdgT5dF32XJhXBf4hZRmgeM4z01StbV9zMlPNJMI8hHkpB/yVdXRvGhgPC8ouP8w2wsWXTj8zLUPfy/A3KgVHef7lLNagSQVDCbwHODDGqgzHbL63PrQbSh+/VjQhomy4d6rY4KJ7FbpE X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6095135)(2401047)(5005006)(8121501046)(93006095)(93001095)(3002001)(3231023)(944510075)(944921075)(946801075)(946901075)(10201501046)(6055026)(6096035)(20161123561025)(20161123563025)(20161123556025)(20161123565025)(20161123559100)(201703131430075)(201703131520075)(201703131448075)(201703131433075)(201703161259150)(201703151042153)(201708071742011); SRVR:DM5PR03MB2697; BCL:0; PCL:0; RULEID:(100000803101)(100110400095)(400006); SRVR:DM5PR03MB2697; X-Forefront-PRVS: 0550778858 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM5PR03MB2697; 23:rZfyXS8DRkdviX0KjJXt0ZMIcfLOdTVQ33+z0x2vM?= =?us-ascii?Q?vbvgeuvFw6cbUIpr9BrBKJ3/xnfj8ADS/SUXxIxDgEb9SagrPLu1x61n++M6?= =?us-ascii?Q?qeOXqytCMrrezmwfHpMihE2QQIfCXW0KEG/cXQNjvBufT6o/JzDJSfPpCQZv?= =?us-ascii?Q?4J3xnP5y5H76vAulRiwgYTwvpvxIyb3KS4hYs5pwZSUPpgJjn9q+urg+XccU?= =?us-ascii?Q?Cya6fB4Ixa98N3mVcexam5atGqa7yHDHJ635slYBDCmU7SdI28BFt1d4sK9m?= =?us-ascii?Q?4LpWzd490NSgm1IQYu4vTDHK3TyAdF+BscObKa1mpQMHrysbWhRfhIqSOevx?= =?us-ascii?Q?XwJLd8kW4f9lzYcOYSXu3f+0IGUOeA2VDbdXBMihzx1zSvTUoP+ICliP5KQ6?= =?us-ascii?Q?FfJu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H2+rOS5/imvtf2CXExauTUCn+KLFU+GrYXXfUqFgbfs3Yj6T1k8oyMqvZJZ9VsgIs7JIKI4IRil1Ku/Iwt1EiUVlUoqGw4S3vKtj8HKNuAiRf0oe+JDkGzci224hkAfZMADPl9bVlNfukkM=; 5:IiHqEhrumcz+bz76/LOUz/sjoC3L9y8ZVQ01O9kri1kvVehtPc8W090Iasd6cV4pqQ1X2hfIh08NVjBb37mE61Zalg/VLE0jpYdR5wgWXIwb0YrEOBqNkcnJgWq5nYODy6behCmY9lytoGbh4gZquy/xbCkbjyO8Rm3pJH+KcH0=; 24:6J0dOq7CbB4p5pKcOeNfbRjYxxquBs2F5dzJUy+uc6P33+sN9lkMJcj4Bb0AoFuA3s3NkeQENnQm+sG0f0OEGzH4Hw3UxWhmEcS2tMw3D9Y=; 7:po86fZDlv+x964N1Hi1+ThFGxrOUlBuWrakA8Nu/iCHPm5Pwy9PUlVp7vBuERPAQPoBeGg23d9FO2V/uR2N/GO7OF2WYxb9kBQdfW+pMJGbl95xhub0+4EKtPMzP4TFnk2dXnxENGAurny/MeBbcMbEDo3cTZlU4oRq8pTwiZ/CxF4k48YeUpbqBkDQXZoSDUntXIh2mRZhn5dRtbTn7CuiaQLEq2ERZPciMntnjQfnF6rUhHHG1HOVHk3y+dyrY SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Jan 2018 15:08:03.5571 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: c05b7a72-a495-4fdc-9841-08d559ce4859 X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e; Ip=[192.88.168.50]; Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR03MB2697 Subject: [dpdk-dev] [PATCH 3/6 v2] event/dpaa2: use dqrr index to cosume the DQRR entry X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Jan 2018 15:08:08 -0000 Signed-off-by: Nipun Gupta --- drivers/event/dpaa2/dpaa2_eventdev.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/event/dpaa2/dpaa2_eventdev.c b/drivers/event/dpaa2/dpaa2_eventdev.c index 83b572f..37e3e1c 100644 --- a/drivers/event/dpaa2/dpaa2_eventdev.c +++ b/drivers/event/dpaa2/dpaa2_eventdev.c @@ -237,8 +237,7 @@ static void dpaa2_eventdev_process_atomic(struct qbman_swp *swp, /* Check if there are atomic contexts to be released */ while (DPAA2_PER_LCORE_DPIO->dqrr_size) { if (DPAA2_PER_LCORE_DPIO->dqrr_held & (1 << i)) { - dq = qbman_get_dqrr_from_idx(swp, i); - qbman_swp_dqrr_consume(swp, dq); + qbman_swp_dqrr_idx_consume(swp, i); DPAA2_PER_LCORE_DPIO->dqrr_size--; } i++; -- 1.9.1