]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'mlxsw-Offload-PRIO-qdisc'
authorDavid S. Miller <davem@davemloft.net>
Sun, 14 Jan 2018 17:21:12 +0000 (12:21 -0500)
committerDavid S. Miller <davem@davemloft.net>
Sun, 14 Jan 2018 17:21:12 +0000 (12:21 -0500)
commita7af7fedd67678d53882c51e47df43d7380b5639
treeb5ce274ec5fddee527cc5195f4dba2c6098eb18a
parent09521a3715a8fbbdffcdb6397c17f8e9efea1601
parentf1e47b2c2f271355d69d7b9fe1a939ca748832a7
Merge branch 'mlxsw-Offload-PRIO-qdisc'

Jiri Pirko says:

====================
mlxsw: Offload PRIO qdisc

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
====================

Signed-off-by: David S. Miller <davem@davemloft.net>