realtek: refactor keep vlan tag setup, fix tagged forwarding
[openwrt/openwrt.git] / target / linux / realtek / files-5.10 / drivers / net / dsa / rtl83xx / debugfs.c
index 6dd064c95bda52b4bf3176e4fbb60394ca4b83b1..9a7c7714c64e7e4390221e34684c4ee33da2f2b3 100644 (file)
@@ -482,10 +482,6 @@ static int rtl838x_dbgfs_port_init(struct dentry *parent, struct rtl838x_switch_
 
                debugfs_create_x32("storm_rate_bc", 0644, port_dir,
                                (u32 *)(RTL838X_SW_BASE + RTL838X_STORM_CTRL_PORT_BC(port)));
-
-               debugfs_create_x32("vlan_port_tag_sts_ctrl", 0644, port_dir,
-                               (u32 *)(RTL838X_SW_BASE + RTL838X_VLAN_PORT_TAG_STS_CTRL 
-                               + (port << 2)));
        } else {
                debugfs_create_x32("storm_rate_uc", 0644, port_dir,
                                (u32 *)(RTL838X_SW_BASE + RTL839X_STORM_CTRL_PORT_UC_0(port)));
@@ -495,10 +491,6 @@ static int rtl838x_dbgfs_port_init(struct dentry *parent, struct rtl838x_switch_
 
                debugfs_create_x32("storm_rate_bc", 0644, port_dir,
                                (u32 *)(RTL838X_SW_BASE + RTL839X_STORM_CTRL_PORT_BC_0(port)));
-
-               debugfs_create_x32("vlan_port_tag_sts_ctrl", 0644, port_dir,
-                               (u32 *)(RTL838X_SW_BASE + RTL839X_VLAN_PORT_TAG_STS_CTRL
-                               + (port << 2)));
        }
 
        debugfs_create_u32("id", 0444, port_dir, (u32 *)&priv->ports[port].dp->index);