[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20180114113317.4706-1-jiri@resnulli.us>
Date: Sun, 14 Jan 2018 12:33:12 +0100
From: Jiri Pirko <jiri@...nulli.us>
To: netdev@...r.kernel.org
Cc: nogahf@...lanox.com, yuvalm@...lanox.com, davem@...emloft.net,
idosch@...lanox.com, mlxsw@...lanox.com, jhs@...atatu.com,
xiyou.wangcong@...il.com, kubakici@...pl
Subject: [patch net-next v2 0/5] mlxsw: Offload PRIO qdisc
From: Jiri Pirko <jiri@...lanox.com>
Nogah says:
Add an offload support for PRIO qdisc for mlxsw driver.
PRIO qdisc is being offloaded by using ndo_setup_tc. It has three
commands, to set or tune the qdisc, to remove it and to get its stats.
Like RED offloading, offloading this qdisc is not enforced on the driver
and determining its offload state is done in the dump action, when the
stats are being updated.
In the driver, offloading of PRIO is supported as root qdisc only. It
supports only priorities 0-7 (the range that is used by the current static
mapping of DSCP to skb prio and by 1:1 PCP values mapping) and up to 8
bands.
Patches 1-2 offload DSCP to priority mapping in the mlxsw_sp driver.
Patch 3 adds offload support for PRIO qdisc.
Patches 4-5 Add PRIO offload support in the mlxsw_sp driver.
---
v1->v2:
- Patch 1/5:
- Rewrite patch msg
- Patch 3/5:
- Send all the qstats in the replace command (and not just backlog)
- Patch 5/5:
- Align with the changes from 3/5
- Move backlog to the generic qdisc stats struct
- Delete extra newline
Nogah Frankel (3):
net: sch: prio: Add offload ability to PRIO qdisc
mlxsw: spectrum: qdiscs: Support PRIO qdisc offload
mlxsw: spectrum: qdiscs: Support stats for PRIO qdisc
Yuval Mintz (2):
mlxsw: reg: add rdpm register
mlxsw: spectrum_router: Configure default routing priority
drivers/net/ethernet/mellanox/mlxsw/item.h | 2 +-
drivers/net/ethernet/mellanox/mlxsw/reg.h | 37 +++++
drivers/net/ethernet/mellanox/mlxsw/spectrum.c | 2 +
drivers/net/ethernet/mellanox/mlxsw/spectrum.h | 2 +
.../net/ethernet/mellanox/mlxsw/spectrum_qdisc.c | 171 +++++++++++++++++++++
.../net/ethernet/mellanox/mlxsw/spectrum_router.c | 24 +++
include/linux/netdevice.h | 1 +
include/net/pkt_cls.h | 25 +++
net/sched/sch_prio.c | 59 +++++++
9 files changed, 322 insertions(+), 1 deletion(-)
--
2.14.3
Powered by blists - more mailing lists