1
0
Fork 0
forked from mirror/openwrt
openwrt/target/linux/realtek
Issam Hamdi 2e74eb6d93 realtek: dsa: rtl93xx: Support per port throttling
The RTL930x and RTL931x have an ingress and egress bandwidth controller for
each port. They can can be used to reduce the throughput for each port.

They can be programmed via the the DSA flower offloading capabilities. Only
a limited functionality (bytes based rate limiter for ingress/egress) is
supported.

With kmod-sched-act-police, kmod-sched-flower and tc installed, each port
can have its ingress/egress rate limit applied in hardware using:

    # tc qdisc del dev lan1 clsact
    tc qdisc add dev lan1 clsact
    tc filter add dev lan1 ingress flower skip_sw action police rate 100mbit burst 64k conform-exceed drop
    tc filter add dev lan1 egress flower skip_sw action police rate 150mbit burst 64k conform-exceed drop

Signed-off-by: Issam Hamdi <ih@simonwunderlich.de>
Co-developed-by: Sven Eckelmann <se@simonwunderlich.de>
Signed-off-by: Sven Eckelmann <se@simonwunderlich.de>
Link: https://github.com/openwrt/openwrt/pull/20663
Signed-off-by: Robert Marko <robimarko@gmail.com>
2025-11-07 12:34:09 +01:00
..
base-files realtek: add support for Zyxel XGS1010-12 A1 2025-11-03 11:07:20 +01:00
dts realtek: add support for Zyxel XGS1010-12 A1 2025-11-03 11:07:20 +01:00
files/firmware/rtl838x_phy
files-6.12 realtek: dsa: rtl93xx: Support per port throttling 2025-11-07 12:34:09 +01:00
image realtek: add support for Zyxel XGS1010-12 A1 2025-11-03 11:07:20 +01:00
patches-6.12 kernel: bump 6.12 to 6.12.57 2025-11-06 22:06:54 +01:00
profiles target: use SPDX license identifiers on Makefiles 2021-02-10 15:47:18 +01:00
rtl838x realtek: rtl930x: Disable L3 offloading 2025-10-21 21:59:28 +02:00
rtl839x realtek: rtl930x: Disable L3 offloading 2025-10-21 21:59:28 +02:00
rtl930x realtek: add support for Zyxel XGS1010-12 A1 2025-11-03 11:07:20 +01:00
rtl930x_nand realtek: rtl930x: Disable L3 offloading 2025-10-21 21:59:28 +02:00
rtl931x realtek: rtl930x: Disable L3 offloading 2025-10-21 21:59:28 +02:00
rtl931x_nand realtek: rtl930x: Disable L3 offloading 2025-10-21 21:59:28 +02:00
Makefile realtek: add NAND targets for RTL93xx 2025-08-10 11:46:52 +02:00