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 6498A43874; Tue, 9 Jan 2024 16:16:58 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2E9874021F; Tue, 9 Jan 2024 16:16:58 +0100 (CET) Received: from NAM12-MW2-obe.outbound.protection.outlook.com (mail-mw2nam12on2087.outbound.protection.outlook.com [40.107.244.87]) by mails.dpdk.org (Postfix) with ESMTP id 92BC34013F; Tue, 9 Jan 2024 16:16:56 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=fiQfyV3iT2R2hCeOhcCYU8HTvmbLxDgJUtkWf2RGImPePQQv9kNGKslAt/+QLlVV5DbXY2Wt/uotei9Nz2+bZWBW+TM+/fEJteKrOad89bFnXatAW8oj8PwXPoEzAT86VzByAy0iBqUAyhno45h8ZxrRz8kuD5uqM4+zQRNjcxNR5VlqBGKu0YsbANzXlfvwvYBAc2IHhSlInAkLcy1U5FmxLuBbLNQULriehteclhfEOvvkX013XsLpas5Yzs/gKeer63bBUmJju9qFoxZqdeUfxNKWWzf9cd1gmlNHZFsOCU4cT7hAq4V6zHju422pcZHIWbcubSR1FAkASuKPIQ== 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=mwpZBiIM6Wwuvt0ApDUuC/1Nm8P9O4YaIZciX1lG11E=; b=StKjrXbGG+ksEIY/0FEwfAL386MZ/IcIjDgNg9EPXZb6FDPnVEzn2X86cVOEpcMgRtbYRDuNAfubqvcdmbT5TXBWgoi8jD4sAHnDSSC5vv5P2nixNvVkONBWPJO3HUXqXkACn1CXl5p/5oVhz2kvmoh3LEFAUG8NGiaR5icxV/Jg9WhyLQIo2CME9ALttor/wn1pqVm1q88fyM/O0G5WqOWj1fUSkrlAIa1wjy6+N2S1w+hEhZM55EFjXmJDLuPejRGoEuwxOqdVnUJp6or2m36crVpW7p3XBWDRyu1BBTOZg5vCOdh46qFgMvOEoHWIx30Rw+tvN2Z3naNgR0cmjA== 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=mwpZBiIM6Wwuvt0ApDUuC/1Nm8P9O4YaIZciX1lG11E=; b=yySbowqMGh0pJxfPWbjdZmdx+G1ZUyTwQZkXv56ooF1qYnOJxTutHTOa9JyAoei3SJnQ6z89hShZOkuwJi84qbIHvJcMMXtuhH0Kf09Lg2pac/QAF/uz93+j2G5bOE42osH6uEfGjhQjOHaZgxN3g7Q92bgRJr/GWSJvp/oGmSc= 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 PH7PR12MB7018.namprd12.prod.outlook.com (2603:10b6:510:1b8::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7181.17; Tue, 9 Jan 2024 15:16:53 +0000 Received: from CH2PR12MB4294.namprd12.prod.outlook.com ([fe80::815a:45e6:cf5e:479f]) by CH2PR12MB4294.namprd12.prod.outlook.com ([fe80::815a:45e6:cf5e:479f%4]) with mapi id 15.20.7159.020; Tue, 9 Jan 2024 15:16:53 +0000 Message-ID: <9a90aa9c-4c32-4135-99eb-f46b7e0129cc@amd.com> Date: Tue, 9 Jan 2024 15:16:46 +0000 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v3 5/6] examples/qos_sched: fix lcore ID restriction Content-Language: en-US To: Stephen Hemminger , Sivaprasad Tummala Cc: david.hunt@intel.com, anatoly.burakov@intel.com, jerinj@marvell.com, radu.nicolau@intel.com, gakhil@marvell.com, cristian.dumitrescu@intel.com, konstantin.ananyev@huawei.com, dev@dpdk.org, stable@dpdk.org, Bruce Richardson References: <20231219032826.4814-1-sivaprasad.tummala@amd.com> <20231220064502.2830-1-sivaprasad.tummala@amd.com> <20231220064502.2830-6-sivaprasad.tummala@amd.com> <20231220083150.55b7dc80@hermes.local> 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+z33QNnHpdLvecMwuz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vpWXLTmffVf/AQ81wspzbfxJ7sYM4P8Mg5kKOsaoUdyA/2qVe cMh1CLUHXF1GlofpGbe1lj4KUJVse5g3qwV7i9VrseA8c4VIZewdIjkzAhmmbxl+8rM/LKBH dZUMTzME5PFCXJIZ83qkZQ795MTe2YScp9dIV7fsS5tpDwIs7BZNVM1l3NAdK+DLHqNxKuyO 8Zk= In-Reply-To: <20231220083150.55b7dc80@hermes.local> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: FR3P281CA0118.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10:a3::13) To CH2PR12MB4294.namprd12.prod.outlook.com (2603:10b6:610:a9::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CH2PR12MB4294:EE_|PH7PR12MB7018:EE_ X-MS-Office365-Filtering-Correlation-Id: 90f44cfe-52f2-4256-8eab-08dc11260278 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: c+udA1AMo2TRjEzZAVwDVxVbhheM6KLkhzZpN1Hk/beCNkj1JlHBkhMd2ETafdCxVsoRTfHzcIUeb7Y5qJc+/BK29sQNgjexBoS8e/NyUy9SZx6Ut9Moc/1C/C7WN7TLkrrp0hNH8I9rg8SV3JuIYLBaV4jYe3tsYtDa5QKPikwPAvkqPqtY5OL4WxeZMg+iJSGk2KMvUk0w7vEXHN/nVBbq46HYrNJQv0UVwgvERm2TBPosIlUVf48Tya24BmHrSStsE1ZSGSaZrK9ZQHRQifc8jEyqeMz+BHvZQ0PsjhpmFVdM3t5cyKEJ5IAORAbCVu8il5GbGLKIsuQCO9iQWHdQ6bEW7u31JE0oXG3gKB5gl0P+hFU+qrgTURHBJspJbradPL7jEmSpVaFk9rXhU82tlDWiFQgwl3vGjIDOmevIbPiHVbcJplJIgI4S0dyCfhfGHAqchAGymcsw460BMUcdU6henPUs5nurkr/Gc5PUMPek50zfQF4kGghwVT0QAYPIY1huAROe4BbDoWSfzZHwPbKTeMztEtMsi5HmEmmXHra1nkYE7Dw/LvyCzALyrjrmXrqXDpGC2SmsD2ToQlOdd6xIwnOqu6WjjHH+pIrx5ZnpkTniX3RYmzbkRboOhRJzv6QlgGd98NDNSldoeRE9qzGcClJlg3sx5bHfpd34b1RSO8hd1Qb4aNy6GrZB 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)(396003)(39860400002)(136003)(376002)(346002)(366004)(230173577357003)(230922051799003)(230273577357003)(1800799012)(186009)(451199024)(64100799003)(31686004)(2906002)(478600001)(6666004)(5660300002)(7416002)(4326008)(44832011)(8936002)(41300700001)(66946007)(66556008)(66476007)(36756003)(6636002)(110136005)(316002)(8676002)(6486002)(6506007)(31696002)(53546011)(86362001)(6512007)(2616005)(26005)(83380400001)(38100700002)(43740500002)(45980500001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?SEN2NEdpcTJqeGJKeXZndTREM0hNN3ZSbWVLOEZJMy9yK0lPN3NEMWtPbmFE?= =?utf-8?B?dkd5dGtSRjkvUGNSZkszQ2VPZlNxUjYzSXplTDBmUzJ6aDhlWm15dDh3eDlu?= =?utf-8?B?bnZqNWJ2WTFkNmNXa1pBSFJqZk5CRklUU05hbkZBYUJGbVJHOWYyaU5hTFR4?= =?utf-8?B?QWNxbEZMc0tvaFZOWGZnU2lhMXd2MGV2QWtQVExrUlp3azd3ekhDQWxIR3ps?= =?utf-8?B?Ym90WXliMWpMeVFQNFVkOTNvdnV1ZkxmVHNYMjk3TDQ3VzJUSTJrV0NsUG9L?= =?utf-8?B?Y0dBTU1ncG1wY0xKWnhMVXBmaW4xUGl3MzkrM2lUc0FS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q?aA5w=3D?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 90f44cfe-52f2-4256-8eab-08dc11260278 X-MS-Exchange-CrossTenant-AuthSource: CH2PR12MB4294.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Jan 2024 15:16:53.1130 (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: q4/fg8QVsq4FYfOj3hlVXsjz6+m7b+pLXjCcq/QaZTXgFQHsO4TmHFWrOrfmkGlv X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR12MB7018 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 On 12/20/2023 4:31 PM, Stephen Hemminger wrote: > On Wed, 20 Dec 2023 07:45:00 +0100 > Sivaprasad Tummala wrote: > >> diff --git a/examples/qos_sched/args.c b/examples/qos_sched/args.c >> index e97273152a..22fe76eeb5 100644 >> --- a/examples/qos_sched/args.c >> +++ b/examples/qos_sched/args.c >> @@ -182,10 +182,10 @@ app_parse_flow_conf(const char *conf_str) >> >> pconf->rx_port = vals[0]; >> pconf->tx_port = vals[1]; >> - pconf->rx_core = (uint8_t)vals[2]; >> - pconf->wt_core = (uint8_t)vals[3]; >> + pconf->rx_core = (uint16_t)vals[2]; >> + pconf->wt_core = (uint16_t)vals[3]; >> if (ret == 5) >> - pconf->tx_core = (uint8_t)vals[4]; >> + pconf->tx_core = (uint16_t)vals[4]; >> else >> pconf->tx_core = pconf->wt_core; >> >> -- > > Not sure why cast is even needed, assigning uint32_t to uint16_t > is not going to generate a warning with current compiler settings. > I was assuming compiler will complain when assigning uint32_t to uint16_t, but it seems '-Wconversion' compiler flag is required for this warning. Enabling this flag for DPDK build causes lots of warnings, I wonder if we should add a new buildtype in meson that enables this flag. And except from compiler warning, I think it is good to keep explicit cast where assignment can cause change of value. This at worst can work as documentation that assignment between different types done intentionally.