]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum_qdisc: Offload RED ECN nodrop mode
authorPetr Machata <petrm@mellanox.com>
Thu, 12 Mar 2020 23:10:58 +0000 (01:10 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 15 Mar 2020 04:03:46 +0000 (21:03 -0700)
commit2d595408f40203186fbdfb9f8d94b4cc1c9f77e0
tree6b59ac91823534c818266625a1b7ff95d6774e21
parent5c22486b1f245fae2548527e40fae137e220dea2
mlxsw: spectrum_qdisc: Offload RED ECN nodrop mode

RED ECN nodrop mode means that non-ECT traffic should not be early-dropped,
but enqueued normally instead. In Spectrum systems, this is achieved by
disabling CWTPM.ew (enable WRED) for a given traffic class.

So far CWTPM.ew was unconditionally enabled. Instead disable it when the
RED qdisc is in nodrop mode.

Signed-off-by: Petr Machata <petrm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum_qdisc.c