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 E5382A04BB; Tue, 6 Oct 2020 17:40:08 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 7E1E91BA5D; Tue, 6 Oct 2020 17:39:54 +0200 (CEST) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by dpdk.org (Postfix) with ESMTP id 4FF471B9E0 for ; Tue, 6 Oct 2020 17:39:48 +0200 (CEST) IronPort-SDR: w7qwfz5P6N92uUz1yrR6ao4LCRbGT7YEGtX0SfY9vj7FhXAXWDYIrZdDsKtReiLwF5KWdj2KDB YIQWXBaM5NTQ== X-IronPort-AV: E=McAfee;i="6000,8403,9765"; a="152306142" X-IronPort-AV: E=Sophos;i="5.77,343,1596524400"; d="scan'208";a="152306142" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Oct 2020 08:27:45 -0700 IronPort-SDR: xFY2TmcI6rW4fNBgU7mnIUArawOVSTsNAwjlPIUdycvn0vkL4UBwkp4yM6elQL7D0c0Hpy/LqM JdGCCrXj7lUA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.77,343,1596524400"; d="scan'208";a="460844455" Received: from silpixa00400629.ir.intel.com ([10.237.214.112]) by orsmga004.jf.intel.com with ESMTP; 06 Oct 2020 08:27:44 -0700 From: Savinay Dharmappa To: cristian.dumitrescu@intel.com, jasvinder.singh@intel.com, dev@dpdk.org Cc: savinay.dharmappa@intel.com Date: Tue, 6 Oct 2020 16:27:25 +0100 Message-Id: <20201006152733.52178-1-savinay.dharmappa@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200930192434.47793-1-savinay.dharmappa@intel.com> References: <20200930192434.47793-1-savinay.dharmappa@intel.com> Subject: [dpdk-dev] [PATCH v6 0/8] Enable dynamic config of subport bandwidth 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" DPDK sched library allows runtime configuration of the pipe profiles to the 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 unable to dynamically re-distribute the excess-bandwidth of one subport among other subports in the scheduler hierarchy. Therefore, it is also not possible to adjust the subport bandwidth profile in sync with dynamic changes in pipe profiles of subscribers who want to consume higher bandwidth opportunistically. This patch series implements dynamic configuration of the subport bandwidth profile to overcome the runtime situation when group of subscribers are not using the allotted bandwidth and dynamic bandwidth re-distribution is needed the without making any structural changes in the hierarchy. The implementation work includes refactoring the existing api and data structures defined for port and subport level, new APIs for adding subport level bandwidth profiles that can be used in runtime Savinay Dharmappa (8): sched: add support profile table sched: introduce subport profile add function sched: update subport rate dynamically example/qos_sched: update subport rate dynamically example/ip_pipeline: update subport rate dynamically drivers/softnic: update subport rate dynamically app/test_sched: update subport rate dynamically sched: remove redundant code app/test/test_sched.c | 15 +- doc/guides/rel_notes/deprecation.rst | 6 - doc/guides/rel_notes/release_20_11.rst | 2 + .../net/softnic/rte_eth_softnic_internals.h | 11 +- drivers/net/softnic/rte_eth_softnic_tm.c | 243 +++++-- examples/ip_pipeline/cli.c | 68 +- examples/ip_pipeline/tmgr.c | 121 +++- examples/ip_pipeline/tmgr.h | 5 +- examples/qos_sched/cfg_file.c | 151 ++-- examples/qos_sched/cfg_file.h | 4 + examples/qos_sched/init.c | 21 +- examples/qos_sched/main.h | 1 + examples/qos_sched/profile.cfg | 3 + lib/librte_sched/rte_sched.c | 678 ++++++++++++------ lib/librte_sched/rte_sched.h | 73 +- lib/librte_sched/rte_sched_version.map | 2 + 16 files changed, 959 insertions(+), 445 deletions(-) -- 2.17.1