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 8AB0043EAF for ; Fri, 19 Apr 2024 13:30:34 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7C8FE40A8B; Fri, 19 Apr 2024 13:30:34 +0200 (CEST) Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2056.outbound.protection.outlook.com [40.107.223.56]) by mails.dpdk.org (Postfix) with ESMTP id DDAA2402D0; Fri, 19 Apr 2024 13:30:31 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=A0RYIKYDETHTTqpMdLFW0mwioiWphV19fCNHSlEEFj49xMLbdlKXDXO7U1h72VcsWO6LV0HFTYEv73OEeauUhjDHUJiFYOJ1IKI7yVYK0F6Xu9rymSvYJeOdjhvGc1OcpqEOylZ8UcMe/2sygsK9fVwhwKZZXFtE+1o2peTVqS7mfG5KN63k1ZDNZPGUr+vXMYx2d5PbPkD66pjPi/m6wkfBrPruIt54UWUZJZwN81M6w8ITu5aaQ0fivYIHIv+zk13NQKa2rPw75EwdapTFVBqmOFxf7OGATOV2OnxYPspX92s+J5TeVRICru3H8h7tAi5eQHjOrtNwd5XkTttLKw== 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=u02aVIQrPrZPuSgKT/9jJx6S9Xge3Fm+g646PDboz7Y=; b=WF8PcAMX4xsqVtH86M5A08OSszuxMNpFJv+RB+Qeer0UDO6gyz6bFLln+dOcoUu/w4JndrNGhLj8MIIBU6O8+t3lYvx8rkRyz+8TrFfhLl3YTPT5fi5iJJw2Ka4FPTDF1K+YhqYUOu07PqVjQlZhNI4P9D/P43mhUm0Pb8tOHdkBfDfWltwzxOkEcTPYODT5N4p60/6cBtuTiHbliWYnmSxyG7zCjpz/ir6nPTQluQF5yUvPhk10RImsQ/2Zv2grpFei+k8bgqTLIQ5jvB/BeEBodpzqMr/bWZPc+fkHF/lG6GSYHKNNVfZ6CakuGG+4soGeiwoieuaDA5ibo4TgQA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=u02aVIQrPrZPuSgKT/9jJx6S9Xge3Fm+g646PDboz7Y=; b=ABa4kFHHzEfi1TRFBT31w7I0nFrXaKUR+GCfgWczLoSU+fsfqGIi1X7r3Mgq44/uy6KCXOnwBzaKNiRt4S1cv6WW4PfS8I9uJPgZsdZYTSiTHfz7giVcOwK/mtGHDd4f/Kx8mgVwRGmdID77VDm+VmEbCr3jGjOcEFZKQGUTfGE= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; Received: from CH2PR12MB4294.namprd12.prod.outlook.com (2603:10b6:610:a9::11) by CH3PR12MB9284.namprd12.prod.outlook.com (2603:10b6:610:1c7::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7472.44; Fri, 19 Apr 2024 11:30:28 +0000 Received: from CH2PR12MB4294.namprd12.prod.outlook.com ([fe80::282f:29d3:cac1:cde3]) by CH2PR12MB4294.namprd12.prod.outlook.com ([fe80::282f:29d3:cac1:cde3%7]) with mapi id 15.20.7472.044; Fri, 19 Apr 2024 11:30:28 +0000 Message-ID: <5de50671-73b8-432d-a1a2-ce6b3120e73d@amd.com> Date: Fri, 19 Apr 2024 12:30:24 +0100 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2] app/testpmd: fix lcore ID restriction To: Sivaprasad Tummala , david.marchand@redhat.com, aman.deep.singh@intel.com, yuying.zhang@intel.com Cc: dev@dpdk.org, stable@dpdk.org References: <20240415194631.124343-1-sivaprasad.tummala@amd.com> <20240416095556.173787-1-sivaprasad.tummala@amd.com> Content-Language: en-US From: Ferruh Yigit Autocrypt: addr=ferruh.yigit@amd.com; keydata= xsFNBGJDD3EBEAC/M7Tk/DfQSmP1K96vyzdhfSBzlCaGtcxNXorq4fALruqVsD3oi0yfyEz9 4YN8x7py0o9EL8ZdpOX0skc0AMCDAaw033uWhCn0GLMeGRKUbfOAPvL6ecSDvGD7CJIO9j0J eZUvasBgPdM/435PEr9DmC6Ggzdzt8IuG4PoLi5jpFSfcqxZFCCxLUDEo/w0nuguk2FTuYJg B2zEZ4JTBZrw7hIHiFh8D8hr6YA6a5uTofq1tr+l048lbtdFUl8TR0aIExVzE4Z8qKZlcE+9 RQaewjK5Al1jLE4sHdmd3GN+IvgDF3D/fLsi25SKJDeGSdeHkOmaX0qGeM4WKIfU6iARRCiQ N3AmBIxZ/A7UXBKLaOyZ+/i3sE6Wb53nrO4i8+0K2Qwyh6LjTeiJAIjYKN43ppxz3DaI+QwQ vI+uyHr4Gg0Da9EPPz/YyKauSeOZCfCB5gIfICO0j6x0SCl8uQ2nLpjxcZkf0gjcwUzP3h+S 3x6NfDji9YEij0zczW/dcSpGgZ6vsFpPrtnP9ZXy6J53yp0kJtOJoOlkEFFdU2yCZnCDseum CoudmGLZVvS0/DzHDJejq+3kK3FDGktZBOxZIIpal+nFqS7lVgOZc4+huVv3jyhzoAUOEyXA XK5j6o7g8STUY+z33QNnHpdLvecMwuzmvqy0jR54yAbZ64mB9QARAQABzSNGZXJydWggWWln aXQgPGZlcnJ1aC55aWdpdEBhbWQuY29tPsLBlwQTAQgAQQIbAwULCQgHAgYVCgkICwIEFgID AQIeA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+8rM/LKBH dZUMTzME5PFCXJIZ83qkZQ795MTe2YScp9dIV7fsS5tpDwIs7BZNVM1l3NAdK+DLHqNxKuyO 8Zk= In-Reply-To: <20240416095556.173787-1-sivaprasad.tummala@amd.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: DB9PR05CA0026.eurprd05.prod.outlook.com (2603:10a6:10:1da::31) To CH2PR12MB4294.namprd12.prod.outlook.com (2603:10b6:610:a9::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CH2PR12MB4294:EE_|CH3PR12MB9284:EE_ X-MS-Office365-Filtering-Correlation-Id: c748dd42-06ad-4db1-e140-08dc60641d10 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: xS2BtRbOlJ4+uvW5qYNkjL31Hua+JGHm1oDZ3BHTVBzRwXUFkccHml4BYArsyHOyhBH7KJInFRVO0YTZJAagluGZfet1lEBYr39QmRNwnbJzrzRfNl42JAhcB1k1s3905mEg89sd4HROUS094dqv9irTQcNK5go6uXD8ArfE+OYEIA/+HwPdDiDywhHVgVLNp2IE6Ew3LqzCmkTzMvO0coMSPiWUWLLdrBP5a10tEtForUDzGXbN64cxz+wb0hQFyNnPTqnwKajNpDa3FDiBEhcVovjK8YHMCHj+Gi1Nqn/nwVGRvG9Wu2Jupmgqx0ajj0sm+HKAamkMcOEEXkl5HkWAkUfQjl62LQri0h9Tnj61pG8wV3jXMkRUL4DxYrXsRo5bgMYQJuaAGcMKISFt5TtJ1dsn3lqdW7OHdTOHbJq504NvJveogiU9+MXXFBazFsG+dTkYDxMaGqWtIjwdeC1+1//+mRLjBaFWzzzZQEtJXMZH2OQkB6qZwQ96t7hi+mMa/RAXJq0bBmY01T7hWcdzCMB5tQgmaM4KjneQ79FXDfDRfMskn+ppCClB4M5FAWeqkueBBQnJSOTMKsWL1XPJ4pJ+0SMnS0H6L6e7Ef5mOQh6n5+jtxPfwG9mw4v0G21+Ek/l1YcYz09OULYOOZ13erQ8L2YPYKDflELpQ/w= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:CH2PR12MB4294.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(366007)(376005)(1800799015); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?dWRhQVBzVitaMVVFT0xGRyt3UlhTeTFkMDJtYWQvNWRaZ2FDalkrWS81MW9x?= =?utf-8?B?akNQVWJYVkJ1eGVuUFNoV3BEUWEyZlZzeGpxdmpaenk2WlZyL3M0eCtMR0RT?= =?utf-8?B?blhmUngrS1VYSSs3WituUU9wZHlaQ1RDaTY3WTFvcmNmcHE4ZEhpdmFRelNu?= =?utf-8?B?SUJiWUxsQWw1MEZGQXNnMHNITklTQ1F1MzJNZE5lbVBtWUhPZld2cGg5UHkz?= =?utf-8?B?cWVKZW9jd2ExTFBNRGhIam1lZnI4d1kxajFEUGwwbmtrZkpJdUVQNlZ4aldZ?= =?utf-8?B?aldyaHYwVGNGMDRUeTRKa3EwVnZLZkMyNXRncGNDTWJ2aFNtOHRwOGtYRmxS?= =?utf-8?B?cEpWODg3aWxlNXNKZ3NLZnV1Vm1zZ0tMWjlkb3AvendSNGtVUEg0SjIwaUs1?= =?utf-8?B?VitjL2cyYUx0eG40NHczZWtVRThycU5vYTBNdEo4U3FzbXhNNm15K095MHBp?= =?utf-8?B?bnloMkFDU2xZRkdhczlKaG16ajBPQlpmbFhLd1JtVS9KNlZQYlRGcWx1WnFX?= =?utf-8?B?b1pjUktJNkdMWGdDZjZrdnBPVlRxaWhHTDk4dzFXQW80Zy9mcS9tNXpBUStN?= =?utf-8?B?YkdvbHgvTUtJVzdyRGJoVFFZWndpSjhFZEFNWkJnMUE1Uk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CeHZNQTlycUZEdzRST1pGcGdaYVY3WXlDVXdCTEpi?= =?utf-8?B?RXBZUXVvaW9QYjZGVjMzNWgzLzZlbTVUaHRUL0VKREhMbzZ5cnlQREZKU09u?= =?utf-8?B?MCtzZzFHalVaVEQzeWI2dENhUDdOcmpqN2NLT1ZvdUlOSStneWFha28rRmJ0?= =?utf-8?B?R0daeE9jVzh4NjNiemlzU2pOeHI5dDlqQWJsRm9mK3ZYV1VzMVNjbmlpQ1BU?= =?utf-8?B?TEdKWFNYak1TNWR4QzJOc0F5QXQwTEUwT3gybDJrSEVXb1Z3WDdGR0Zia1Bu?= =?utf-8?B?TVdaYUxuU01veDlwclcrNkxlN0puMk5ScmhOQ3lBSHNRVHZBekMvM1U5VXBF?= =?utf-8?B?SmVCN3F6N2ZieTArV2VxdVdJTUErOVcveTgrQ204NlM2aEpZWGtZOFgybFJR?= =?utf-8?B?LzZ3RXFZdmJqVy9jRko4Lys1L2NkTmE1bncxazhIK2svaVRPVkxlTjQzTWhF?= =?utf-8?B?THFhcE9YdksxdUE2RExtenQxajQxYkxTaUU3TU1McnVNVmxtWUlKaW45OVFL?= =?utf-8?B?ck5NeUNlSm0rY3hNbEdoM0p2Z1BBaHBsczNXV0txVFdoUFUvZ0pzUTVmeG4z?= =?utf-8?Q?uj2Fuqc5WqUwKcN++gBb2cBje?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: c748dd42-06ad-4db1-e140-08dc60641d10 X-MS-Exchange-CrossTenant-AuthSource: CH2PR12MB4294.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Apr 2024 11:30:28.2680 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: KnneCTi6nswtV0GqGKUGSfqEJ81+jfkI26lNLi6/fz+q0NhYjv6OOdNU2Wd9bhax X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH3PR12MB9284 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 On 4/16/2024 10:55 AM, Sivaprasad Tummala wrote: > diff --git a/app/test-pmd/config.c b/app/test-pmd/config.c > index ba1007ace6..6b28c22c96 100644 > --- a/app/test-pmd/config.c > +++ b/app/test-pmd/config.c > @@ -4785,9 +4785,9 @@ fwd_stream_on_other_lcores(uint16_t domain_id, lcoreid_t src_lc, > continue; > printf("Shared Rx queue group %u queue %hu can't be scheduled on different cores:\n", > share_group, share_rxq); > - printf(" lcore %hhu Port %hu queue %hu\n", > + printf(" lcore %u Port %hu queue %hu\n", > src_lc, src_port, src_rxq); > - printf(" lcore %hhu Port %hu queue %hu\n", > + printf(" lcore %u Port %hu queue %hu\n", > lc_id, fs->rx_port, fs->rx_queue); > printf("Please use --nb-cores=%hu to limit number of forwarding cores\n", > nb_rxq); > @@ -5159,7 +5159,7 @@ icmp_echo_config_setup(void) > lcoreid_t lc_id; > uint16_t sm_id; > > - if ((nb_txq * nb_fwd_ports) < nb_fwd_lcores) > + if ((lcoreid_t)(nb_txq * nb_fwd_ports) < nb_fwd_lcores) > cur_fwd_config.nb_fwd_lcores = (lcoreid_t) > (nb_txq * nb_fwd_ports); > Hi Sivaprasad, Is this '(lcoreid_t)' cast required? Because of integer promotion I think result will be correct without casting. (And without integer promotion considered, casting needs to be done on one of the variables, not to the result, because result may be already cast down I think. Anyway this is not required for this case since variables are u16.)