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 265D9A0545; Tue, 11 Oct 2022 15:09:27 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id CE5B842DE1; Tue, 11 Oct 2022 15:09:26 +0200 (CEST) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by mails.dpdk.org (Postfix) with ESMTP id 99AC742B7D; Tue, 11 Oct 2022 15:09:24 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1665493764; x=1697029764; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=imo5NMYAcjOPuxEik3nJAYlQdW5VidiJy0SlpzkbSxE=; b=W9u3tpoICZEsbOfeMHqwZUoxqSPfaZNg+Oi+6LCSJuhezZJPv2qGbwHf TPfA8PTKC6WAX03DyiKVy4/dbUKDvOhymj1MJEGmrraN6bTi9ycALDKgQ eKSDRWdJqQigA0zwMp00Dr8FkK0FbBj9xY2H1MoxZxzcdxSjB+9NnNDgx OM9Zak+JSizCoEY+mdH1Dqc+GuO5KnSjVKI7EVDQhjS1HMr6JUcLIpYnx 34HGVdw6CByY5ztKB0OwkgXWwE2EtrIkyUJ3g7hJZopYDO4Gq3OoQgwYj //ayy3wzY4FLTHij+UEu7yrxbuqGCvJkb9XvR38lH3M29LJw7Mcf8CTcW w==; X-IronPort-AV: E=McAfee;i="6500,9779,10497"; a="306121123" X-IronPort-AV: E=Sophos;i="5.95,176,1661842800"; d="scan'208";a="306121123" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Oct 2022 06:09:23 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10497"; a="628688106" X-IronPort-AV: E=Sophos;i="5.95,176,1661842800"; d="scan'208";a="628688106" Received: from fmsmsx601.amr.corp.intel.com ([10.18.126.81]) by fmsmga007.fm.intel.com with ESMTP; 11 Oct 2022 06:09:22 -0700 Received: from fmsmsx612.amr.corp.intel.com (10.18.126.92) by fmsmsx601.amr.corp.intel.com (10.18.126.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Tue, 11 Oct 2022 06:09:22 -0700 Received: from fmsmsx601.amr.corp.intel.com (10.18.126.81) by fmsmsx612.amr.corp.intel.com (10.18.126.92) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Tue, 11 Oct 2022 06:09:22 -0700 Received: from fmsedg602.ED.cps.intel.com (10.1.192.136) by fmsmsx601.amr.corp.intel.com (10.18.126.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31 via Frontend Transport; Tue, 11 Oct 2022 06:09:22 -0700 Received: from NAM11-BN8-obe.outbound.protection.outlook.com (104.47.58.169) by edgegateway.intel.com (192.55.55.71) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2375.31; Tue, 11 Oct 2022 06:09:21 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DTQFME9r90CxXoF+02OC451VDmU/BiP/pY8RVyJUcwBYhFCpqS0jqS0ttjs9LjgK+SIrPJBycUCn6YhILFmejwg68yA53X9icHL9lmSSEmM72XQnE2m9WJJ6r5b+4VTgHB1arwP0rkId+T9P2UuSEsY9xJc0xZvKTp8DlOQ59zBU4AgebeadK9qlc0SRXv+UcLVqH/9EDwkUqyYX+T83+JGVf0TaHvr6m6bkd7MRf8XmRkxK59207F2YrWXpysyI/MVe/zsDf02a1jXa6dppub8TmKO6qVGPz3ulWk4TjdODFvCGSdvMbfMkDJreyxK8PJNKowBXcnSmnI0E+QNJpA== 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=6/aLVC6hMFKd1Db7vrt1panYdcU5g4vfp1DAG4cT6Mw=; b=MLV9JgVe6XNn2iZnWm3n9bmUL4Nbd+Gct9Lonyyfa2RkXhDuW4d1wuDX8C5I/fiuG419tC19lBQ2p2D0VufRvuEwdPYFY3Ly435zTvedATEj2BT1N4fAmOU+pjQ3Wz0Gmwgo9Kf7iop7qJSZ/pJtXY5ip808xHRgdLANDxFdnALo8CGMQIAA120c7q4ozKa0x6Fd+2t1Pz0MIBECziQR3She2mVVJB6Ce61acCddAG5YnI+8KLc3ezuM8dcPgZVDCjHeH4v8Ok7fPGPX6arMrpwI+ACJO80+kG4HuZQqWPCklE7QeJv+3ayfwSXZTYFOx8a5Duj6iC/Tl/9GrUsckw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Received: from CH0PR11MB5724.namprd11.prod.outlook.com (2603:10b6:610:101::22) by DS7PR11MB6037.namprd11.prod.outlook.com (2603:10b6:8:74::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5709.21; Tue, 11 Oct 2022 13:09:14 +0000 Received: from CH0PR11MB5724.namprd11.prod.outlook.com ([fe80::e9b2:d565:bd40:1152]) by CH0PR11MB5724.namprd11.prod.outlook.com ([fe80::e9b2:d565:bd40:1152%7]) with mapi id 15.20.5709.021; Tue, 11 Oct 2022 13:09:14 +0000 From: "Dumitrescu, Cristian" To: "Ajmera, Megha" , "dev@dpdk.org" , "Singh, Jasvinder" CC: "stable@dpdk.org" Subject: RE: [PATCH 3/3] sched: support for 100G+ rates in subport/pipe config Thread-Topic: [PATCH 3/3] sched: support for 100G+ rates in subport/pipe config Thread-Index: AQHY2bZrVM3UkbCE+kqAnRCai1DYza4JMRww Date: Tue, 11 Oct 2022 13:09:14 +0000 Message-ID: References: <20221005172239.254327-1-megha.ajmera@intel.com> <20221006190038.431828-1-megha.ajmera@intel.com> <20221006190038.431828-3-megha.ajmera@intel.com> In-Reply-To: <20221006190038.431828-3-megha.ajmera@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-version: 11.6.500.17 dlp-reaction: no-action dlp-product: dlpe-windows authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: CH0PR11MB5724:EE_|DS7PR11MB6037:EE_ x-ms-office365-filtering-correlation-id: b12e132c-60a3-45cf-01c3-08daab89cbde x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: UYGzAL4diKZMgx2y5gkK7WQhvJGo448g+MI1H86VI/pV96tFBnEvmC8+fwvw0FisSA3c89Z3jfF9qKQyJ77IdYr+oaDyh/u9487UkhBMcqb60UVlD2H/IIOineBEgLIgiu+0EedOZ+7fFx0vW8N/sh0ImXtZI4NB9IaVhGZ0946utsc+QVwN9hM1zA2k3FPkNtmIeCBTO4JO1gxBKt+BtgxFCuDpB3C1pi6/bgA0g/w+Aje70iOv9qIebCCFu110XWTCcj8pWP4fpZyHcwnsNKuyZLsrvvsng8pcmAyDuAiHZ6c2kHTYMrHFBb1HydKx1LW3sSF9CWdluGi02jdPI9SJOIXMmVDLeqdLDF7BPD+zFDJwmzcA01IpeheualnRsOCve8FtfywE/9hF/S+Vi+YnMhF7NiJZWaVx2aWpDzjhxOs0bQHtJozcabzgFIRlNanwJIIlMCVEkmAbfl0MGI53Yl9LT0mMVrJQhZ3/QqwAwmb1Qa1petdIpNpLid2tJwLi5J2mx+y0O+aqEVf/xN4xzbjqHcA27AOapl3dPmqilPLky+VCflxtaQBbi6Eb7DfdEQrJzm7tknTbmIRYJK8UHWYqBLl/lrPqE5RAZZezIqe1kJLUzncHilzHHzcbttJrNJJL5/BbgjDZpN8HPmGuOpI8D7063Lzlp/zkpXjRQasY8EOfnoYRj4ERevFhdOFsNTMY/dgi076SNVV6NB999zwJfG6gAivf66+NyLxoptBev8sXWQDBfAOO0Cy7VuUYc2db8DayTl3eplh8hQ== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:CH0PR11MB5724.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230022)(39860400002)(136003)(396003)(366004)(376002)(346002)(451199015)(26005)(9686003)(316002)(122000001)(38100700002)(38070700005)(71200400001)(8676002)(6636002)(110136005)(82960400001)(55016003)(33656002)(86362001)(7696005)(83380400001)(186003)(53546011)(6506007)(478600001)(5660300002)(66446008)(450100002)(2906002)(8936002)(52536014)(64756008)(41300700001)(66946007)(76116006)(4326008)(66476007)(66556008); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?ykf/ZVgcLdU19tbEyP+sc8n5nr2vrP9Ah+EdoI+HS0l1gvSx0XG3nIiPGE+g?= =?us-ascii?Q?qJtd4012AIToMYbtSrzNDldPNa/M4OdB2Tj5Ho701B/kUrx2WCPlMY6k8BCr?= =?us-ascii?Q?1r2GEo/O0t8ZhBLQrS9ViiqGne3QEkm/t4XsA3G48179aQ0mEsXWx+6EvoyQ?= =?us-ascii?Q?uvH1KI0r40sjvhhzGj+k/glbELi7MPyP0LAU6pZQP1dvc9eXunjgo2uTLRNb?= =?us-ascii?Q?2Z21Kqtz+eX9g34LKEfX+y4ZmOOeABX3460ZsPW6V0dyeomVvSFYGTqiqxeS?= =?us-ascii?Q?21BSZvazq2zw3Z1LwrJHx+4EFUxhKhbz32RDtDLbRI060Ac5wXHcWRQi+dbq?= =?us-ascii?Q?HpCAm33sRZBLIZUbvsODNjSdpqjpzov8SfE0Hukw6X18B9HGfONrSGvN74H2?= =?us-ascii?Q?PnouiIfUg4SLjWnOG+HmIlSIFycccFJTDxOhM7rZBfk0zCO2NCXpGzvTJ2z6?= =?us-ascii?Q?6tE/8yYmX3+XvAzawg/dz9ZlHe6losd5QEIJgndyrWc/fmq43gJAvZyNt3za?= =?us-ascii?Q?G9aIrWOmFjKv6s7jhM3gvPPoNPSndcuvfLOGQ5gF1iRuLIRcNgH8dy0NTAqM?= =?us-ascii?Q?V884mj7YuLFS78JECBeAUVJRLWthefbjGeDxnIX3DPviK7bN0T2JYUl03lQC?= =?us-ascii?Q?NbPFUHaig1j7HR8qqzpGdvJDngDCWJRqXq1E9TSLLKfnZvGyv8dxZWFOHQIT?= =?us-ascii?Q?to+7ud/2dS+U0+GX4pgHPqrDCWAMrAbk6ismyzvpDlBxCxIo7sNQTvmEIuCd?= =?us-ascii?Q?pz/dGU6m/THZfnGJESgTNUJvsBC/NZytsBZM1Pe6wphs0PCXfWV+kznlosa2?= =?us-ascii?Q?hWfC0uiPWz6n+9AdLAzhVk/q+ZHO109jZLvOEcy0FEciaRmKOkeHAt4GhmLc?= =?us-ascii?Q?CFwVCU7zs9WHqfva539kV2KJjjrgnluPyNgfoOGQGZGeGcxLC4888/biAoUk?= =?us-ascii?Q?SI+66EgTN+py1spunWwijkIpClj36CWWxL/uBBuZTPE3+2taB/C5kHvQe8H8?= =?us-ascii?Q?q5Q9Ppj+f6NubAZNn90XPArfP2mozIHpDxyxkZVLH68riMI4RmwQZ6jgR2Eq?= =?us-ascii?Q?t/PAfctT7ELccLVnNYYbtreIQ7ArI6Ji2bHaq9Zkhk4je3tLPv/LMK4Ggn2v?= =?us-ascii?Q?cXcT1W4bTjzuTNip90cB6pkfc00Fdk2Kqr6aCr1iMudRNw2n766P0Y0F/hwr?= =?us-ascii?Q?8Y+hFZ0SIO5lUHKkcalmicTIGcfBpyd2F9bp/zZ/ey8IKOKEQgP2cZ+ktbIs?= =?us-ascii?Q?IGMG7nqJE/I/ojGl2KD38VArzmKKjMwuX+oNTO1YzLdTKzg6n4ca11SHzMV6?= =?us-ascii?Q?QB1uSoMgkpOJBzMk143W2+IUycckZwH5AslO3HV+Wtiw8gzUnATIp8sVnGHU?= =?us-ascii?Q?EJVSvg/91XFqs69ROQj6wyTfLm6vDDcDffS4otXame37+4lTAtorM4aRY0bR?= =?us-ascii?Q?QJ2pYUlc5YloLHBANC15XSz3wD3bQc5Bw3sXcHrfogSCMhB/7Tl3l2xAXiIu?= =?us-ascii?Q?yvzQB+1WABBdE6KTJR1J6kAyE1vZhFNy9yLKbT4ne2COZq95UZMdyIYISFti?= =?us-ascii?Q?e6KOOE2acDhr8SIjMcWn8qNLSP7hGVJAl5VAI1CTKoCAZ1YPfFadiNaiszQ3?= =?us-ascii?Q?fg=3D=3D?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: CH0PR11MB5724.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: b12e132c-60a3-45cf-01c3-08daab89cbde X-MS-Exchange-CrossTenant-originalarrivaltime: 11 Oct 2022 13:09:14.5227 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: q7RjuU+opuCJPL5FhGGMoe3LNghG0F45SYz7wXerjNSb0avh7kWVfiNERc7p33ZoHhGFLpG3JcyGooaLpIMIagBYN6P3jOl9KwJWrVEuFfU= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS7PR11MB6037 X-OriginatorOrg: intel.com 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 > -----Original Message----- > From: Ajmera, Megha > Sent: Thursday, October 6, 2022 8:01 PM > To: dev@dpdk.org; Singh, Jasvinder ; > Dumitrescu, Cristian > Cc: stable@dpdk.org > Subject: [PATCH 3/3] sched: support for 100G+ rates in subport/pipe confi= g >=20 > Config load functions updated to support 100G rates > for subport and pipes. >=20 > Signed-off-by: Megha Ajmera > --- > examples/qos_sched/cfg_file.c | 64 +++++++++++++++++------------------ > 1 file changed, 32 insertions(+), 32 deletions(-) >=20 > diff --git a/examples/qos_sched/cfg_file.c b/examples/qos_sched/cfg_file.= c > index ca871d3287..ca60d616a1 100644 > --- a/examples/qos_sched/cfg_file.c > +++ b/examples/qos_sched/cfg_file.c > @@ -64,67 +64,67 @@ cfg_load_pipe(struct rte_cfgfile *cfg, struct > rte_sched_pipe_params *pipe_params >=20 > entry =3D rte_cfgfile_get_entry(cfg, pipe_name, "tb rate"); > if (entry) > - pipe_params[j].tb_rate =3D (uint64_t)atoi(entry); > + pipe_params[j].tb_rate =3D atol(entry); >=20 > entry =3D rte_cfgfile_get_entry(cfg, pipe_name, "tb size"); > if (entry) > - pipe_params[j].tb_size =3D (uint64_t)atoi(entry); > + pipe_params[j].tb_size =3D atol(entry); >=20 > entry =3D rte_cfgfile_get_entry(cfg, pipe_name, "tc period"); > if (entry) > - pipe_params[j].tc_period =3D (uint64_t)atoi(entry); > + pipe_params[j].tc_period =3D atol(entry); >=20 > entry =3D rte_cfgfile_get_entry(cfg, pipe_name, "tc 0 rate"); > if (entry) > - pipe_params[j].tc_rate[0] =3D (uint64_t)atoi(entry); > + pipe_params[j].tc_rate[0] =3D atol(entry); >=20 > entry =3D rte_cfgfile_get_entry(cfg, pipe_name, "tc 1 rate"); > if (entry) > - pipe_params[j].tc_rate[1] =3D (uint64_t)atoi(entry); > + pipe_params[j].tc_rate[1] =3D atol(entry); >=20 > entry =3D rte_cfgfile_get_entry(cfg, pipe_name, "tc 2 rate"); > if (entry) > - pipe_params[j].tc_rate[2] =3D (uint64_t)atoi(entry); > + pipe_params[j].tc_rate[2] =3D atol(entry); >=20 > entry =3D rte_cfgfile_get_entry(cfg, pipe_name, "tc 3 rate"); > if (entry) > - pipe_params[j].tc_rate[3] =3D (uint64_t)atoi(entry); > + pipe_params[j].tc_rate[3] =3D atol(entry); >=20 > entry =3D rte_cfgfile_get_entry(cfg, pipe_name, "tc 4 rate"); > if (entry) > - pipe_params[j].tc_rate[4] =3D (uint64_t)atoi(entry); > + pipe_params[j].tc_rate[4] =3D atol(entry); >=20 > entry =3D rte_cfgfile_get_entry(cfg, pipe_name, "tc 5 rate"); > if (entry) > - pipe_params[j].tc_rate[5] =3D (uint64_t)atoi(entry); > + pipe_params[j].tc_rate[5] =3D atol(entry); >=20 > entry =3D rte_cfgfile_get_entry(cfg, pipe_name, "tc 6 rate"); > if (entry) > - pipe_params[j].tc_rate[6] =3D (uint64_t)atoi(entry); > + pipe_params[j].tc_rate[6] =3D atol(entry); >=20 > entry =3D rte_cfgfile_get_entry(cfg, pipe_name, "tc 7 rate"); > if (entry) > - pipe_params[j].tc_rate[7] =3D (uint64_t)atoi(entry); > + pipe_params[j].tc_rate[7] =3D atol(entry); >=20 > entry =3D rte_cfgfile_get_entry(cfg, pipe_name, "tc 8 rate"); > if (entry) > - pipe_params[j].tc_rate[8] =3D (uint64_t)atoi(entry); > + pipe_params[j].tc_rate[8] =3D atol(entry); >=20 > entry =3D rte_cfgfile_get_entry(cfg, pipe_name, "tc 9 rate"); > if (entry) > - pipe_params[j].tc_rate[9] =3D (uint64_t)atoi(entry); > + pipe_params[j].tc_rate[9] =3D atol(entry); >=20 > entry =3D rte_cfgfile_get_entry(cfg, pipe_name, "tc 10 rate"); > if (entry) > - pipe_params[j].tc_rate[10] =3D (uint64_t)atoi(entry); > + pipe_params[j].tc_rate[10] =3D atol(entry); >=20 > entry =3D rte_cfgfile_get_entry(cfg, pipe_name, "tc 11 rate"); > if (entry) > - pipe_params[j].tc_rate[11] =3D (uint64_t)atoi(entry); > + pipe_params[j].tc_rate[11] =3D atol(entry); >=20 > entry =3D rte_cfgfile_get_entry(cfg, pipe_name, "tc 12 rate"); > if (entry) > - pipe_params[j].tc_rate[12] =3D (uint64_t)atoi(entry); > + pipe_params[j].tc_rate[12] =3D atol(entry); >=20 > entry =3D rte_cfgfile_get_entry(cfg, pipe_name, "tc 12 > oversubscription weight"); > if (entry) > @@ -165,67 +165,67 @@ cfg_load_subport_profile(struct rte_cfgfile *cfg, >=20 > entry =3D rte_cfgfile_get_entry(cfg, sec_name, "tb rate"); > if (entry) > - subport_profile[i].tb_rate =3D (uint64_t)atoi(entry); > + subport_profile[i].tb_rate =3D atol(entry); >=20 > entry =3D rte_cfgfile_get_entry(cfg, sec_name, "tb size"); > if (entry) > - subport_profile[i].tb_size =3D (uint64_t)atoi(entry); > + subport_profile[i].tb_size =3D atol(entry); >=20 > entry =3D rte_cfgfile_get_entry(cfg, sec_name, "tc period"); > if (entry) > - subport_profile[i].tc_period =3D (uint64_t)atoi(entry); > + subport_profile[i].tc_period =3D atol(entry); >=20 > entry =3D rte_cfgfile_get_entry(cfg, sec_name, "tc 0 rate"); > if (entry) > - subport_profile[i].tc_rate[0] =3D (uint64_t)atoi(entry); > + subport_profile[i].tc_rate[0] =3D atol(entry); >=20 > entry =3D rte_cfgfile_get_entry(cfg, sec_name, "tc 1 rate"); > if (entry) > - subport_profile[i].tc_rate[1] =3D (uint64_t)atoi(entry); > + subport_profile[i].tc_rate[1] =3D atol(entry); >=20 > entry =3D rte_cfgfile_get_entry(cfg, sec_name, "tc 2 rate"); > if (entry) > - subport_profile[i].tc_rate[2] =3D (uint64_t)atoi(entry); > + subport_profile[i].tc_rate[2] =3D atol(entry); >=20 > entry =3D rte_cfgfile_get_entry(cfg, sec_name, "tc 3 rate"); > if (entry) > - subport_profile[i].tc_rate[3] =3D (uint64_t)atoi(entry); > + subport_profile[i].tc_rate[3] =3D atol(entry); >=20 > entry =3D rte_cfgfile_get_entry(cfg, sec_name, "tc 4 rate"); > if (entry) > - subport_profile[i].tc_rate[4] =3D (uint64_t)atoi(entry); > + subport_profile[i].tc_rate[4] =3D atol(entry); >=20 > entry =3D rte_cfgfile_get_entry(cfg, sec_name, "tc 5 rate"); > if (entry) > - subport_profile[i].tc_rate[5] =3D (uint64_t)atoi(entry); > + subport_profile[i].tc_rate[5] =3D atol(entry); >=20 > entry =3D rte_cfgfile_get_entry(cfg, sec_name, "tc 6 rate"); > if (entry) > - subport_profile[i].tc_rate[6] =3D (uint64_t)atoi(entry); > + subport_profile[i].tc_rate[6] =3D atol(entry); >=20 > entry =3D rte_cfgfile_get_entry(cfg, sec_name, "tc 7 rate"); > if (entry) > - subport_profile[i].tc_rate[7] =3D (uint64_t)atoi(entry); > + subport_profile[i].tc_rate[7] =3D atol(entry); >=20 > entry =3D rte_cfgfile_get_entry(cfg, sec_name, "tc 8 rate"); > if (entry) > - subport_profile[i].tc_rate[8] =3D (uint64_t)atoi(entry); > + subport_profile[i].tc_rate[8] =3D atol(entry); >=20 > entry =3D rte_cfgfile_get_entry(cfg, sec_name, "tc 9 rate"); > if (entry) > - subport_profile[i].tc_rate[9] =3D (uint64_t)atoi(entry); > + subport_profile[i].tc_rate[9] =3D atol(entry); >=20 > entry =3D rte_cfgfile_get_entry(cfg, sec_name, "tc 10 rate"); > if (entry) > - subport_profile[i].tc_rate[10] =3D (uint64_t)atoi(entry); > + subport_profile[i].tc_rate[10] =3D atol(entry); >=20 > entry =3D rte_cfgfile_get_entry(cfg, sec_name, "tc 11 rate"); > if (entry) > - subport_profile[i].tc_rate[11] =3D (uint64_t)atoi(entry); > + subport_profile[i].tc_rate[11] =3D atol(entry); >=20 > entry =3D rte_cfgfile_get_entry(cfg, sec_name, "tc 12 rate"); > if (entry) > - subport_profile[i].tc_rate[12] =3D (uint64_t)atoi(entry); > + subport_profile[i].tc_rate[12] =3D atol(entry); > } >=20 > return 0; > -- > 2.25.1 Hi Megha, Maybe you can explain how removing this typecast can provide support for 10= 0+G rates? The atoi() function returns a 32-bit value, while the subport and pipe rate= s are 64-bit values; this typecast can at most remove a compiler warning ..= . Regards, Cristian