[dpdk-dev] [PATCH v2 00/10] Enable dynamic config of subport bandwidth

Savinay Dharmappa savinay.dharmappa at intel.com
Thu Sep 10 20:48:27 CEST 2020


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 data structures
defined for port and subport level, new APIs for adding subport level
bandwidth profiles that can be used in runtime.

Savinay Dharmappa (10):
  sched: add data structure to support dynamic conf of subport bandwidth
  sched: create subport profile table
  sched: Add public APIs to support dynamic conf of subport profile
  sched: modify the way credits are updated
  sched: Modify subport best effort tc oversubscription
  example/qos_sched: add dynamic config of subport
  example/ip_pipeline: add dynamic config of subport
  drivers/softnic: add dynamic config of subport
  app/test_sched: add dynamic config of subport
  sched: remove the redundant code

 app/test/test_sched.c                           |  18 +-
 doc/guides/rel_notes/deprecation.rst            |   6 -
 doc/guides/rel_notes/release_20_11.rst          |   4 +
 drivers/net/softnic/rte_eth_softnic_internals.h |   9 +
 drivers/net/softnic/rte_eth_softnic_tm.c        | 223 ++++++++---
 examples/ip_pipeline/cli.c                      |  10 +-
 examples/ip_pipeline/tmgr.c                     |  28 +-
 examples/ip_pipeline/tmgr.h                     |   3 +-
 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                    | 484 +++++++++++++++++-------
 lib/librte_sched/rte_sched.h                    |  82 +++-
 lib/librte_sched/rte_sched_version.map          |   2 +
 16 files changed, 780 insertions(+), 279 deletions(-)

-- 
2.7.4



More information about the dev mailing list