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 88773A034C; Wed, 23 Feb 2022 14:32:31 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7B857426FB; Wed, 23 Feb 2022 14:32:31 +0100 (CET) Received: from NAM02-DM3-obe.outbound.protection.outlook.com (mail-dm3nam07on2082.outbound.protection.outlook.com [40.107.95.82]) by mails.dpdk.org (Postfix) with ESMTP id 2B69B426EF; Wed, 23 Feb 2022 14:32:30 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=OuryI0+xlntlh+dos39LsSrTeEFLiL2sgGMC4fn9MeFixV8sv2wGD2Z8DQ57Go9QnmvBOy1Kx8sCtHJ1ugCISnv0XK8b5bM0dEeySTaZx5gf/O7d7fR6gORZ05M8APQPhe0w6r/RakI5MaLZYhxlTAkWhAnsiFyhr/dVzKxM1s2Qnf4wjACv1NksAbB20ko+4ZWsOhZ6ZnurgMQ3pswvG5kfPr+8G8sBMfgYqkJqZtGOekjcHUVokZ9nIDCV3kxoXTpBM8hR7qrvIbkYLlgvkKIWxu9c0KpuaGI+yctX1Naxfa3Z4vqFQAvALHR2DW6rrtsHEpq0KSwF/sAlLv5BmQ== 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=XihNDlqA8/k7s043kFpV9tYtwv5hgwtbsJ6c64TK9bM=; b=c5/RWL92yaPB/iclguVM0jeqXk400TuFq7rzFDJ35l9T0D1B7YtmtnGQuSADcZmjhtK/AXTyk1kqb2LtXfx86xtdpS6eHk1djLzQZ/MHZW27eKvUv+xqGA6Qt6Noal503MCJjiBeGWB7q8ODv6guOvVTf2tvn8TYsxBGcmTGQmVN6p0u/vtmWWzeiHq1sD8M60hKdV+cvDrwndYWhJgk/wwMXJFg1odJo/5OW6F2sDBwKQU7Wns6E87g5sl3WjVo39l7Aj4Y3W3kEolyrzJzW21rGmyDSrgC8NW/ayQURZQ/yE+pfHxHdV8SJwxP5zstoHJfIBsIR+xxvg/uxo6xZg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 12.22.5.236) smtp.rcpttodomain=dpdk.org 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=XihNDlqA8/k7s043kFpV9tYtwv5hgwtbsJ6c64TK9bM=; b=ZM7wKRYh+fbvYksBvpYDrbhIBE2lsZrnNEGKpJT7mDM8ENS3dlSASe1dyoKeDj+RlLJIqaAFga7s4kOpeU4wogAKQqQHujkX07RfxzBLfmBMwMMB0fPqP7KY4IS6IE2R2+SISqKzsYmNpLiCdlA4tjttTWitRalX3U2qR+Cmm2eO8uQjTDkH6P5H2qEsaL8p7v9hk4npRFNBHR8r/7b0pbGHIYIqeDEdM09TiBrBs0lrCPUL+Hrs7kzDrRSPFvVOHaIPhQaRItTAoD4KCI5wauX1kMBF1PNOhmETewjAlY7diFiZq7KOuFBmjUq8wYvBkJhEVkWWNnBWBNnegP+l6w== Received: from BN6PR13CA0008.namprd13.prod.outlook.com (2603:10b6:404:10a::18) by BL1PR12MB5319.namprd12.prod.outlook.com (2603:10b6:208:317::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4995.16; Wed, 23 Feb 2022 13:32:28 +0000 Received: from BN8NAM11FT044.eop-nam11.prod.protection.outlook.com (2603:10b6:404:10a:cafe::96) by BN6PR13CA0008.outlook.office365.com (2603:10b6:404:10a::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5017.23 via Frontend Transport; Wed, 23 Feb 2022 13:32:28 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 12.22.5.236) 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 12.22.5.236 as permitted sender) receiver=protection.outlook.com; client-ip=12.22.5.236; helo=mail.nvidia.com; Received: from mail.nvidia.com (12.22.5.236) by BN8NAM11FT044.mail.protection.outlook.com (10.13.177.219) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.5017.22 via Frontend Transport; Wed, 23 Feb 2022 13:32:28 +0000 Received: from rnnvmail201.nvidia.com (10.129.68.8) by DRHQMAIL109.nvidia.com (10.27.9.19) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Wed, 23 Feb 2022 13:32:26 +0000 Received: from nvidia.com (10.126.230.35) 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.9; Wed, 23 Feb 2022 05:32:24 -0800 From: Raja Zidane To: CC: , Subject: [PATCH] app/compress-perf: fix cyclecount enqueue ops allocation Date: Wed, 23 Feb 2022 15:32:17 +0200 Message-ID: <20220223133217.13502-1-rzidane@nvidia.com> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.126.230.35] 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-Office365-Filtering-Correlation-Id: 0039410c-1f20-4b13-008b-08d9f6d0efca X-MS-TrafficTypeDiagnostic: BL1PR12MB5319:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 0+HFde/o6b0l2dCwt9E/uudTEq5q7373qU+KjXZ2dh/H/NXqxXF8MgGTeRNp+YfLzbSFwMSZihc9M5H6FCgrsPC7nlAe4TxYxKSCxtMbmBUiwp655D6Csn75PQ5G/8FRDevhQuRjKGthVH9PcQpo5+318sUX+5B0B6Jp5r8II94EQUn+VlOoOxPniWy607daC++mdsqwzJbAhwyD798I/1x6ra6K4e2jmAfsMUfn72VT6lYMnRL/p06l7M8OMxrJSM/i2moE11cAiR4aIz0IyJSkojHwEBceuh7nUsiwv3RRoeBJLhJiCC7/+irHhZdfghoDTUNDSHwdNj6XSYRg3e6cYlwnxBG++v7bsThwbvV2u8Tz9A5n/emymEzF7v+A4N6uA5ZXmCVjRQ+mzNYjqu4LJ2Hf3xdkFHDV1rzeQNKqoGmBYmAVN6xFmNKhNuPj/C+HalpYWVkk3lGogcbyOGB0St8qFXq3/LUZbP6WH922mT0FP5GKN1SBgGniIfEcchomXbsPnjzGpbDLjKdwnHQEN008ZpvQjlEBmiQ3yWsDi5syfjUJigOLJsYZybf9Vs6hIzVDoJkxHok6s40QuhLgSTHXIGFfyHf7kfFf64fRjTm4UbT/Zlw4H2Ilgpgl4Vwoxb96bt+VyMFn3ouiAZS5iilzskNjxLkPm5f1kqFQEWq1XLjSxGU+lGVjKI/caTwbOPjbDEjGRtyrvkknWA== X-Forefront-Antispam-Report: CIP:12.22.5.236; CTRY:US; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:mail.nvidia.com; PTR:InfoNoRecords; CAT:NONE; SFS:(13230001)(4636009)(40470700004)(46966006)(36840700001)(450100002)(6286002)(6916009)(36860700001)(1076003)(16526019)(426003)(5660300002)(2616005)(316002)(336012)(55016003)(86362001)(54906003)(36756003)(40460700003)(83380400001)(26005)(186003)(47076005)(82310400004)(8936002)(70586007)(2906002)(8676002)(81166007)(6666004)(70206006)(508600001)(4326008)(356005)(7696005)(36900700001); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Feb 2022 13:32:28.4540 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 0039410c-1f20-4b13-008b-08d9f6d0efca X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[12.22.5.236]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: BN8NAM11FT044.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL1PR12MB5319 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org In cyclecount main_loop function, each iteration it tries to enqueue X ops, in case Y --- Acked-by: Matan Azrad matan@nvidia.com app/test-compress-perf/comp_perf_test_cyclecount.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/test-compress-perf/comp_perf_test_cyclecount.c b/app/test-compress-perf/comp_perf_test_cyclecount.c index 1d8e5fe6c2..c215547291 100644 --- a/app/test-compress-perf/comp_perf_test_cyclecount.c +++ b/app/test-compress-perf/comp_perf_test_cyclecount.c @@ -273,7 +273,7 @@ main_loop(struct cperf_cyclecount_ctx *ctx, enum rte_comp_xform_type type) /* Allocate compression operations */ if (ops_needed && rte_mempool_get_bulk( mem->op_pool, - (void **)ops, + (void **)&ops[ops_unused], ops_needed) != 0) { RTE_LOG(ERR, USER1, "Could not allocate enough operations\n"); -- 2.21.0