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 B2469A00C2 for ; Thu, 6 Oct 2022 21:04:12 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 76B564281E; Thu, 6 Oct 2022 21:04:12 +0200 (CEST) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by mails.dpdk.org (Postfix) with ESMTP id 260E740042; Thu, 6 Oct 2022 21:04:06 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1665083050; x=1696619050; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=jdjbFOFzRnprnLJnvp/nvC81uwolkbLoTU5ANSzjN+4=; b=ZuoV1UU4j6hX0AmdOAF0ihMPYYimCoE2knSPRR1iLCv8G4bcyMdn8NGi vxDEkHk9T8RGT/WjD5pNi5XUTLNON9YerQnWlQDvPrVaK6S7/Edx0pcZy eHIXaIH02+jEc26yxN7F8SkghVv6roYVufYkp63FRewx8xmbvD9XAcSIm z399qczEudRZ/HkMGKiN9sA03VUaNOozWhWPefDuoKmoG0Zce+67n5bPk ACmiw3gpjG7OjbLsdQU1JNKpYN1X3KF2v/BphzalJyuqnrnM7GGSAvAMM ZLKCd554wO52LQ50nNdf2mvOdDepcGX+HFm4ZJmrExiKcucHAS5cAoU7t A==; X-IronPort-AV: E=McAfee;i="6500,9779,10492"; a="329975811" X-IronPort-AV: E=Sophos;i="5.95,164,1661842800"; d="scan'208";a="329975811" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Oct 2022 12:03:53 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10492"; a="800006200" X-IronPort-AV: E=Sophos;i="5.95,164,1661842800"; d="scan'208";a="800006200" Received: from unknown (HELO localhost.localdomain) ([10.190.213.60]) by orsmga005.jf.intel.com with ESMTP; 06 Oct 2022 12:03:51 -0700 From: Megha Ajmera To: dev@dpdk.org, jasvinder.singh@intel.com, cristian.dumitrescu@intel.com Cc: stable@dpdk.org Subject: [PATCH 3/3] sched: support for 100G+ rates in subport/pipe config Date: Thu, 6 Oct 2022 19:00:38 +0000 Message-Id: <20221006190038.431828-3-megha.ajmera@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221006190038.431828-1-megha.ajmera@intel.com> References: <20221005172239.254327-1-megha.ajmera@intel.com> <20221006190038.431828-1-megha.ajmera@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 Config load functions updated to support 100G rates for subport and pipes. Signed-off-by: Megha Ajmera --- examples/qos_sched/cfg_file.c | 64 +++++++++++++++++------------------ 1 file changed, 32 insertions(+), 32 deletions(-) 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 entry = rte_cfgfile_get_entry(cfg, pipe_name, "tb rate"); if (entry) - pipe_params[j].tb_rate = (uint64_t)atoi(entry); + pipe_params[j].tb_rate = atol(entry); entry = rte_cfgfile_get_entry(cfg, pipe_name, "tb size"); if (entry) - pipe_params[j].tb_size = (uint64_t)atoi(entry); + pipe_params[j].tb_size = atol(entry); entry = rte_cfgfile_get_entry(cfg, pipe_name, "tc period"); if (entry) - pipe_params[j].tc_period = (uint64_t)atoi(entry); + pipe_params[j].tc_period = atol(entry); entry = rte_cfgfile_get_entry(cfg, pipe_name, "tc 0 rate"); if (entry) - pipe_params[j].tc_rate[0] = (uint64_t)atoi(entry); + pipe_params[j].tc_rate[0] = atol(entry); entry = rte_cfgfile_get_entry(cfg, pipe_name, "tc 1 rate"); if (entry) - pipe_params[j].tc_rate[1] = (uint64_t)atoi(entry); + pipe_params[j].tc_rate[1] = atol(entry); entry = rte_cfgfile_get_entry(cfg, pipe_name, "tc 2 rate"); if (entry) - pipe_params[j].tc_rate[2] = (uint64_t)atoi(entry); + pipe_params[j].tc_rate[2] = atol(entry); entry = rte_cfgfile_get_entry(cfg, pipe_name, "tc 3 rate"); if (entry) - pipe_params[j].tc_rate[3] = (uint64_t)atoi(entry); + pipe_params[j].tc_rate[3] = atol(entry); entry = rte_cfgfile_get_entry(cfg, pipe_name, "tc 4 rate"); if (entry) - pipe_params[j].tc_rate[4] = (uint64_t)atoi(entry); + pipe_params[j].tc_rate[4] = atol(entry); entry = rte_cfgfile_get_entry(cfg, pipe_name, "tc 5 rate"); if (entry) - pipe_params[j].tc_rate[5] = (uint64_t)atoi(entry); + pipe_params[j].tc_rate[5] = atol(entry); entry = rte_cfgfile_get_entry(cfg, pipe_name, "tc 6 rate"); if (entry) - pipe_params[j].tc_rate[6] = (uint64_t)atoi(entry); + pipe_params[j].tc_rate[6] = atol(entry); entry = rte_cfgfile_get_entry(cfg, pipe_name, "tc 7 rate"); if (entry) - pipe_params[j].tc_rate[7] = (uint64_t)atoi(entry); + pipe_params[j].tc_rate[7] = atol(entry); entry = rte_cfgfile_get_entry(cfg, pipe_name, "tc 8 rate"); if (entry) - pipe_params[j].tc_rate[8] = (uint64_t)atoi(entry); + pipe_params[j].tc_rate[8] = atol(entry); entry = rte_cfgfile_get_entry(cfg, pipe_name, "tc 9 rate"); if (entry) - pipe_params[j].tc_rate[9] = (uint64_t)atoi(entry); + pipe_params[j].tc_rate[9] = atol(entry); entry = rte_cfgfile_get_entry(cfg, pipe_name, "tc 10 rate"); if (entry) - pipe_params[j].tc_rate[10] = (uint64_t)atoi(entry); + pipe_params[j].tc_rate[10] = atol(entry); entry = rte_cfgfile_get_entry(cfg, pipe_name, "tc 11 rate"); if (entry) - pipe_params[j].tc_rate[11] = (uint64_t)atoi(entry); + pipe_params[j].tc_rate[11] = atol(entry); entry = rte_cfgfile_get_entry(cfg, pipe_name, "tc 12 rate"); if (entry) - pipe_params[j].tc_rate[12] = (uint64_t)atoi(entry); + pipe_params[j].tc_rate[12] = atol(entry); entry = 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, entry = rte_cfgfile_get_entry(cfg, sec_name, "tb rate"); if (entry) - subport_profile[i].tb_rate = (uint64_t)atoi(entry); + subport_profile[i].tb_rate = atol(entry); entry = rte_cfgfile_get_entry(cfg, sec_name, "tb size"); if (entry) - subport_profile[i].tb_size = (uint64_t)atoi(entry); + subport_profile[i].tb_size = atol(entry); entry = rte_cfgfile_get_entry(cfg, sec_name, "tc period"); if (entry) - subport_profile[i].tc_period = (uint64_t)atoi(entry); + subport_profile[i].tc_period = atol(entry); entry = rte_cfgfile_get_entry(cfg, sec_name, "tc 0 rate"); if (entry) - subport_profile[i].tc_rate[0] = (uint64_t)atoi(entry); + subport_profile[i].tc_rate[0] = atol(entry); entry = rte_cfgfile_get_entry(cfg, sec_name, "tc 1 rate"); if (entry) - subport_profile[i].tc_rate[1] = (uint64_t)atoi(entry); + subport_profile[i].tc_rate[1] = atol(entry); entry = rte_cfgfile_get_entry(cfg, sec_name, "tc 2 rate"); if (entry) - subport_profile[i].tc_rate[2] = (uint64_t)atoi(entry); + subport_profile[i].tc_rate[2] = atol(entry); entry = rte_cfgfile_get_entry(cfg, sec_name, "tc 3 rate"); if (entry) - subport_profile[i].tc_rate[3] = (uint64_t)atoi(entry); + subport_profile[i].tc_rate[3] = atol(entry); entry = rte_cfgfile_get_entry(cfg, sec_name, "tc 4 rate"); if (entry) - subport_profile[i].tc_rate[4] = (uint64_t)atoi(entry); + subport_profile[i].tc_rate[4] = atol(entry); entry = rte_cfgfile_get_entry(cfg, sec_name, "tc 5 rate"); if (entry) - subport_profile[i].tc_rate[5] = (uint64_t)atoi(entry); + subport_profile[i].tc_rate[5] = atol(entry); entry = rte_cfgfile_get_entry(cfg, sec_name, "tc 6 rate"); if (entry) - subport_profile[i].tc_rate[6] = (uint64_t)atoi(entry); + subport_profile[i].tc_rate[6] = atol(entry); entry = rte_cfgfile_get_entry(cfg, sec_name, "tc 7 rate"); if (entry) - subport_profile[i].tc_rate[7] = (uint64_t)atoi(entry); + subport_profile[i].tc_rate[7] = atol(entry); entry = rte_cfgfile_get_entry(cfg, sec_name, "tc 8 rate"); if (entry) - subport_profile[i].tc_rate[8] = (uint64_t)atoi(entry); + subport_profile[i].tc_rate[8] = atol(entry); entry = rte_cfgfile_get_entry(cfg, sec_name, "tc 9 rate"); if (entry) - subport_profile[i].tc_rate[9] = (uint64_t)atoi(entry); + subport_profile[i].tc_rate[9] = atol(entry); entry = rte_cfgfile_get_entry(cfg, sec_name, "tc 10 rate"); if (entry) - subport_profile[i].tc_rate[10] = (uint64_t)atoi(entry); + subport_profile[i].tc_rate[10] = atol(entry); entry = rte_cfgfile_get_entry(cfg, sec_name, "tc 11 rate"); if (entry) - subport_profile[i].tc_rate[11] = (uint64_t)atoi(entry); + subport_profile[i].tc_rate[11] = atol(entry); entry = rte_cfgfile_get_entry(cfg, sec_name, "tc 12 rate"); if (entry) - subport_profile[i].tc_rate[12] = (uint64_t)atoi(entry); + subport_profile[i].tc_rate[12] = atol(entry); } return 0; -- 2.25.1