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 48FDCA0567; Tue, 9 Mar 2021 17:10:59 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 354994069D; Tue, 9 Mar 2021 17:10:59 +0100 (CET) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by mails.dpdk.org (Postfix) with ESMTP id A19054068A for ; Tue, 9 Mar 2021 17:10:56 +0100 (CET) IronPort-SDR: uDHYfwwxFVMdvoyFPGQcwzLf04/FROI1Wki7N9CAiCGQV10UrRILRrVTZWMQw7hnZl15y5zmyk 4qIYLbuNJs1g== X-IronPort-AV: E=McAfee;i="6000,8403,9918"; a="273300525" X-IronPort-AV: E=Sophos;i="5.81,234,1610438400"; d="scan'208";a="273300525" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Mar 2021 08:10:07 -0800 IronPort-SDR: qkO/6QViBF+uACF1TMUclH0aWb/kAKB4WezrWjxeH5PZA18ZohzW2bkrBG7mEIl20eVMCZBbx4 oc2zvKrSF6FA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.81,234,1610438400"; d="scan'208";a="409793738" Received: from silpixa00400629.ir.intel.com ([10.237.214.112]) by orsmga008.jf.intel.com with ESMTP; 09 Mar 2021 08:10:05 -0800 From: Savinay Dharmappa To: jasvinder.singh@intel.com, cristian.dumitrescu@intel.com, dev@dpdk.org Cc: savinay.dharmappa@intel.com Date: Tue, 9 Mar 2021 16:10:02 +0000 Message-Id: <20210309161002.31384-1-savinay.dharmappa@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210309160156.31183-1-savinay.dharmappa@intel.com> References: <20210309160156.31183-1-savinay.dharmappa@intel.com> Subject: [dpdk-dev] [PATCH v2] sched : Initialize tc ov watermark. 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 Sender: "dev" tc ov watermark is initialized with computed value of max tc ov watermark. Signed-off-by: Savinay Dharmappa --- v2: fix spelling error. --- lib/librte_sched/rte_sched.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/librte_sched/rte_sched.c b/lib/librte_sched/rte_sched.c index 7c56880681..cd87e688e4 100644 --- a/lib/librte_sched/rte_sched.c +++ b/lib/librte_sched/rte_sched.c @@ -1249,7 +1249,6 @@ rte_sched_subport_config(struct rte_sched_port *port, #ifdef RTE_SCHED_SUBPORT_TC_OV /* TC oversubscription */ s->tc_ov_wm_min = port->mtu; - s->tc_ov_wm = s->tc_ov_wm_max; s->tc_ov_period_id = 0; s->tc_ov = 0; s->tc_ov_n = 0; @@ -1277,6 +1276,7 @@ rte_sched_subport_config(struct rte_sched_port *port, #ifdef RTE_SCHED_SUBPORT_TC_OV s->tc_ov_wm_max = rte_sched_time_ms_to_bytes(profile->tc_period, s->pipe_tc_be_rate_max); + s->tc_ov_wm = s->tc_ov_wm_max; #endif s->profile = subport_profile_id; -- 2.17.1