openwrt-6.x/target/linux/realtek/files-6.12/drivers/net
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
..
dsa/rtl83xx realtek: dsa: rtl93xx: Support per port throttling 2025-11-07 12:34:09 +01:00
ethernet realtek: rtl93xx: Ignore STP for per port TX 2025-10-03 19:26:18 +02:00
mdio realtek: add 10G_QXGMII serdes mode support for RTL930x 2025-10-26 11:24:51 +01:00
pcs realtek: pcs: rtl930x: reconfigure PLL of neighbor SerDes when needed 2025-11-07 12:22:45 +01:00
phy realtek: phy: rtl930x: drop SerDes code 2025-11-02 16:32:10 +01:00