From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-BN3-obe.outbound.protection.outlook.com (mail-bn3nam01on0086.outbound.protection.outlook.com [104.47.33.86]) by dpdk.org (Postfix) with ESMTP id 22C9B1B292 for ; Wed, 17 Jan 2018 06:24:22 +0100 (CET) Received: from CY4PR03CA0107.namprd03.prod.outlook.com (10.171.242.176) by CO2PR03MB2357.namprd03.prod.outlook.com (10.166.93.17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.428.17; Wed, 17 Jan 2018 05:24:21 +0000 Received: from BN1BFFO11FD029.protection.gbl (2a01:111:f400:7c10::1:113) by CY4PR03CA0107.outlook.office365.com (2603:10b6:910:4d::48) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.407.7 via Frontend Transport; Wed, 17 Jan 2018 05:24:21 +0000 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 BN1BFFO11FD029.mail.protection.outlook.com (10.58.144.92) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.345.12 via Frontend Transport; Wed, 17 Jan 2018 05:24:20 +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 w0H5O79q027272; Tue, 16 Jan 2018 22:24:18 -0700 From: Nipun Gupta To: CC: , , Nipun Gupta Date: Wed, 17 Jan 2018 17:09:11 +0530 Message-ID: <1516189154-28331-4-git-send-email-nipun.gupta@nxp.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1516189154-28331-1-git-send-email-nipun.gupta@nxp.com> References: <1515792181-11836-1-git-send-email-nipun.gupta@nxp.com> <1516189154-28331-1-git-send-email-nipun.gupta@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131606402611595124; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(7966004)(39380400002)(396003)(346002)(376002)(39860400002)(2980300002)(1109001)(1110001)(339900001)(189003)(199004)(316002)(16586007)(54906003)(26005)(2906002)(6346003)(47776003)(296002)(77096006)(36756003)(81166006)(8936002)(8676002)(6916009)(2950100002)(508600001)(81156014)(6666003)(5660300001)(8656006)(68736007)(86362001)(50226002)(105606002)(106466001)(51416003)(76176011)(97736004)(2351001)(305945005)(50466002)(53936002)(48376002)(356003)(4326008)(104016004); DIR:OUT; SFP:1101; SCL:1; SRVR:CO2PR03MB2357; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1BFFO11FD029; 1:bwMehULkm0WRpsWe3bbiOblnyIC/EAZEOYbZAOvxCvEh/tIXyoa5Vn1MMDWmetXPRwP7rMs6uY+afpQm072M9Gn6uhICQWdR827aWMSwzH7tO/v2RsKXfEy1LyDUbHJO MIME-Version: 1.0 Content-Type: text/plain X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 3032fb76-c9dc-42c9-c774-08d55d6a904b X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(5600026)(4604075)(2017052603307); SRVR:CO2PR03MB2357; X-Microsoft-Exchange-Diagnostics: 1; CO2PR03MB2357; 3:6rrPPB1b4IOlqCUpmrb8oHdbIY4pj5jsN8otkK3+Imp2ZlEYt6I3/+Ykrzrt3/sfq7T0KORcgjytrcTbvNiMgnL2Bk8/FPNzoa8xjlH6rx0ouP9nT40eQhQufJ29JeX27H4oSBqER1vuvYEzyaEdh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R8TT8bkkFAMsph89IRhnUpwtSqcQILERiYoRTl6yZN30O/nqfEv4XIymB33se7EwTLHQ+AOSgaCAetD+ZYCBcna32GmyV+ZfhJk4R3xkLk18 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)(10201501046)(3231023)(2400041)(944501161)(3002001)(6055026)(6096035)(20161123556025)(20161123565025)(20161123561025)(20161123563025)(201703131430075)(201703131520075)(201703131441075)(201703131448075)(201703131433075)(20161123559100)(201708071742011); SRVR:CO2PR03MB2357; BCL:0; PCL:0; RULEID:(100000803101)(100110400095)(400006); SRVR:CO2PR03MB2357; X-Forefront-PRVS: 0555EC8317 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CO2PR03MB2357; 23:mFa0WhYC1FJU+xcWiKteYfrES0OB5ri7cJLyRtxIz?= =?us-ascii?Q?bs80SARbXawRig6bsNY3wZ3+nkGbUr5Xag4cghDQpFbGRRzatGzGc5kZOGdG?= =?us-ascii?Q?zevK51qkNbCmEqvQslO74j1WnL7zxRL2wGrC+dmwhYG7k/NHE9RfDQYcpp8j?= =?us-ascii?Q?iDMXTKnNcBx7kmL5oEIbK1NSIKWB7NLoeg0ZcnbUgyoHRQqn0mnlPiPNSbXf?= =?us-ascii?Q?PiigRQfUd36r2d0GXEg/T1dCrsoaPuwEwLpCgida7PlQQNKFG9W7H4WnmmgW?= =?us-ascii?Q?RICkJW+AH01m0nvHmdIoVbrlkYfB1SrYiNB/39urQJO+SsfATKu2FXGVBHbY?= =?us-ascii?Q?dFR58VaZ4Aov7HHqIKjJdMTyas3eESG0YXYnVysQVJ+N0cvnXYTgCGoR7m8L?= =?us-ascii?Q?5XCL0XYdKHm5xM1OO3CAbBOIm4zHpg06EVPKrIrxKUPfK26rcVoga/ELVFqZ?= =?us-ascii?Q?jjVJqr/lTLtDKpseXvvM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EjhbAOOYRQlqSYzJBSJmv0kaCcmyLkUgphIcog7FDZe44eCynCrialj1T/8nKTqNFmwRxh6wbBpYNVbQHdniLif7gxzYjxEqD+nnVReiopdAE8SQscLVOqtacJ/vXU/xAR/Lk8Hd/4y12gJE=; 5:7hTZ5H52Kt/zaKA1ZMLhq0APebFLHwJh0TymnO/uqEueVlv8Ei4R1O2pqZ0AkkpMCV8/WSl9c1EM+k8Js0nelNnSsvxppPhKFZQfk1XahX2wU8O0Gl8RT6TRlPsozn+kh4O8B+kPaex6HZTOigxSuATz6Z9cFDMSPhtnbuRGwZ8=; 24:TfoZqh3nhFfduOpf8HeZvnf0rBmyzsfQhFfx6LmnoxhZJ0mtIAlgnZsDgyXPW9nGZGIIbY/+KVKxwA1Bws9nr68u5lT8aDUKMOYycLzJd+w=; 7:5QvU5zuHnTgltZc3Fh/sncfCCko/I4K/BujQ/rZfS9NzSQJknKOYc8rBSHQ8ziIBjYAqoswnNlMc+2+79oxnjLjPpLiL06s9x58nzLvRS0zVpFJlVJCarwXeTK6xUaMkxhR95NK1guSoyH2xGusoJy+lMrvgiZBWQWoJIQIr9M09XnyNw6V/UcTYcfZbUqjNs/7+qwbjbqz2uHapcWZCusSQVtL9VMTsOpyrjTdI9wymIssUfHdvJafe0FgG5KWT SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Jan 2018 05:24:20.9879 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 3032fb76-c9dc-42c9-c774-08d55d6a904b 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: CO2PR03MB2357 Subject: [dpdk-dev] [PATCH 3/6 v3] 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: Wed, 17 Jan 2018 05:24:23 -0000 Signed-off-by: Nipun Gupta Acked-by: Hemant Agrawal --- 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 542bccc..65c2c7a 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