From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id E3A3441D8C for ; Mon, 27 Feb 2023 08:02:52 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E07D840A84; Mon, 27 Feb 2023 08:02:52 +0100 (CET) Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12on2043.outbound.protection.outlook.com [40.107.243.43]) by mails.dpdk.org (Postfix) with ESMTP id 1D42840ED6 for ; Mon, 27 Feb 2023 08:02:50 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=h+SzdFmvb21ZuanjGb4b9YE8lmDHokQML2fm5YgfFqTi5eqyd9DOHAJNg2ZqSCIUrdbfROBYkhAN/12HRf+u4VxIGy4D2T5ml4/0LwFHtZF7nAJxbdT6yXzcFilZh6K09eEfH8rg6CnW8txs6jKhMi4qgFnSw0aKTU2guXlsnxqpMVGfH9HNhRF/OyJFQhwais1uj+kEwLRrMZviA8AXpxNln6MB9mZDUkGJTAjo8JDvcFM0zpxDd8YRpQj2XCCfqWVCAXRvg6vLiwQJWR5uuTr1qrBgkZ4tcpsy7FXruv5x50FLXL9zGskKID1cCftd8CS+V3h38KUbhroR39N2Bw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=85ytWw4zp/bwL2cU/01YSgh8wEdfNMjLfgTJ2XepQT4=; b=fTau3QU3NemG9bJczOawJCnlBQ+fM1IUcZTcx1wWuiXtnOP1a3BsmYinJhlviCARQtn6zZcIwftr7bc2EAJzcvJ2N2i/9BtvS4BZKKzPwnDUEPVuIz9v1ckOO48xGdUz5vW31lfzF9dPIWdUHR/pHSCOt1bnfyLkk9/fmNS0z5pAXej1CJs38xIJ+gKzcSKVeo/a26U/sdEeT1TqEfAiWrq55DeyTEfRBRuzcuSobqTgStr0eLq+moUzDbxQq6HWTA+DsJdIfA6/K6NCYHJ4gXlMeKa3YqvrxJMzWGKdEEdE1T8rVhtvVOyervjLO8XPs+sf6bGj8zraeov+1OgMlQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.160) smtp.rcpttodomain=intel.com smtp.mailfrom=nvidia.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=85ytWw4zp/bwL2cU/01YSgh8wEdfNMjLfgTJ2XepQT4=; b=bz/TS/WPuGVyq4Lor4Qg5oeLKbQWeLw70B8thaZ/MGJX7bXyKs+uxArSI4n5B2eXP4E17SiTrsZ/TGtWInaP3ixU05Jh+I06+YGux4RYmrF9akHvakQYWK8pyGfmOJgH95IIVCK8ED9pOQWlZst2uAv8G7QpXSt/wBH56PsCGONsCqTdZ7DAnlm8nDCcA5PI8uRher6qq2Ycr+WLp98RDHi7HExRxETBlATTtGnBn0ev+yR5AYWe7CTGzBX/jIJOcWy0whFURMkoEfn3Y7Yni9vc1UIm1vW6aairntI7iamsjsEpZNtzu47bAi6vQn4ple9jgAf5MqfrIFzDdwf9pw== Received: from MN2PR06CA0023.namprd06.prod.outlook.com (2603:10b6:208:23d::28) by MN2PR12MB4408.namprd12.prod.outlook.com (2603:10b6:208:26c::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6134.27; Mon, 27 Feb 2023 07:02:48 +0000 Received: from BL02EPF000108EB.namprd05.prod.outlook.com (2603:10b6:208:23d:cafe::4a) by MN2PR06CA0023.outlook.office365.com (2603:10b6:208:23d::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6134.29 via Frontend Transport; Mon, 27 Feb 2023 07:02:48 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.160) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.117.160 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.160; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.117.160) by BL02EPF000108EB.mail.protection.outlook.com (10.167.241.200) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6156.12 via Frontend Transport; Mon, 27 Feb 2023 07:02:47 +0000 Received: from rnnvmail201.nvidia.com (10.129.68.8) by mail.nvidia.com (10.129.200.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.36; Sun, 26 Feb 2023 23:02:33 -0800 Received: from nvidia.com (10.126.230.37) by rnnvmail201.nvidia.com (10.129.68.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.37; Sun, 26 Feb 2023 23:02:31 -0800 From: Xueming Li To: Ganapati Kundapura CC: Abhinandan Gujjar , dpdk stable Subject: patch 'eventdev/crypto: fix enqueue count' has been queued to stable release 22.11.2 Date: Mon, 27 Feb 2023 14:58:40 +0800 Message-ID: <20230227070107.15664-12-xuemingl@nvidia.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230227070107.15664-1-xuemingl@nvidia.com> References: <20230227062349.13764-1-xuemingl@nvidia.com> <20230227070107.15664-1-xuemingl@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.126.230.37] X-ClientProxiedBy: rnnvmail202.nvidia.com (10.129.68.7) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BL02EPF000108EB:EE_|MN2PR12MB4408:EE_ X-MS-Office365-Filtering-Correlation-Id: d895447b-473d-4db4-5911-08db1890a266 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 9EEntGf7ubUIHXalrpwZsRDHbF+4YXdWVwwtFY94fcQY2/Ch6vKs8wMHeTmA41YPAJHjeAOwAPrMrBCd384Aqm41hL+ysft2dH7PZSQYA8Dx2HDd5ytgxJniYsc5wM/Ed/P6QF2HZAxFPcAove5vx1JZ6VGHMyaM4r9edLoAdee0WigfOlK+t5bG+mxg7wxCeWyigOGQ9axP1mmFk18pa7GV+g7rg5cq0Up65T8MOcU1bOEbgZuFkX1I/rtGMHGbWDLSEAcvTs61dkXclMe6bZ/XTIYAsmI6afe/LjCjJ7Fd/O96A4rNUPFb6J7sYqRn0czYkD2FGJeUvh+lTcQLBAPfJ/U5+2uHx+3Q2DWcUJdpnW9SzaY7oEfUaVdBg0RpYTnO/ROP7xFqUgMYW/970aylEs3/PXK+xNGzUkUKO5/QAr9vSMFt/mJ2rr0VnaZr/KqXvSj9kwZvwDPVOHNymIj1IAQ5/h8hhzM6t9tTO8BlPipefywK1WiuXYm3ZtfCoZeeJwlCrAJa3flv640KCC8jdqcsV76sKSXxPP7lL0195zxbuCudTw9CDYxH9C4+2W3vnq52zyBQYiQtJGXFLgaw7NCJ0eP682yfU0zEeuykDnjR71acA9vGglhssxPwS0mLsL9t7pxh7P2WA3Xsye3TiQHzWWnUP/KsiqSXAA/DZpnmpz91+B5iJqYqkJD7k+ldlNlIqWm0z9SEKteA2+IU6rQ7jjFwhV6lH1sncqohZxfAtkgJtMDS0WJkiyCvqfixqIW500Tsgn9qJUluGlHTp7KAlO9CJ2+BcHTfbuI= X-Forefront-Antispam-Report: CIP:216.228.117.160; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:dc6edge1.nvidia.com; CAT:NONE; SFS:(13230025)(4636009)(136003)(396003)(39860400002)(376002)(346002)(451199018)(36840700001)(40470700004)(46966006)(40460700003)(6286002)(186003)(16526019)(82740400003)(7636003)(83380400001)(316002)(356005)(8936002)(6916009)(8676002)(4326008)(41300700001)(70206006)(336012)(2906002)(5660300002)(70586007)(36860700001)(6666004)(7696005)(55016003)(40480700001)(478600001)(1076003)(426003)(26005)(53546011)(47076005)(966005)(2616005)(36756003)(54906003)(82310400005)(86362001); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Feb 2023 07:02:47.9999 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: d895447b-473d-4db4-5911-08db1890a266 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.117.160]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: BL02EPF000108EB.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR12MB4408 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Hi, FYI, your patch has been queued to stable release 22.11.2 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 03/01/23. So please shout if anyone has objections. Also note that after the patch there's a diff of the upstream commit vs the patch applied to the branch. This will indicate if there was any rebasing needed to apply to the stable branch. If there were code changes for rebasing (ie: not only metadata diffs), please double check that the rebase was correctly done. Queued patches are on a temporary branch at: https://git.dpdk.org/dpdk-stable/log/?h=22.11-staging This queued commit can be viewed at: https://git.dpdk.org/dpdk-stable/commit/?h=22.11-staging&id=d66216823d92894880591cfd53142f733724e73c Thanks. Xueming Li --- >From d66216823d92894880591cfd53142f733724e73c Mon Sep 17 00:00:00 2001 From: Ganapati Kundapura Date: Wed, 7 Dec 2022 00:49:42 -0600 Subject: [PATCH] eventdev/crypto: fix enqueue count Cc: Xueming Li [ upstream commit 04dac736432fe304196818d696540e4d016bad93 ] crypto_enq_count is updated on failure to enqueue ops to cryptodev. Updated crypto_enq_count on successful enqueue of ops to cryptodev. Fixes: 7901eac3409a ("eventdev: add crypto adapter implementation") Signed-off-by: Ganapati Kundapura Acked-by: Abhinandan Gujjar --- lib/eventdev/rte_event_crypto_adapter.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/eventdev/rte_event_crypto_adapter.c b/lib/eventdev/rte_event_crypto_adapter.c index 3c585d7b0d..b10595fbbb 100644 --- a/lib/eventdev/rte_event_crypto_adapter.c +++ b/lib/eventdev/rte_event_crypto_adapter.c @@ -497,6 +497,9 @@ eca_enq_to_cryptodev(struct event_crypto_adapter *adapter, struct rte_event *ev, cdev_id, qp_id, &nb_enqueued); + stats->crypto_enq_count += nb_enqueued; + n += nb_enqueued; + /** * If some crypto ops failed to flush to cdev and * space for another batch is not available, stop @@ -507,9 +510,6 @@ eca_enq_to_cryptodev(struct event_crypto_adapter *adapter, struct rte_event *ev, &qp_info->cbuf))) adapter->stop_enq_to_cryptodev = true; } - - stats->crypto_enq_count += nb_enqueued; - n += nb_enqueued; } return n; -- 2.25.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2023-02-27 14:08:41.407027300 +0800 +++ 0013-eventdev-crypto-fix-enqueue-count.patch 2023-02-27 14:08:40.729237000 +0800 @@ -1 +1 @@ -From 04dac736432fe304196818d696540e4d016bad93 Mon Sep 17 00:00:00 2001 +From d66216823d92894880591cfd53142f733724e73c Mon Sep 17 00:00:00 2001 @@ -4,0 +5,3 @@ +Cc: Xueming Li + +[ upstream commit 04dac736432fe304196818d696540e4d016bad93 ] @@ -10 +12,0 @@ -Cc: stable@dpdk.org @@ -19 +21 @@ -index 134470bf05..eaff5778a6 100644 +index 3c585d7b0d..b10595fbbb 100644 @@ -22 +24 @@ -@@ -485,6 +485,9 @@ eca_enq_to_cryptodev(struct event_crypto_adapter *adapter, struct rte_event *ev, +@@ -497,6 +497,9 @@ eca_enq_to_cryptodev(struct event_crypto_adapter *adapter, struct rte_event *ev, @@ -32 +34 @@ -@@ -495,9 +498,6 @@ eca_enq_to_cryptodev(struct event_crypto_adapter *adapter, struct rte_event *ev, +@@ -507,9 +510,6 @@ eca_enq_to_cryptodev(struct event_crypto_adapter *adapter, struct rte_event *ev,