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 3C56EA04A5 for ; Wed, 2 Mar 2022 09:40:02 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 34FC942716; Wed, 2 Mar 2022 09:40:02 +0100 (CET) Received: from NAM04-MW2-obe.outbound.protection.outlook.com (mail-mw2nam08on2078.outbound.protection.outlook.com [40.107.101.78]) by mails.dpdk.org (Postfix) with ESMTP id A47DC40141; Wed, 2 Mar 2022 09:39:59 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=j3cmK6X8rPhEfUypkKYBm5J2y2SMGGTMUiDgsOjxKCkmlLsN3lCGc01gQnxT77jSAVcS4e7EXApkwYBeQxLiQOmLZ/SNstqg2efC401ka5z7URf9NgQwbMQG+4HPSiPnNpYDf9RkiZYo7jELbVUvd5lH902ho9A5r+h+FeXJojenxJw50dw1G9jYrQmaQH9CP/gDqXz8EvSmbNbO6l4r+KtAZHjD3Hu30Xd/0JRJi6MQtn86V0reKp62hidlQpPY4U2GtYvpaWYYQOWeUY6L9kwCuUDmZqBHWwUfUCABNz5ujdR0/LNsIOXSzwW2W6ZzcKJzswrNmV6y9TFa3a20eA== 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=SgQ5OO3GB8dWoZJUKdA2yPvGGUOvm3xy6RyIX7QDdsQ=; b=BNRujSXzboMqslr8BcvnJYkg8po/5gooTVpKoS7eSMLJE3qqWWGQAgL3e2HsmtV7CJ/BAzie6gNJArzCCQHEP+YS882sXVhVvLWP8hdLa6noj/0QNSiOYMsAcfYaCC6yRYSNGm/aSABzJMrfb7JQpYu7u+r/zflZupaxmrJQP+KqJN6mh1Ji8QvsV+7V25plJFQXuVIVQsPyP94e2dEum4B8q4grS1VWxZ8MXIGCZQjCirTQ07O9UkXA/PzosCWwZzpDm7MYiR/0Sugw8CZrlmieaeNrzEhQjXth+Jw0MZ2z9M1IMvKssgBoolwBw+2EfCvRiXDCtKHSt6OoFWj0wQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 12.22.5.234) 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=SgQ5OO3GB8dWoZJUKdA2yPvGGUOvm3xy6RyIX7QDdsQ=; b=mHwZHQfuenWUB8apObqmd9IR2VmHWSINyNn+snF6sDak5AVCAdrZFrJ3xhgsNmxBy4nLdPEbfmlKTDWePsJmB5jsfdNjM0R7nYcsTR4xPEX8e0m+jXjYeWBOn5hK7z1gkanSfFoZ/Qa60+ODBI84TGgsY3A8D+FmioX0osMqUADZCgW//QIF4L6THyfZ9SOjWZp8VZTekRhJYnkCdZNMqRdCIJbsDIh9g2FvZfNOj+PsEvwwFE6GBzv3RveMEWqytokbt2uV9DyZbjpuStrZQBppQF2XE5AhSfmvE0QRgV7UdkMuVall2TM+B2sMxlJUqKqHLU3W+gfl7k7hmTJ2RQ== Received: from MWHPR07CA0010.namprd07.prod.outlook.com (2603:10b6:300:116::20) by PH7PR12MB5653.namprd12.prod.outlook.com (2603:10b6:510:132::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5038.14; Wed, 2 Mar 2022 08:39:57 +0000 Received: from CO1NAM11FT045.eop-nam11.prod.protection.outlook.com (2603:10b6:300:116:cafe::a) by MWHPR07CA0010.outlook.office365.com (2603:10b6:300:116::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5038.14 via Frontend Transport; Wed, 2 Mar 2022 08:39:57 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 12.22.5.234) 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.234 as permitted sender) receiver=protection.outlook.com; client-ip=12.22.5.234; helo=mail.nvidia.com; Received: from mail.nvidia.com (12.22.5.234) by CO1NAM11FT045.mail.protection.outlook.com (10.13.175.181) 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:39:56 +0000 Received: from rnnvmail201.nvidia.com (10.129.68.8) by DRHQMAIL101.nvidia.com (10.27.9.10) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Wed, 2 Mar 2022 08:39:56 +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:39:52 -0800 From: Raja Zidane To: CC: , , Subject: [PATCH] app/compress-perf: fix socket ID type during init Date: Wed, 2 Mar 2022 10:39:27 +0200 Message-ID: <20220302083927.9176-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: 5761079b-935a-4717-7655-08d9fc283af8 X-MS-TrafficTypeDiagnostic: PH7PR12MB5653: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: Wtc/AMucs4iEZNGeX079aiI/PgLTOoPjXa+oI32BlMWQ/EhhgJiAl/duVoOqQ56x/LgG2wDIyiQepdFmccSldVSn6ITykewzEaKlfx2Gto+VmqU5YImdJNVtZ5kacVQ2Kz+CiWY/23qtDmjPBHNylGCiSu5piJgKQ9Y1CX9Zr71Y0CfcMroM0ifGeZh84DuDQjrbvuC0KhenvoBajx+f3HiyqNohd+wXoh+idzt+8CPeZPyIHit0aFTYBobB5fhHoJGx8eI0stVQhYQ7eVXZu4tTWrRuSvIXGQ2yzslxgXFSn19idy9U71TpVEQBbdYiEdanMXUt7nZVjLGUmo70wU+rdGvil1gruvow6aF0I0fgYavbc+WJVRhqlDD5+wQlhvTeiLzI6wvYkyz9O3/8W9tEDPPgq6Z/G15/gFpnDwhuvoAmLda911x1sCY9N2iVPicsFgHljhl5Cz7N1aoS27DeBoeNJhksGTrxe0PkSerWCg15NE4g2ycmyVyYTQoJN7RaU5Jb2Xwj1TKt7ycGxWsxO0JLM6H13xd1pdlr3WphXYrwwM6J0fwBsuDt0cUAFP0nnCp2trfve8gxheEO6wJTeNu6mPNfTdN5cobtaTCorZlOrAlrd3AWNYsesyXlHbrZr8OhVWK/ZVj7GYT0WS8stp33sOyGtO3kklP+n9hTlbTg2sDJoc+EoZ9emGPnGuN+AiSCcuRM1LR4CGj60g== X-Forefront-Antispam-Report: CIP:12.22.5.234; CTRY:US; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:mail.nvidia.com; PTR:InfoNoRecords; CAT:NONE; SFS:(13230001)(4636009)(40470700004)(36840700001)(46966006)(6286002)(83380400001)(36860700001)(2906002)(316002)(4744005)(7696005)(5660300002)(82310400004)(1076003)(16526019)(186003)(336012)(426003)(26005)(86362001)(40460700003)(47076005)(2616005)(6666004)(8936002)(6916009)(54906003)(55016003)(70206006)(70586007)(356005)(4326008)(36756003)(8676002)(81166007)(508600001)(36900700001); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Mar 2022 08:39:56.6639 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 5761079b-935a-4717-7655-08d9fc283af8 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.234]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: CO1NAM11FT045.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR12MB5653 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 Socket ID is obtained by function rte_compressdev_socket_id, which returns it as integer, but is interpreted as unsigned byte integer. change type from uint8_t to int. Fixes: ed7dd94f7f66 ("compressdev: add basic device management") Cc: fiona.trahe@intel.com Cc: stable@dpdk.org Signed-off-by: Raja Zidane Acked-by: Matan Azrad --- app/test-compress-perf/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/test-compress-perf/main.c b/app/test-compress-perf/main.c index 6ff6a2f04a..3402b65c63 100644 --- a/app/test-compress-perf/main.c +++ b/app/test-compress-perf/main.c @@ -168,7 +168,7 @@ comp_perf_initialize_compressdev(struct comp_test_data *test_data, cdev_id = enabled_cdevs[i]; struct rte_compressdev_info cdev_info; - uint8_t socket_id = rte_compressdev_socket_id(cdev_id); + int socket_id = rte_compressdev_socket_id(cdev_id); rte_compressdev_info_get(cdev_id, &cdev_info); if (cdev_info.max_nb_queue_pairs && -- 2.21.0