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 02A1F41D8D for ; Mon, 27 Feb 2023 08:06:19 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id ED32540A84; Mon, 27 Feb 2023 08:06:18 +0100 (CET) Received: from NAM12-MW2-obe.outbound.protection.outlook.com (mail-mw2nam12on2063.outbound.protection.outlook.com [40.107.244.63]) by mails.dpdk.org (Postfix) with ESMTP id B5D04410DC for ; Mon, 27 Feb 2023 08:06:16 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=D24y0K0t1byD7fI196sjLURmz2Iz+zHc2o1e1VIE6tVYneEOCYJPzQ7f4/HkceToOs1n5fLWXjOW+wmYnldsjA3YZTN+Yc2tP2cR/D9grgX7+ggINd3dxoDbsChWEwaXGTM3ZvR5JXV4SVYieQdYNKxo9GjQjz2beal2HwVgaL50Dpppergy4KknN8u6pv+nodgQ5U09vjJLgHd0BEb5Rtm3L4hpLIrf0/MrA7Z7nZoFX+EB8NFYrttf1VHrWcyinbqVFrUx+SuP8JlD1N6me6WX5dwthiEq/nL7F/QlRcI3JgRo2uQ7XaXVWOQVKvVhsj5QKaZbzmQE8nFMaaWZbg== 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=9DuBdd9CIO9QXkH/R7SYMc1/vZ/lOZQL2VbgjtBCKD8=; b=lyBFV5nWkb46rVHkvXoPzr9iuEyIe7sSTLFcp2qfzOszLC+/8yCd3hk/YV4nsxG55Hk2Cd50ZOlGZW6gKB0yOlTdhwChj6Zo2BzPPz5CChLEJ5Ab5+FOGsbctaSy93UwC0A3gt13gpAq4FVD5Ei95ekjQGqN9Cs0X4aDGu0CYpI6Bv4hfQ6js1zQ0tQbd/Byo9xec+X2/hn5OrL0RFnvwtO8uuSXIGdX3ZqTU+vNVsLWPMV74eIYWu2FC6SrjtMaUEXq0SrKkfK0ujVXRY+2gnfCdoO2hsfq3h1sWoygldJ1QydKMmcoxreNoM/S5uyG7cvnjytWmAr4wl2+Day+Sg== 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=9DuBdd9CIO9QXkH/R7SYMc1/vZ/lOZQL2VbgjtBCKD8=; b=bfTLfOQtkHljrKaraNMcjJSPYPdIRmO37WOCHkAyos5yZyGtUZalU7wqVc2OEfHBAvXYcnK72hC86simsZVVH1foBsq23PpUo9QSMRgp0HPcVhpezyHpfpSuP+6xAPtOgk5FwYKB5WtLldLSE5D9NTSmCGMMwvR+1z3TSjmhcmpxDTf1mwUyi8B0r7tf0pW4g+Dw6Bk32uC1b6JCc0lBfVjGO2woeZXmJ42BnMeE8EyKl8l1Csaoy5NYB6d4EtAOWmOHUVCekmo0hRp/+r7nR6JcE+gA4pI9JjHicCn39FuHmTWI+L/ynd+mToIhEysV1EIAJR8jUUm+TYYEmARC3g== Received: from BN8PR04CA0022.namprd04.prod.outlook.com (2603:10b6:408:70::35) by SJ1PR12MB6123.namprd12.prod.outlook.com (2603:10b6:a03:45a::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6134.28; Mon, 27 Feb 2023 07:06:15 +0000 Received: from BN8NAM11FT098.eop-nam11.prod.protection.outlook.com (2603:10b6:408:70:cafe::da) by BN8PR04CA0022.outlook.office365.com (2603:10b6:408:70::35) 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:06:14 +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 BN8NAM11FT098.mail.protection.outlook.com (10.13.177.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6156.16 via Frontend Transport; Mon, 27 Feb 2023 07:06:14 +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:05:56 -0800 Received: from nvidia.com (10.126.231.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:05:53 -0800 From: Xueming Li To: Nicolas Chautru CC: Maxime Coquelin , dpdk stable Subject: patch 'app/bbdev: add allocation checks' has been queued to stable release 22.11.2 Date: Mon, 27 Feb 2023 14:59:13 +0800 Message-ID: <20230227070107.15664-45-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.231.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: BN8NAM11FT098:EE_|SJ1PR12MB6123:EE_ X-MS-Office365-Filtering-Correlation-Id: 9e4125e8-4936-4e4b-bb58-08db18911d55 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Q8Rc8thwRY4tXFZaQK58vON3VdSoChokAKjsWzxATJ4DUUU54+soCqV1xRlsZVlsvtS2Ip3AU02OKd36JuFy8mM3zTAh6xr5ep0UNdsblLUA22WWBUIx1KIz6ggmWVmYDnpGWFXcun69JyBniMVvhjev8lhLCURRi9exia35qfJcn6Abhb+t8eXnDB1DI7A0b0MIgmYqR8tJS7RZTKhKyCwUHfyLCi2dNcQR+v7avW1EMU4VEy0m/8mKJqGXmYCVbK8qR0ZTJMFYLKQEFtIDpRSsfazlRYsqmLdeoM/nbRfNRSdioe7NkAF3iOwdirtRlygzC5wQ/V7lRASJyvmi5HkG3El/kup6N4Pu1oUTrekOyIdZlQdaGPy/qgehnvm2cFg0mvKlRAFooF/gNHmUcIDaiCqYWc4GPa7vomeoNrsIIHge4SGS1TPYRXkpoc2//EOIAe4hEYVRvEM8tiaJJJ1IBIqg7hiBFYBeAf/TXh0eNbXePUGRDgAfOBysDjrrgVNwFkp04r9fV80HGT0wD/YTACshyjLCpaHA8DT8gUKOTC5QBNMeqM/bt6fz4xS2JYkHnGo4cSDE/grMGvUlPe3L/xsaZTW/5SSBtXul127c3bS5GrOzqy0GtecW+M1XU94C5ZzQkG6D3VqMWfD/5FOlp+BXH394gFixk3jevotGGtg5QmAlRTY+Zqn1jLkLsV3Iv7Hgxx2+Wpzd7acpA7TpPgU599bVHqw547dftYoqKojfsrn4WWSzooLYV5Bqskz4tcLFmkhJZObeg3X/yUQKNK9rOzTaSMeL7PxJQXrGFn5I28SlD4bpU6WynEoO 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)(39860400002)(136003)(396003)(376002)(346002)(451199018)(40470700004)(36840700001)(46966006)(40460700003)(16526019)(6286002)(186003)(7636003)(82740400003)(83380400001)(356005)(6916009)(8936002)(4326008)(70586007)(70206006)(41300700001)(2906002)(8676002)(36860700001)(5660300002)(34020700004)(7696005)(55016003)(40480700001)(47076005)(478600001)(1076003)(426003)(26005)(336012)(6666004)(53546011)(966005)(2616005)(316002)(36756003)(82310400005)(86362001)(54906003); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Feb 2023 07:06:14.2508 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 9e4125e8-4936-4e4b-bb58-08db18911d55 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: BN8NAM11FT098.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ1PR12MB6123 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=e44360ae858a4f5b947abe96f66ba98cc324f287 Thanks. Xueming Li --- >From e44360ae858a4f5b947abe96f66ba98cc324f287 Mon Sep 17 00:00:00 2001 From: Nicolas Chautru Date: Tue, 13 Dec 2022 08:18:55 -0800 Subject: [PATCH] app/bbdev: add allocation checks Cc: Xueming Li [ upstream commit 8abe31b1d9d9448ab4ab1d98a22314a2fa9fbfc6 ] Adding check for error on return of the rte_bbdev_*_op_alloc_bulk calls in bbdev-test. Fixes: f714a18885a6 ("app/testbbdev: add test application for bbdev") Signed-off-by: Nicolas Chautru Reviewed-by: Maxime Coquelin --- app/test-bbdev/test_bbdev_perf.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/app/test-bbdev/test_bbdev_perf.c b/app/test-bbdev/test_bbdev_perf.c index 90eff6364e..e001074861 100644 --- a/app/test-bbdev/test_bbdev_perf.c +++ b/app/test-bbdev/test_bbdev_perf.c @@ -4958,7 +4958,8 @@ offload_latency_test_fft(struct rte_mempool *mempool, struct test_buffers *bufs, if (unlikely(num_to_process - dequeued < burst_sz)) burst_sz = num_to_process - dequeued; - rte_bbdev_fft_op_alloc_bulk(mempool, ops_enq, burst_sz); + ret = rte_bbdev_fft_op_alloc_bulk(mempool, ops_enq, burst_sz); + TEST_ASSERT_SUCCESS(ret, "Allocation failed for %d ops", burst_sz); if (test_vector.op_type != RTE_BBDEV_OP_NONE) copy_reference_fft_op(ops_enq, burst_sz, dequeued, bufs->inputs, @@ -5039,7 +5040,8 @@ offload_latency_test_dec(struct rte_mempool *mempool, struct test_buffers *bufs, if (unlikely(num_to_process - dequeued < burst_sz)) burst_sz = num_to_process - dequeued; - rte_bbdev_dec_op_alloc_bulk(mempool, ops_enq, burst_sz); + ret = rte_bbdev_dec_op_alloc_bulk(mempool, ops_enq, burst_sz); + TEST_ASSERT_SUCCESS(ret, "Allocation failed for %d ops", burst_sz); if (test_vector.op_type != RTE_BBDEV_OP_NONE) copy_reference_dec_op(ops_enq, burst_sz, dequeued, bufs->inputs, @@ -5124,7 +5126,8 @@ offload_latency_test_ldpc_dec(struct rte_mempool *mempool, if (unlikely(num_to_process - dequeued < burst_sz)) burst_sz = num_to_process - dequeued; - rte_bbdev_dec_op_alloc_bulk(mempool, ops_enq, burst_sz); + ret = rte_bbdev_dec_op_alloc_bulk(mempool, ops_enq, burst_sz); + TEST_ASSERT_SUCCESS(ret, "Allocation failed for %d ops", burst_sz); if (test_vector.op_type != RTE_BBDEV_OP_NONE) copy_reference_ldpc_dec_op(ops_enq, burst_sz, dequeued, bufs->inputs, -- 2.25.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2023-02-27 14:08:42.381913400 +0800 +++ 0046-app-bbdev-add-allocation-checks.patch 2023-02-27 14:08:40.759237000 +0800 @@ -1 +1 @@ -From 8abe31b1d9d9448ab4ab1d98a22314a2fa9fbfc6 Mon Sep 17 00:00:00 2001 +From e44360ae858a4f5b947abe96f66ba98cc324f287 Mon Sep 17 00:00:00 2001 @@ -4,0 +5,3 @@ +Cc: Xueming Li + +[ upstream commit 8abe31b1d9d9448ab4ab1d98a22314a2fa9fbfc6 ] @@ -10 +12,0 @@ -Cc: stable@dpdk.org