From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id E3C61A0549; Thu, 16 Jul 2020 10:14:12 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id C081E1BEB4; Thu, 16 Jul 2020 10:14:12 +0200 (CEST) Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by dpdk.org (Postfix) with ESMTP id A90AE1BEA7 for ; Thu, 16 Jul 2020 10:14:10 +0200 (CEST) IronPort-SDR: e1En82+c0A/Sn3crnjK/Y3Md2FF5bQ2/SjEDkDovreqq3TgbVeTb+csFT0DQHOqGuwdy0bUoGN BuQVgnWXfPwg== X-IronPort-AV: E=McAfee;i="6000,8403,9683"; a="210870433" X-IronPort-AV: E=Sophos;i="5.75,358,1589266800"; d="scan'208";a="210870433" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Jul 2020 01:14:09 -0700 IronPort-SDR: igTBD43Yg57KiSAyXi6FCoE+CBwbT17867Ajw4wHD2hRmbPRvCIc3nmrvG/K2DUa2Trr85Gwpw Mkjfkf8SXFIA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,358,1589266800"; d="scan'208";a="269189864" Received: from orsmsx105.amr.corp.intel.com ([10.22.225.132]) by fmsmga007.fm.intel.com with ESMTP; 16 Jul 2020 01:14:09 -0700 Received: from orsmsx163.amr.corp.intel.com (10.22.240.88) by ORSMSX105.amr.corp.intel.com (10.22.225.132) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 16 Jul 2020 01:14:08 -0700 Received: from ORSEDG001.ED.cps.intel.com (10.7.248.4) by ORSMSX163.amr.corp.intel.com (10.22.240.88) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 16 Jul 2020 01:14:09 -0700 Received: from NAM12-DM6-obe.outbound.protection.outlook.com (104.47.59.169) by edgegateway.intel.com (134.134.137.100) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 16 Jul 2020 01:14:08 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=QQ+8jPexW/Tn1WRhy1epvNul+yQv67ufj/vPGxqojtPmVNSCs4d6h3K5nnocszu1PCCqL4kMDvHlYsUXFcEp2ZmbkieXn+dR4kuBzMu4jbfcVrlyTpfw7TX/C43Ff8l4B2KqjpKFuJtJ97wmN8XMszbVJpb4vZAHTXNBjNLgkm+jUngSAQz4TrlNxog/baVJ6Rgvpf/LXRvPtLBIGAlQ/7ZXxIopqc8Z1qt60wr+vKQ/qBVYS8BKIkxN+6ZbhanVveY449f/8Lv0IH6qnONK+5gZXbCFIv2CU1QWfhTLNzDeo+IXKhT7NXHSJ5O3NK6w/RiTDpqK0lASaHxgF5i+pQ== 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=71Snbip2jsUn0tsUKK6dU/4aCsPRWYbhdZsFJxy49vk=; b=ROr9Hb+Y4SZRPwufS+OZmM9N6a9xaLmi/nHQpcms+7EOWJ8diy4GB3qkF1HGmDr3p+ZJWjaOdiD++ScvDemURiZVwuYKFVfW2NFWPrkbW6QkozEhk5Vo01jT5RPVV/9raQgzxRm+4B23j8wCBc8uCLyoqK5X1C2bhe9H0fYYZou8sQuO6eyAa6iduVYUssDa9a+XbL/N0oEj+eqF7rB5ckYARbNX1SECcbpqc02EppZNyxj2gJOuRIAEitDm09rZXA+YC6229j2CJUD00HmeEK6J2yvEAvk/DfaB/wojK3S8dDUQy4b+P9jfMPLz2HzklOA297s47Q0mZ1E/f8F2FQ== 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=71Snbip2jsUn0tsUKK6dU/4aCsPRWYbhdZsFJxy49vk=; b=mfvwuBWfiMezEphJzgpzyg7ma09rinqui4J2nf3Hc9uXMLT0mXPoBWgHk3+tg81cs8yXQ2RKFyYC1pxWhcTD214HGLIl1hYl/GPnC+n6wGDqquwEJfzmJzSaBRlKnRt3PKYy2UdHuCE99lLvxcnWY//d6iC0r/OP0qv2Hz+nATk= Received: from CY4PR11MB0072.namprd11.prod.outlook.com (2603:10b6:910:76::27) by CY4PR11MB1526.namprd11.prod.outlook.com (2603:10b6:910:7::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3174.21; Thu, 16 Jul 2020 08:14:07 +0000 Received: from CY4PR11MB0072.namprd11.prod.outlook.com ([fe80::e979:a537:4a97:afd5]) by CY4PR11MB0072.namprd11.prod.outlook.com ([fe80::e979:a537:4a97:afd5%5]) with mapi id 15.20.3195.018; Thu, 16 Jul 2020 08:14:07 +0000 From: "Singh, Jasvinder" To: "Dharmappa, Savinay" , "dev@dpdk.org" , "Dumitrescu, Cristian" Thread-Topic: [RFC PATCH 0/2] Enable dyynamic configuration of subport bandwidth profile Thread-Index: AQHWWtWz6JrMax44U0mOcwQjEKDxH6kJ3D+g Date: Thu, 16 Jul 2020 08:14:07 +0000 Message-ID: References: <1594837677-313175-1-git-send-email-savinay.dharmappa@intel.com> In-Reply-To: <1594837677-313175-1-git-send-email-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: [51.37.210.122] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 857d93e6-7310-4c33-34e1-08d829603628 x-ms-traffictypediagnostic: CY4PR11MB1526: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8273; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: TPsGmWo05mQTCK1H/mR60/aV4co24nb1vDzqyKc5L0eEmN/EjwV4Uw0YkKTdP6hrp52LAkUp4nTYIkg49WKBHIvQYeQ/N3hsnNJHPRU3A4jMxkAzeeJE7tiFI9njdwPeayYFT/c4Y5DpZVqgQhAMzaC8JMP4+xTt/8s5LxjM/C1NXDXMPExj8f+Rm+apmT1Ed4dXNMwDoMLIeaNCwf4s9Z9oFGu5jO08JM/+gofdGoJIsSuxtl17P3PVTi00q+AGQGb0vzLKLrZaNVXzpVGpxFDvA0qw/EhXcE/v45DvTCYuyaDG3hqsSID0Uka22NmC x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:CY4PR11MB0072.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(4636009)(396003)(366004)(136003)(39860400002)(376002)(346002)(86362001)(53546011)(6636002)(6506007)(64756008)(71200400001)(66946007)(66446008)(66556008)(316002)(478600001)(186003)(2906002)(7696005)(9686003)(66476007)(8676002)(55016002)(26005)(66574015)(8936002)(33656002)(76116006)(110136005)(83380400001)(5660300002)(52536014); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata: iCHJhCltsV9QlemJkWcXSyExxHFmCAzGcvdO46EWlL+fzW32bEx6cakwvJF3YXp+9yGc+GpC0ZQKk29H03pJA5A2NV2o/hAUE9+W9R1sp72gnPoRbubQG7QqWqKiqNoOIWKfLa1OLvCjCQHnLUSzyjch8Ehh+atIVWRZpw47UOyntdI79VoyL/nwo2ZR2mzPxXCVcJiRABboaeOtNXLr4W4WR7i+gg5Lm16w1I++K3bjcYCzzryT9RGvGTWottQekunxJHl3TohuoccOS8otOOc/TEWFowXTeUR6yeaG6VnLIXe/2wcPgbS8ndBU7Wq0l8WUWLqT5jr7h7pKyrj6Om6NYyiOcIQkUbUSuj3pBHukfaSg1MPe7zy+NxPXCHX8Z/XD3jaPIz6cdvbHS2sp2SP5/+e2QdjkJBP1Z3MXwQPh08BfRR6fN4S9P93wRSQLiXUvTqATgAkxsMVQBIkhGezp22QgnJ+Nm0msWWK58G0= 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: CY4PR11MB0072.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 857d93e6-7310-4c33-34e1-08d829603628 X-MS-Exchange-CrossTenant-originalarrivaltime: 16 Jul 2020 08:14:07.4529 (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: 8MnKJhPvUOur00XXfgXgQo1rrokwHtxK64AhHfsdAuXRQH+ZJ7kezaWkU4wcQaDW6cjXdt0ca+oCClk0vyv+bP8RZlfnZt11mqhmVZ4p8pA= X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR11MB1526 X-OriginatorOrg: intel.com Subject: Re: [dpdk-dev] [RFC PATCH 0/2] Enable dyynamic configuration of subport bandwidth profile X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 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: Wednesday, July 15, 2020 7:28 PM > To: Dharmappa, Savinay ; Singh, Jasvinder > ; dev@dpdk.org > Subject: [RFC PATCH 0/2] Enable dyynamic configuration of subport > bandwidth profile >=20 > DPDK sched library allows runtime configuration of the pipe profiles to t= he > pipes of the subport once scheduler hierarchy is constructed. However, to > change the subport level bandwidth, existing hierarchy needs to be > dismantled and whole process of building hierarchy under subport nodes > needs to be repeated which might result in router downtime. Furthermore, > due to lack of dynamic configuration of the subport bandwidth profile > configuration (shaper and Traffic class rates), the user application is u= nable > to dynamically re-distribute the excess-bandwidth of one subport among > other subports in the scheduler hierarchy. Therefore, it is also not poss= ible to > adjust the subport bandwidth profile in sync with dynamic changes in pipe > profiles of subscribers who want to consume higher bandwidth > opportunistically. >=20 > This RFC proposes dynamic configuration of the subport bandwidth profile = to > overcome the runtime situation when group of subscribers are not using th= e > allotted bandwidth and dynamic bandwidth re-distribution is needed the > without making any structural changes in the hierarchy. >=20 > The implementation work includes refactoring the existing data structures > defined for port and subport level, new APIs for adding subport level > bandwidth profiles that can be used in runtime which causes API/ABI chang= e. > Therefore, deprecation notice will be sent out soon. >=20 > Savinay Dharmappa (2): > sched: add dynamic config of subport bandwidth profile > example/qos_sched: subport bandwidth dynmaic conf >=20 > examples/qos_sched/cfg_file.c | 158 ++++++----- > examples/qos_sched/cfg_file.h | 4 + > examples/qos_sched/init.c | 24 +- > examples/qos_sched/main.h | 1 + > examples/qos_sched/profile.cfg | 3 + > lib/librte_sched/rte_sched.c | 486 ++++++++++++++++++++++++---= ------ > lib/librte_sched/rte_sched.h | 82 +++++- > lib/librte_sched/rte_sched_version.map | 2 + > 8 files changed, 544 insertions(+), 216 deletions(-) >=20 > -- > 2.7.4 + Cristian