]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
realtek: dsa: temporary rename of RTL93xx fast age functions
authorMarkus Stockhausen <markus.stockhausen@gmx.de>
Sun, 22 Feb 2026 13:29:55 +0000 (14:29 +0100)
committerRobert Marko <robimarko@gmail.com>
Fri, 27 Feb 2026 17:25:19 +0000 (18:25 +0100)
This is a preparation for the dsa fast_age() logic refactoring.
Rename two functions that will get removed later.

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>
target/linux/realtek/files-6.12/drivers/net/dsa/rtl83xx/dsa.c

index abc01794960919c85fc3695b693298cd0eb11cd7..161b598852c84d510989285fe26f4b336d63a661 100644 (file)
@@ -1936,7 +1936,7 @@ void rtldsa_83xx_fast_age(struct dsa_switch *ds, int port)
        mutex_unlock(&priv->reg_mutex);
 }
 
-static void rtldsa_931x_fast_age(struct dsa_switch *ds, int port)
+static void rtldsa_931x_fast_age_old(struct dsa_switch *ds, int port)
 {
        struct rtl838x_switch_priv *priv = ds->priv;
        u32 val;
@@ -1956,12 +1956,12 @@ static void rtldsa_931x_fast_age(struct dsa_switch *ds, int port)
        mutex_unlock(&priv->reg_mutex);
 }
 
-static void rtldsa_930x_fast_age(struct dsa_switch *ds, int port)
+static void rtldsa_930x_fast_age_old(struct dsa_switch *ds, int port)
 {
        struct rtl838x_switch_priv *priv = ds->priv;
 
        if (priv->family_id == RTL9310_FAMILY_ID)
-               return rtldsa_931x_fast_age(ds, port);
+               return rtldsa_931x_fast_age_old(ds, port);
 
        pr_debug("FAST AGE port %d\n", port);
        mutex_lock(&priv->reg_mutex);
@@ -3076,7 +3076,7 @@ const struct dsa_switch_ops rtldsa_93xx_switch_ops = {
        .port_bridge_join       = rtldsa_port_bridge_join,
        .port_bridge_leave      = rtldsa_port_bridge_leave,
        .port_stp_state_set     = rtldsa_port_stp_state_set,
-       .port_fast_age          = rtldsa_930x_fast_age,
+       .port_fast_age          = rtldsa_930x_fast_age_old,
        .port_mst_state_set     = rtldsa_port_mst_state_set,
 
        .port_vlan_filtering    = rtldsa_vlan_filtering,