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 4C241A0032; Fri, 18 Feb 2022 08:42:19 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 88946410FB; Fri, 18 Feb 2022 08:42:16 +0100 (CET) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by mails.dpdk.org (Postfix) with ESMTP id EA4CD410FB for ; Fri, 18 Feb 2022 08:42:13 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1645170134; x=1676706134; h=from:to:subject:date:message-id:in-reply-to:references: mime-version:content-transfer-encoding; bh=RaTisxD363yMJAIGTnufhShv1hXHBO/4phRE8x692pg=; b=eRC0oPwdS5qx9RwlM0WMkeOd1ZwyYEy42/UDIkMvkZaL9gdJ256MUAZN ULo4ENiw6KfcgrK6J2PZDPYunISj/1Sbjo+hJ/3OubkXyRJn3w3moNmdn 8980R2wpAa1mZtCLtBQwHDsk4m6CMuUSHRM2zjh7+OqF7OZLDeDe1Rdir sNy9Dqr53eqF90oQdplP+pCrv9nQJ2Mp/l1OlKmdW5Tn/RRoEJnaD5x7u r1vDDRkKNqPD+BgoIEAUM4z/7PLsgcxADpa/uipB478XHjgEkFk+fY5M9 br8fndscQ3RDb7IwxXwdldPfV6zrCM8f1J3zoRxPCsXh1YbD0nBnAeDEn A==; X-IronPort-AV: E=McAfee;i="6200,9189,10261"; a="231710945" X-IronPort-AV: E=Sophos;i="5.88,378,1635231600"; d="scan'208";a="231710945" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Feb 2022 23:42:13 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,378,1635231600"; d="scan'208";a="546164936" Received: from silpixa00397515.ir.intel.com (HELO silpixa00397515.ger.corp.intel.com) ([10.237.222.51]) by orsmga008.jf.intel.com with ESMTP; 17 Feb 2022 23:42:11 -0800 From: Megha Ajmera To: dev@dpdk.org, jasvinder.singh@intel.com, cristian.dumitrescu@intel.com, thomas@monjalon.net Subject: [PATCH v1 1/4] sched: Cleanup qos scheduler defines from rte_config Date: Fri, 18 Feb 2022 07:41:45 +0000 Message-Id: <20220218074148.2549134-2-megha.ajmera@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220218074148.2549134-1-megha.ajmera@intel.com> References: <20220218074148.2549134-1-megha.ajmera@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 Cleanup of sched config options those are by-default not defined. Signed-off-by: Megha Ajmera Acked-by: Cristian Dumitrescu --- config/rte_config.h | 7 ------- doc/guides/sample_app_ug/qos_scheduler.rst | 3 +-- lib/sched/rte_sched.c | 4 ++++ 3 files changed, 5 insertions(+), 9 deletions(-) diff --git a/config/rte_config.h b/config/rte_config.h index cab4390a97..917097630e 100644 --- a/config/rte_config.h +++ b/config/rte_config.h @@ -88,13 +88,6 @@ /* rte_power defines */ #define RTE_MAX_LCORE_FREQS 64 -/* rte_sched defines */ -#undef RTE_SCHED_CMAN -#undef RTE_SCHED_COLLECT_STATS -#undef RTE_SCHED_SUBPORT_TC_OV -#define RTE_SCHED_PORT_N_GRINDERS 8 -#undef RTE_SCHED_VECTOR - /* KNI defines */ #define RTE_KNI_PREEMPT_DEFAULT 1 diff --git a/doc/guides/sample_app_ug/qos_scheduler.rst b/doc/guides/sample_app_ug/qos_scheduler.rst index 49c14a00da..7016ca4078 100644 --- a/doc/guides/sample_app_ug/qos_scheduler.rst +++ b/doc/guides/sample_app_ug/qos_scheduler.rst @@ -42,8 +42,7 @@ The application is located in the ``qos_sched`` sub-directory. .. note:: To get statistics on the sample app using the command line interface as described in the next section, - DPDK must be compiled defining *RTE_SCHED_COLLECT_STATS*, which can be done by changing the relevant - entry in the ``config/rte_config.h`` file. + DPDK must be compiled after defining *RTE_SCHED_COLLECT_STATS* in the ``config/rte_config.h`` file. Running the Application ----------------------- diff --git a/lib/sched/rte_sched.c b/lib/sched/rte_sched.c index 62b3d2e315..6c3e3bb0bf 100644 --- a/lib/sched/rte_sched.c +++ b/lib/sched/rte_sched.c @@ -35,6 +35,10 @@ #endif +#ifndef RTE_SCHED_PORT_N_GRINDERS +#define RTE_SCHED_PORT_N_GRINDERS 8 +#endif + #define RTE_SCHED_TB_RATE_CONFIG_ERR (1e-7) #define RTE_SCHED_WRR_SHIFT 3 #define RTE_SCHED_MAX_QUEUES_PER_TC RTE_SCHED_BE_QUEUES_PER_PIPE -- 2.25.1