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 8FE51A0567; Tue, 9 Mar 2021 17:03:08 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0E7504069D; Tue, 9 Mar 2021 17:03:08 +0100 (CET) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by mails.dpdk.org (Postfix) with ESMTP id 8C1CF4068A for ; Tue, 9 Mar 2021 17:03:06 +0100 (CET) IronPort-SDR: n4MVMBU0lDKWmYWV9ZekfuKB8VPMHtz39VaTbnY5mxaWjFBZ8GuCaXJFR6/DaRs2x4Qb6bWgBm xDT97UEvkweA== X-IronPort-AV: E=McAfee;i="6000,8403,9918"; a="188307420" X-IronPort-AV: E=Sophos;i="5.81,234,1610438400"; d="scan'208";a="188307420" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Mar 2021 08:02:50 -0800 IronPort-SDR: BrJr+5yF+DMlG5UhuQohmheY9pyUsbXN0MdPN46VZpElqrVYzwTXTiIIaIAQpwsxTuw8JWHRYL sbTg7xy/HN4w== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.81,234,1610438400"; d="scan'208";a="403282261" Received: from silpixa00400629.ir.intel.com ([10.237.214.112]) by fmsmga008.fm.intel.com with ESMTP; 09 Mar 2021 08:02:49 -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:01:56 +0000 Message-Id: <20210309160156.31183-1-savinay.dharmappa@intel.com> X-Mailer: git-send-email 2.17.1 Subject: [dpdk-dev] [PATCH v1] 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 intialized with computed value of max tc ov watermark. Signed-off-by: Savinay Dharmappa --- 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