openwrt/target/linux/realtek
Markus Stockhausen b37c4dbb2a realtek: dsa: provide generic fast_age for RTL93xx
Fast ageing of L2 entries is supported by DSA with two callbacks.

- port_fast_age(): age out for one port
- port_vlan_fast_age(): age out for one vlan on one port

Independent from the SoC it always boils down to issue a command
to the L2_TBL_FLUSH_CTRL register. Nevertheless the current
implemententation is repeated multiple times and makes use of
the family_id.

As a first refactoring step provide generic fast_age() functions
for RTL930x and RTL931x by rearranging the existing definitions
of vlan_port_fast_age().

The logic is as follows:

- provide a SoC dependent function that works with or without VLAN.
  When VLAN/VID = -1 only flush the specific port otherwise only
  flush given VLAN on port.
- provide a port_fast_age() helper that calls the SoC specific
  functions with VLAN = -1.
- provide a port_vlan_fast_age() helper that calls the SOC specific
  functions and handing over the given VLAN.

Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
Link: https://github.com/openwrt/openwrt/pull/22145
Signed-off-by: Robert Marko <robimarko@gmail.com>
2026-02-27 18:25:19 +01:00
..
base-files realtek: add support for XikeStor SKS8300-12X V1 2026-02-21 00:49:51 +01:00
dts realtek: hog the GS1900-24E external IC reset line 2026-02-24 21:29:26 +01:00
files-6.12 realtek: dsa: provide generic fast_age for RTL93xx 2026-02-27 18:25:19 +01:00
image realtek: add support for XikeStor SKS8300-12X V1 2026-02-21 00:49:51 +01:00
patches-6.12 kernel: bump 6.12 to 6.12.71 2026-02-14 18:30:02 +01:00
profiles target: use SPDX license identifiers on Makefiles 2021-02-10 15:47:18 +01:00
rtl838x realtek: rtl838x: enable U-Boot env NVMEM layout in kernel 2026-02-21 00:31:48 +01:00
rtl839x realtek: phy: rename and relocate module 2026-02-09 09:59:25 +01:00
rtl930x realtek: phy: rename and relocate module 2026-02-09 09:59:25 +01:00
rtl930x_nand realtek: phy: rename and relocate module 2026-02-09 09:59:25 +01:00
rtl931x realtek: phy: rename and relocate module 2026-02-09 09:59:25 +01:00
rtl931x_nand realtek: phy: rename and relocate module 2026-02-09 09:59:25 +01:00
Makefile realtek: add NAND targets for RTL93xx 2025-08-10 11:46:52 +02:00