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 4B92AA0567; Wed, 10 Mar 2021 17:54:01 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 3011140F35; Wed, 10 Mar 2021 17:54:01 +0100 (CET) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by mails.dpdk.org (Postfix) with ESMTP id DC3D84069F for ; Wed, 10 Mar 2021 17:53:59 +0100 (CET) IronPort-SDR: ZbDe41jJ43dd1XuHF4v213AqamaK9Efp/dhMuEKTAz6x6CASSXzLeZ0Jq6M1NyXoneSfl80LmL haLfd5eLLRVQ== X-IronPort-AV: E=McAfee;i="6000,8403,9919"; a="188548983" X-IronPort-AV: E=Sophos;i="5.81,237,1610438400"; d="scan'208";a="188548983" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Mar 2021 08:53:56 -0800 IronPort-SDR: 2/dwvRRScksLPCeSiCSc/nNz49hbTpxtUXXVWwMeOAntGiE3zoPLs5MZTJEq2h2Lfzop5sD1lR ktqJCOOqxkhg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.81,237,1610438400"; d="scan'208";a="599859330" Received: from orsmsx603.amr.corp.intel.com ([10.22.229.16]) by fmsmga006.fm.intel.com with ESMTP; 10 Mar 2021 08:53:55 -0800 Received: from orsmsx605.amr.corp.intel.com (10.22.229.18) by ORSMSX603.amr.corp.intel.com (10.22.229.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2106.2; Wed, 10 Mar 2021 08:53:55 -0800 Received: from ORSEDG602.ED.cps.intel.com (10.7.248.7) by orsmsx605.amr.corp.intel.com (10.22.229.18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2106.2 via Frontend Transport; Wed, 10 Mar 2021 08:53:55 -0800 Received: from NAM12-BN8-obe.outbound.protection.outlook.com (104.47.55.169) by edgegateway.intel.com (134.134.137.103) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2106.2; Wed, 10 Mar 2021 08:53:55 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=M+ZMrxXXy4YsVbPcc75yZojYD2rgEOPHyGfmwJrQQxH+vZG+T8WLYYbf1PUZzCcZswmkrilqOtneOu1Xdzm7Qmz1JAWRmaIxX9fS/rBQTgCblAw8G7IzgqWekoNyDgwHhhm4f01I46YVL/lBDUJ0LaxdGC4LViAdbWYdsyjSqplwkpsL9Gacz2XhgDtq+UFJ85i7EByQruM4oS9G+nXRGDmoQ9is5uGIDgY0pg1hOUbOwSUEZmNiY493/jkEbzu6t7hC4cL+/kfQvbPcvHY46+RgUXD4kSGlRIjhC4hvKcT9SD5QOSXDlbRvLxNCi+qmmlwXe8jX6hHjns02S8VIaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=NedcOXE4mkJOkxFt2Nx+Aney/O2nJvKiUf9Ki7dFUlM=; b=W3ZUZ1zWZg+lQQk2tuZmYK2rYNDMk8D4Md0BFFl671by846XwaAi8u3qvt3ev9d9c6vevS4J6gomSWMaXSoaKOZ34NRNI+H9I/iKibQKGelO0Lddt+Ac2pazUI+Qea7Dptl0ExGzu7us2Qmot8kpCVcV4QH0r74ROguSGXAjrOK04W+2I8+QQt6VbLMlb+4i61jIt+yN2hVLZQKEAJOxfnY832r5zxDWwON3fMaG48Slw44qFC1wPJkB3FICGuElf67VQOGFt+4ByEx9ve8kXNNfTmWY+k7w2UaXKTz2pwBZTSChteJZ8EFqPx4rNE4droay34ZjO1nytq9vqoPJfg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=NedcOXE4mkJOkxFt2Nx+Aney/O2nJvKiUf9Ki7dFUlM=; b=ynRmm4345xd7o61RW3mbl0EIL7O4Qa76sLNc+IvCERPTi8WVR2AcRhfSjMXTGLEDlz52Z1sAEnx6GQdOmJsaC6H08/BB5Rr1FNGYqDbX9ApIyuny2hhLeBPW4JIqZV+HbR9SROWXy2qVOPa8AsURM7A5KzUwIUv+7ABoX0aT4HU= Received: from CY4PR1101MB2134.namprd11.prod.outlook.com (2603:10b6:910:19::22) by CY4PR1101MB2182.namprd11.prod.outlook.com (2603:10b6:910:1e::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3890.20; Wed, 10 Mar 2021 16:53:50 +0000 Received: from CY4PR1101MB2134.namprd11.prod.outlook.com ([fe80::b93f:efa7:e2e:31a9]) by CY4PR1101MB2134.namprd11.prod.outlook.com ([fe80::b93f:efa7:e2e:31a9%3]) with mapi id 15.20.3890.038; Wed, 10 Mar 2021 16:53:50 +0000 From: "Singh, Jasvinder" To: "Dharmappa, Savinay" , "Dumitrescu, Cristian" , "dev@dpdk.org" Thread-Topic: [PATCH v2] sched : Initialize tc ov watermark. Thread-Index: AQHXFP642/zsLAPlt06II5ahfy8jKqp9ccDg Date: Wed, 10 Mar 2021 16:53:50 +0000 Message-ID: References: <20210309160156.31183-1-savinay.dharmappa@intel.com> <20210309161002.31384-1-savinay.dharmappa@intel.com> In-Reply-To: <20210309161002.31384-1-savinay.dharmappa@intel.com> Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-version: 11.5.1.3 dlp-reaction: no-action dlp-product: dlpe-windows authentication-results: intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=none action=none header.from=intel.com; x-originating-ip: [78.152.207.12] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: ad15a36f-6a0c-4a5b-0cad-08d8e3e51499 x-ms-traffictypediagnostic: CY4PR1101MB2182: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:98; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: Z8LdjaUB7sWbL73z/7vaGhpRU9YWH+YAsvbGerwY0/eWIT96kTdhM+KzEK8abieSu9K2ZePzEiTq63MU7QNsc8HYIsKw/0+FglaDhcCSKF6MvSOcSJ8JdTJMi8MW1hNbRM2W4MUhneKsE2MQd/QdwGhEUPbM5HK0lLgbqaftAysj6U0laazXbexRKPYXoWbZy6gE/lm6NamAbh5SbSOW1E7eHe92hq2SBmHKvcA+0iG9lb2ipsuL/eboYc2mYmAYkevQqDtquu1uSLwLD9ecuKMQoUxx9VacS3YihAPM/VQ19gDCeQCFNvO/KcaysEmkzZ1LsrdEboY51GJhpWb4B30FF9zXgLAwYQqVMyW/31LITBdqkY3arvz507Lqd5IT5gbX/Z/eqD+A28yIBLJxS87J9vPJPqbGjUqKevW5ho2R0NFE9FiSTe7SoWvXftw1Zw8OaeNMCrPBO5NOOSdfHwjcMxwTR/JxlYnna+AcOD1aKg/8jXbhmlYTTYRJj9yoFXBPlmRqM1ZAe1rfV+mmzg== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:CY4PR1101MB2134.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(366004)(396003)(39860400002)(136003)(376002)(346002)(8676002)(478600001)(9686003)(66476007)(64756008)(66556008)(66446008)(7696005)(33656002)(8936002)(55016002)(66946007)(26005)(53546011)(6506007)(86362001)(83380400001)(71200400001)(76116006)(52536014)(2906002)(316002)(5660300002)(110136005)(186003); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata: =?us-ascii?Q?Ia2P/f/JyF2MVdhO9GH/ns1/TLyTQnc1vtMuFfGmyZuis6rFYCfV5OI5hYME?= =?us-ascii?Q?hAId1AIofss6IcbDA9vMODXjTpAn8ndzw6RGt2xVQtTJiW1rjmskF2LK2xTG?= =?us-ascii?Q?nF7NgAi/Y8RwNkOuhN8wun4/k7H3LTaKrDHlpIugoHKAAhvqM83o9x1iou+s?= =?us-ascii?Q?2rm+80dJhdUtCxkHkiI+o3cywgfzgHWG3osFui3qXQkagZ6bvNxgN1iTpat5?= =?us-ascii?Q?pMqS5YIXRW8zJlO8wF4h7G64e4T4dmHOG4xp640N3v+AEaVRzVfVIDALhtMB?= =?us-ascii?Q?Xk+RTbKvWSPcpbb4qRlaLLcFPI46OMzZnFHNPG3Faw/Bp+VYa4cTN48Bhzxg?= =?us-ascii?Q?2KXbRw1b9+hlacl15vNfzVJS6CQPUPWmzMQFpaV2baL0Bgol7jpxEx7Q/hY2?= =?us-ascii?Q?6XCwH0lPHPFoREvltNIrwHfPzFtcfQTywpKzgmJHR6x9dWwZIX6+camt06RX?= =?us-ascii?Q?hpunDzOWLkc/i0OqQRXFoVhAu6t4SZcHX0nduS3b5y9hGFwc5vfweXquqrip?= =?us-ascii?Q?/bkhH6Zm51hJVsbQPs9RCbfhT5804Nr99+kXPkb+1NbBINvKezRDYbt3I9fS?= =?us-ascii?Q?f4H3GzIJjQPVnISWf9BU3N+luFajPhgK6V4PBGWAjiHN7LUDJ3Vz9I4O6mpN?= =?us-ascii?Q?01tVE290WIgUTPWqaTkY9aFRkeXfkwga3XxF5aE5YQBcaGPevZ2DpRB3APc4?= =?us-ascii?Q?DADKyER+wWqo1EFWFlwP2xKXBoDI/UqyjPcCjm617M+3RTkmsC4OTFh3hSP7?= =?us-ascii?Q?j/+LFdJ4rroqZH/Yf9xYad+4NC2INaD8w29MkO8D7o1UexSy4MTotqOgW1ML?= =?us-ascii?Q?7Kr0FTffCQk89o//Q370s2ORb+Vy+KeJfG+LsCfEBhLREO6MK2S780DfROcj?= =?us-ascii?Q?e3VKKathe4fT2U6hG7G/KI6qXywOiQS+t/MOuYu8cQUQaVjsi5JOE0pE348P?= =?us-ascii?Q?Q99BdqaK+vm89KWnGaLMOAh36v8dJjHj6Ce9mE3FgxZzjnNxq4wpNmHCcOGZ?= =?us-ascii?Q?yiuKwyqAYRrpWpQPDT/wmW5yTOLKmW1cvX/z7PzJ/GtyNMqXDCKfIa6Q0pLU?= =?us-ascii?Q?1+yycrPBYIyMYjcIhnjzgVZjRodoMiF+qocW+Vrpq7nstJbidBCtKI0De3YD?= =?us-ascii?Q?wjbWiO3Qdmc17cMGuopy6Rj/0lUXmqC7K63nretlwhsvN5rJx26g5Ua3KD5J?= =?us-ascii?Q?NqGA6eJ36BfW1aCv0hANv6aKKp5GvQ+F++jiMswBQ+ZFZCCuoUKsrvbC1+Qo?= =?us-ascii?Q?42VkENVxtxbXo+LF+FF4pHKx4b0rPs59i/cuj/1kIorYdjH4pyZsAGTDH6ST?= =?us-ascii?Q?UDR+j9yyb/KVT8P+6JTWdBHB?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: CY4PR1101MB2134.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: ad15a36f-6a0c-4a5b-0cad-08d8e3e51499 X-MS-Exchange-CrossTenant-originalarrivaltime: 10 Mar 2021 16:53:50.4296 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: 9pn27nvsD/H+K1L6crkWFqw3RVKYamEpMk+eqc/nIt/TwSWmYngJdBZcjxrnyOS6xOWPkmzgu02+d9fsUsce8jYb65R87pVJArIjMZeTBEU= X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR1101MB2182 X-OriginatorOrg: intel.com Subject: Re: [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" > -----Original Message----- > From: Dharmappa, Savinay > Sent: Tuesday, March 9, 2021 4:10 PM > To: Singh, Jasvinder ; Dumitrescu, Cristian > ; dev@dpdk.org > Cc: Dharmappa, Savinay > Subject: [PATCH v2] sched : Initialize tc ov watermark. >=20 > tc ov watermark is initialized with computed value of max tc ov watermark= . >=20 > Signed-off-by: Savinay Dharmappa > --- > v2: fix spelling error. > --- > lib/librte_sched/rte_sched.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > 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 =3D port->mtu; > - s->tc_ov_wm =3D s->tc_ov_wm_max; > s->tc_ov_period_id =3D 0; > s->tc_ov =3D 0; > s->tc_ov_n =3D 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 =3D rte_sched_time_ms_to_bytes(profile- > >tc_period, > s- > >pipe_tc_be_rate_max); > + s->tc_ov_wm =3D s->tc_ov_wm_max; > #endif > s->profile =3D subport_profile_id; >=20 > -- > 2.17.1 Acked-by: Jasvinder Singh