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 CE20BA04A4; Wed, 2 Mar 2022 09:41:46 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B0AC842715; Wed, 2 Mar 2022 09:41:46 +0100 (CET) Received: from NAM02-BN1-obe.outbound.protection.outlook.com (mail-bn1nam07on2086.outbound.protection.outlook.com [40.107.212.86]) by mails.dpdk.org (Postfix) with ESMTP id A282C40141; Wed, 2 Mar 2022 09:41:45 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=cV4jAQWn5ZBfjm4mOCgoRKUd3UMBKKFHOgsT+xE487enFy0GpN8FABUOMweioV8vZq1ZMkhSIauyDygYc+tYCPzxkcT7I747M68gxqyoMaL58tEGgbkeBGunqHFJoaZpIyQeVH2NHhlU+UaOo8YF+KCaWhW9aRH0Va7sCIP54CduZYuhDBr34aNQfQUyfifVKbq3uUYYmy56fBmsoFFQ3B9tuSTvFHiX483IzBt0eEFnnXfMCFkkwbIpeYHG033IAedDu3oZAwCP0fneh5FEOUiamhmHJRsJTlbvKCWf+8/Vzv1L3tzCfEO2qyG/Sk4767rlWmaSQrEbqV6c0qYPLA== 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=FQe/QWiwz0sM19HkiUkORZbd5/dwntdbWDDurkbnPwc=; b=ap0Y9PA8ELrY2LhxJcXDqVEt4emQJyqypeZuew3qkhnMmRNF7ygOjfvAx9vzJ2bVezVoccEw/5goMNJ91aUZpVoChZdDN0JiCqhUJzJBGlEj4YY9fO2T0KJ8xm1RFU8ZN9b2xOvWdxHgBQIJ+St828XR2tN9LNmTQBtwaneE+V2CuVnBWK2nevoiHtZQu+on8R1ydoTwAykyV4NDIiMn+PEY8I2QOmtvUsLWu1eB2Gly1d0V2rh4DoMHpGxXmcK25O80BzyXSeWcpu0BS+LO84wlpYMzXBU2ysorTgqFtIyYUuvQpzg/wGk+8M0CFKFayYRXi4yn5lhmGQUmH520XA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 12.22.5.238) 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=FQe/QWiwz0sM19HkiUkORZbd5/dwntdbWDDurkbnPwc=; b=RkiNLSsjLH9uyQKLQDfz+sQyaEnWn3tcDooM3ROFPgE4C8lbxbedkob9iQ2tSn//Q+3Hiz/iKVh9NxMvUtnyt6xAyfo5Mfw0grY5+Bbpn4RxFcYNHYdU8PIbkftEIyW8ck+qqoE4cWdd50fXzTYmOoiKqMsc5aeGUX2FWr3pwLv7BqgxagvXJXDkkkj0NF0zziAfILdLZtu067+0INRjIwOuyFow2k7lMsdwsJjxPPl7He5ruC4UAMylIUrC3+n2pyUCgNyy9VX9l/MmHEjRiZOcSZqv8xA+pUIlvQyWzOo2ZYUwT1c9j5gbplEHSdRZ/fdoY39akNM6L5s2l5T0nQ== Received: from MWHPR20CA0043.namprd20.prod.outlook.com (2603:10b6:300:ed::29) by DM6PR12MB3929.namprd12.prod.outlook.com (2603:10b6:5:148::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5017.24; Wed, 2 Mar 2022 08:41:44 +0000 Received: from CO1NAM11FT024.eop-nam11.prod.protection.outlook.com (2603:10b6:300:ed:cafe::dd) by MWHPR20CA0043.outlook.office365.com (2603:10b6:300:ed::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5038.13 via Frontend Transport; Wed, 2 Mar 2022 08:41:44 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 12.22.5.238) 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.238 as permitted sender) receiver=protection.outlook.com; client-ip=12.22.5.238; helo=mail.nvidia.com; Received: from mail.nvidia.com (12.22.5.238) by CO1NAM11FT024.mail.protection.outlook.com (10.13.174.162) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.5038.14 via Frontend Transport; Wed, 2 Mar 2022 08:41:43 +0000 Received: from rnnvmail201.nvidia.com (10.129.68.8) by DRHQMAIL105.nvidia.com (10.27.9.14) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Wed, 2 Mar 2022 08:41:42 +0000 Received: from nvidia.com (10.126.231.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, 2 Mar 2022 00:41:40 -0800 From: Raja Zidane To: CC: , Subject: [PATCH] app/compress-perf: fix number of QPs to setup Date: Wed, 2 Mar 2022 10:41:31 +0200 Message-ID: <20220302084131.9394-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.231.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: 54b02e38-e18f-44e9-3352-08d9fc287ac7 X-MS-TrafficTypeDiagnostic: DM6PR12MB3929: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: 5Vo+wM170ww8v7G4xRp+KbuUYXZ1fROWhvHMxP/10yTtWOCWbaSLPJnQKN001VTYs3KnUpWr6NEpqNxNjHAq/htktR89HgilfOTzlRggMv+4B7eJV8lQt0UWE/Eso+o0L2lQm+lATLEqwCERk116u5R9ARf80ZjYgYlnjYlkZdy0A0J3Mz+8DD5y0fJ/7nwdu3pQMXdBXMhjgKMuGXdyBQufccqt/EHhmU0gB/VomBA1w6z81qQ6RxZ5nZs02dr+BNE//QYb0m7zjHF0B+s4Gd3MNQ1JVOVBYMe1GYkw5KB6aXG3NgrSpmXXezkqPSLm7jXSeXXp1sUCSUACx8fCZiFvm4TeS/bk2NnDhtdKGKvE+qxuM2QI+f9WePYvywAArm7camvpfGljM1Wm9nmULGLAn7oSV57uESOF9ls/VavcrcwPIx+0HMjfwgnyjJ4u7bnFp3VNSXZwnRvJxJjc6hxazWpKZWYAybTu4zeIr3v0Fv9TJVqXz6AjK2+Sr9+NosCCD2Cpkh7RmWVhigEgQstsnsN1Wb5g01/6Bn1nlg/BCs2JuAvvsYrSJxks2SI4xpuEFFtTyUzDOitvdFa4NQUkIuHuyJtHbTPc0EQCU44kRLar4XEzGXKGjVuf+3rh3c2IfPiDHk05Cj/UcOHoGxZ/xHkFgBkjt5U8jIUGiKlfspmYFSK6UwUZRiMhcfjDcuDncSuX7t5J2DG+/4qO2w== X-Forefront-Antispam-Report: CIP:12.22.5.238; CTRY:US; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:mail.nvidia.com; PTR:InfoNoRecords; CAT:NONE; SFS:(13230001)(4636009)(36840700001)(46966006)(40470700004)(2616005)(26005)(336012)(16526019)(81166007)(356005)(426003)(86362001)(6286002)(186003)(83380400001)(2906002)(1076003)(6916009)(54906003)(316002)(82310400004)(4326008)(5660300002)(6666004)(36756003)(36860700001)(55016003)(508600001)(450100002)(8676002)(70206006)(7696005)(47076005)(8936002)(70586007)(40460700003)(36900700001); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Mar 2022 08:41:43.7308 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 54b02e38-e18f-44e9-3352-08d9fc287ac7 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.238]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: CO1NAM11FT024.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR12MB3929 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 The number of QPs is limited by the number of cores, such that in case the user requests more QPs than possible, the number of QPs actually configured on the device is equal to the number of cores, but the app tries to setup the original number of QPs. Align the number of QPs setup'ed to the limited number. Fixes: 424dd6c8c1a8 ("app/compress-perf: add weak functions for multicore test") Cc: stable@dpdk.org Signed-off-by: Raja Zidane Acked-by: Matan Azrad --- app/test-compress-perf/main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/app/test-compress-perf/main.c b/app/test-compress-perf/main.c index 6ff6a2f04a..28b4c1ded7 100644 --- a/app/test-compress-perf/main.c +++ b/app/test-compress-perf/main.c @@ -194,6 +194,7 @@ comp_perf_initialize_compressdev(struct comp_test_data *test_data, .max_nb_priv_xforms = NUM_MAX_XFORMS, .max_nb_streams = 0 }; + test_data->nb_qps = config.nb_queue_pairs; if (rte_compressdev_configure(cdev_id, &config) < 0) { RTE_LOG(ERR, USER1, "Device configuration failed\n"); -- 2.21.0