From patchwork Fri Jan 21 18:14:59 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Ajmera, Megha" X-Patchwork-Id: 106190 X-Patchwork-Delegate: thomas@monjalon.net Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 636EFA034E; Fri, 21 Jan 2022 19:15:07 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E2BBE42777; Fri, 21 Jan 2022 19:15:06 +0100 (CET) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by mails.dpdk.org (Postfix) with ESMTP id 0FC0540040 for ; Fri, 21 Jan 2022 19:15:05 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1642788906; x=1674324906; h=from:to:subject:date:message-id:mime-version: content-transfer-encoding; bh=0LmaU5+uPQimgvyDhd5cDIJKCcz5FelrELjwRvGTn+Q=; b=cK6TZfcpR8uPsulwbMPs0xaUnWUuDY5EGqOtZMb0WhJkN0wY6EABW5h9 wyQ4lQlwJVor/s5MX83R3LK1MoQpkrTG1Qe0UPrpVTEocCu9+eZio4uAz uPodMK05geYLybXovxo5ORwR5otHqxAm3HkxB+kDWFu+2oAyw454dCdzI 0xrORbPWyk9oaXoLhV5HcCtUhivT7uzcDLsJZgiaTHGNyh79+g42n6zG5 WoBR3tbB01YHjQQVOZDlLybqj2Z5lLmpClBaJ5qdcRveP6+EGQjfuQjl8 H7uyxDtSg/9kGjMVLST6do67VGwfuuqumFD6B3YGRTFOTT56cot4nbLoc g==; X-IronPort-AV: E=McAfee;i="6200,9189,10234"; a="233073518" X-IronPort-AV: E=Sophos;i="5.88,306,1635231600"; d="scan'208";a="233073518" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Jan 2022 10:15:05 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,306,1635231600"; d="scan'208";a="616590366" Received: from silpixa00397515.ir.intel.com (HELO silpixa00397515.ger.corp.intel.com) ([10.237.222.51]) by FMSMGA003.fm.intel.com with ESMTP; 21 Jan 2022 10:15:03 -0800 From: Megha Ajmera To: dev@dpdk.org, jasvinder.singh@intel.com, cristian.dumitrescu@intel.com, thomas@monjalon.net Subject: [PATCH] sched: Cleanup qos scheduler defines from rte_config Date: Fri, 21 Jan 2022 18:14:59 +0000 Message-Id: <20220121181459.1599739-1-megha.ajmera@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 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 ------- lib/sched/rte_sched.c | 4 ++++ 2 files changed, 4 insertions(+), 7 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/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