Development issues regarding the cerowrt test router project
 help / color / mirror / Atom feed
From: Dave Taht <dave.taht@gmail.com>
To: cerowrt-devel <cerowrt-devel@lists.bufferbloat.net>
Subject: [Cerowrt-devel] Fwd: [PATCH net-next 00/14] mlxsw: Offload TBF
Date: Sat, 25 Jan 2020 07:17:00 -0800	[thread overview]
Message-ID: <CAA93jw4WSsv6fWuubHOzgAVusiV58RNLVg+9xwmgWpL5v3jkLg@mail.gmail.com> (raw)
In-Reply-To: <20200124132318.712354-1-idosch@idosch.org>

tbf offload...

---------- Forwarded message ---------
From: Ido Schimmel <idosch@idosch.org>
Date: Fri, Jan 24, 2020 at 6:36 AM
Subject: [PATCH net-next 00/14] mlxsw: Offload TBF
To: <netdev@vger.kernel.org>
Cc: <davem@davemloft.net>, <jiri@mellanox.com>, <jhs@mojatatu.com>,
<xiyou.wangcong@gmail.com>, <petrm@mellanox.com>,
<mlxsw@mellanox.com>, Ido Schimmel <idosch@mellanox.com>


From: Ido Schimmel <idosch@mellanox.com>

Petr says:

In order to allow configuration of shapers on Spectrum family of
machines, recognize TBF either as root Qdisc, or as a child of ETS or
PRIO. Configure rate of maximum shaper according to TBF rate setting,
and maximum shaper burst size according to TBF burst setting.

- Patches #1 and #2 make the TBF shaper suitable for offloading.
- Patches #3, #4 and #5 are refactoring aimed at easier support of leaf
  Qdiscs in general.
- Patches #6 to #10 gradually introduce TBF offload.
- Patches #11 to #14 add selftests.

Petr Machata (14):
  net: sched: sch_tbf: Don't overwrite backlog before dumping
  net: sched: Make TBF Qdisc offloadable
  mlxsw: spectrum_qdisc: Extract a per-TC stat function
  mlxsw: spectrum_qdisc: Add mlxsw_sp_qdisc_get_class_stats()
  mlxsw: spectrum_qdisc: Extract a common leaf unoffload function
  mlxsw: reg: Add max_shaper_bs to QoS ETS Element Configuration
  mlxsw: reg: Increase MLXSW_REG_QEEC_MAS_DIS
  mlxsw: spectrum: Add lowest_shaper_bs to struct mlxsw_sp
  mlxsw: spectrum: Configure shaper rate and burst size together
  mlxsw: spectrum_qdisc: Support offloading of TBF Qdisc
  selftests: Move two functions from mlxsw's qos_lib to lib
  selftests: forwarding: lib: Add helpers for busywaiting
  selftests: forwarding: lib: Allow reading TC rule byte counters
  selftests: mlxsw: Add a TBF selftest

 drivers/net/ethernet/mellanox/mlxsw/reg.h     |  19 +-
 .../net/ethernet/mellanox/mlxsw/spectrum.c    |  16 +-
 .../net/ethernet/mellanox/mlxsw/spectrum.h    |   5 +-
 .../ethernet/mellanox/mlxsw/spectrum_dcb.c    |   5 +-
 .../ethernet/mellanox/mlxsw/spectrum_qdisc.c  | 346 +++++++++++++++---
 include/linux/netdevice.h                     |   1 +
 include/net/pkt_cls.h                         |  22 ++
 net/sched/sch_tbf.c                           |  56 ++-
 .../selftests/drivers/net/mlxsw/qos_lib.sh    |  24 --
 .../drivers/net/mlxsw/sch_tbf_ets.sh          |   9 +
 .../drivers/net/mlxsw/sch_tbf_prio.sh         |   9 +
 .../drivers/net/mlxsw/sch_tbf_root.sh         |   9 +
 tools/testing/selftests/net/forwarding/lib.sh |  45 ++-
 .../selftests/net/forwarding/sch_tbf_core.sh  | 233 ++++++++++++
 .../selftests/net/forwarding/sch_tbf_ets.sh   |   6 +
 .../net/forwarding/sch_tbf_etsprio.sh         |  39 ++
 .../selftests/net/forwarding/sch_tbf_prio.sh  |   6 +
 .../selftests/net/forwarding/sch_tbf_root.sh  |  33 ++
 18 files changed, 793 insertions(+), 90 deletions(-)
 create mode 100755 tools/testing/selftests/drivers/net/mlxsw/sch_tbf_ets.sh
 create mode 100755 tools/testing/selftests/drivers/net/mlxsw/sch_tbf_prio.sh
 create mode 100755 tools/testing/selftests/drivers/net/mlxsw/sch_tbf_root.sh
 create mode 100644 tools/testing/selftests/net/forwarding/sch_tbf_core.sh
 create mode 100755 tools/testing/selftests/net/forwarding/sch_tbf_ets.sh
 create mode 100644 tools/testing/selftests/net/forwarding/sch_tbf_etsprio.sh
 create mode 100755 tools/testing/selftests/net/forwarding/sch_tbf_prio.sh
 create mode 100755 tools/testing/selftests/net/forwarding/sch_tbf_root.sh

--
2.24.1



-- 
Make Music, Not War

Dave Täht
CTO, TekLibre, LLC
http://www.teklibre.com
Tel: 1-831-435-0729

           reply	other threads:[~2020-01-25 15:17 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <20200124132318.712354-1-idosch@idosch.org>]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://lists.bufferbloat.net/postorius/lists/cerowrt-devel.lists.bufferbloat.net/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAA93jw4WSsv6fWuubHOzgAVusiV58RNLVg+9xwmgWpL5v3jkLg@mail.gmail.com \
    --to=dave.taht@gmail.com \
    --cc=cerowrt-devel@lists.bufferbloat.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox