OSDN Git Service

Merge branch 'configuring-congestion-watermarks-on-ocelot-switch-using-devlink-sb'
authorJakub Kicinski <kuba@kernel.org>
Sat, 16 Jan 2021 04:03:41 +0000 (20:03 -0800)
committerJakub Kicinski <kuba@kernel.org>
Sat, 16 Jan 2021 04:03:41 +0000 (20:03 -0800)
commit58f9f9b5555543d47ad9a721489b557a790dc0c7
treee5985aceec4f8ed86f8665daf0520bf14130d79c
parent2d9116be760793491827f30b7f77e88b5c44b81a
parentf59fd9cab7305266f4148776c3b66329551a2a3a
Merge branch 'configuring-congestion-watermarks-on-ocelot-switch-using-devlink-sb'

Vladimir Oltean says:

====================
Configuring congestion watermarks on ocelot switch using devlink-sb

In some applications, it is important to create resource reservations in
the Ethernet switches, to prevent background traffic, or deliberate
attacks, from inducing denial of service into the high-priority traffic.

These patches give the user some knobs to turn. The ocelot switches
support per-port and per-port-tc reservations, on ingress and on egress.
The resources that are monitored are packet buffers (in cells of 60
bytes each) and frame references.

The frames that exceed the reservations can optionally consume from
sharing watermarks which are not per-port but global across the switch.
There are 10 sharing watermarks, 8 of them are per traffic class and 2
are per drop priority.

I am configuring the hardware using the best of my knowledge, and mostly
through trial and error. Same goes for devlink-sb integration. Feedback
is welcome.
====================

Link: https://lore.kernel.org/r/20210115021120.3055988-1-olteanv@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>