From: Ido Schimmel <idosch@idosch.org>
To: netdev@vger.kernel.org
Cc: davem@davemloft.net, kuba@kernel.org, jiri@mellanox.com,
petrm@mellanox.com, jhs@mojatatu.com, xiyou.wangcong@gmail.com,
mlxsw@mellanox.com, Ido Schimmel <idosch@mellanox.com>
Subject: [PATCH net-next 0/5] mlxsw: Offload FIFO
Date: Thu, 5 Mar 2020 09:16:39 +0200 [thread overview]
Message-ID: <20200305071644.117264-1-idosch@idosch.org> (raw)
From: Ido Schimmel <idosch@mellanox.com>
Petr says:
If an ETS or PRIO band contains an offloaded qdisc, it is possible to
obtain offloaded counters for that band. However, some of the bands will
likely simply contain the default invisible FIFO qdisc, which does not
present the counters.
To remedy this situation, make FIFO offloadable, and offload it by mlxsw
when below PRIO and ETS for the sole purpose of providing counters for the
bands that do not include other qdiscs.
- In patch #1, FIFO is extended to support offloading.
- Patches #2 and #3 restructure bits of mlxsw to facilitate
the offload logic.
- Patch #4 then implements the offload itself.
- Patch #5 changes the ETS selftest to use the new counters.
Petr Machata (5):
net: sched: Make FIFO Qdisc offloadable
mlxsw: spectrum_qdisc: Introduce struct mlxsw_sp_qdisc_state
mlxsw: spectrum_qdisc: Add handle parameter to ..._ops.replace
mlxsw: spectrum_qdisc: Support offloading of FIFO Qdisc
selftests: forwarding: ETS: Use Qdisc counters
.../net/ethernet/mellanox/mlxsw/spectrum.c | 2 +
.../net/ethernet/mellanox/mlxsw/spectrum.h | 6 +-
.../ethernet/mellanox/mlxsw/spectrum_qdisc.c | 249 ++++++++++++++----
include/linux/netdevice.h | 1 +
include/net/pkt_cls.h | 15 ++
net/sched/sch_fifo.c | 97 ++++++-
.../selftests/drivers/net/mlxsw/sch_ets.sh | 14 +-
tools/testing/selftests/net/forwarding/lib.sh | 10 +
.../selftests/net/forwarding/sch_ets.sh | 9 +-
.../selftests/net/forwarding/sch_ets_tests.sh | 10 +-
10 files changed, 340 insertions(+), 73 deletions(-)
--
2.24.1
next reply other threads:[~2020-03-05 7:17 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-03-05 7:16 Ido Schimmel [this message]
2020-03-05 7:16 ` [PATCH net-next 1/5] net: sched: Make FIFO Qdisc offloadable Ido Schimmel
2020-03-05 7:49 ` Jiri Pirko
2020-03-05 22:06 ` Jakub Kicinski
2020-03-05 7:16 ` [PATCH net-next 2/5] mlxsw: spectrum_qdisc: Introduce struct mlxsw_sp_qdisc_state Ido Schimmel
2020-03-05 9:26 ` Jiri Pirko
2020-03-05 7:16 ` [PATCH net-next 3/5] mlxsw: spectrum_qdisc: Add handle parameter to ..._ops.replace Ido Schimmel
2020-03-05 9:26 ` Jiri Pirko
2020-03-05 7:16 ` [PATCH net-next 4/5] mlxsw: spectrum_qdisc: Support offloading of FIFO Qdisc Ido Schimmel
2020-03-05 9:26 ` Jiri Pirko
2020-03-05 7:16 ` [PATCH net-next 5/5] selftests: forwarding: ETS: Use Qdisc counters Ido Schimmel
2020-03-05 22:03 ` [PATCH net-next 0/5] mlxsw: Offload FIFO David Miller
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200305071644.117264-1-idosch@idosch.org \
--to=idosch@idosch.org \
--cc=davem@davemloft.net \
--cc=idosch@mellanox.com \
--cc=jhs@mojatatu.com \
--cc=jiri@mellanox.com \
--cc=kuba@kernel.org \
--cc=mlxsw@mellanox.com \
--cc=netdev@vger.kernel.org \
--cc=petrm@mellanox.com \
--cc=xiyou.wangcong@gmail.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.