aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/realtek/files-5.4
diff options
context:
space:
mode:
authorBirger Koblitz <git@birger-koblitz.de>2021-05-01 06:31:30 +0200
committerPetr Štetiar <ynezz@true.cz>2021-05-07 07:05:16 +0200
commitd4972627483afa6649f9c337df9d680a130b50b7 (patch)
tree1cb317b0912ab7109e59f465a083388fe79b0419 /target/linux/realtek/files-5.4
parentcf4edabefd649f4126b8150c01adec81a6c17410 (diff)
downloadupstream-d4972627483afa6649f9c337df9d680a130b50b7.tar.gz
upstream-d4972627483afa6649f9c337df9d680a130b50b7.tar.bz2
upstream-d4972627483afa6649f9c337df9d680a130b50b7.zip
realtek: remove unused FDB print routing
remove fdb_dump debugging function Signed-off-by: Birger Koblitz <git@birger-koblitz.de>
Diffstat (limited to 'target/linux/realtek/files-5.4')
-rw-r--r--target/linux/realtek/files-5.4/drivers/net/dsa/rtl83xx/common.c21
1 files changed, 0 insertions, 21 deletions
diff --git a/target/linux/realtek/files-5.4/drivers/net/dsa/rtl83xx/common.c b/target/linux/realtek/files-5.4/drivers/net/dsa/rtl83xx/common.c
index 6940afa7f2..d09894bbaf 100644
--- a/target/linux/realtek/files-5.4/drivers/net/dsa/rtl83xx/common.c
+++ b/target/linux/realtek/files-5.4/drivers/net/dsa/rtl83xx/common.c
@@ -18,27 +18,6 @@ extern const struct dsa_switch_ops rtl930x_switch_ops;
DEFINE_MUTEX(smi_lock);
-// TODO: unused
-static void dump_fdb(struct rtl838x_switch_priv *priv)
-{
- struct rtl838x_l2_entry e;
- int i;
-
- mutex_lock(&priv->reg_mutex);
-
- for (i = 0; i < priv->fib_entries; i++) {
- priv->r->read_l2_entry_using_hash(i >> 2, i & 0x3, &e);
-
- if (!e.valid) /* Check for invalid entry */
- continue;
-
- pr_debug("-> port %02d: mac %pM, vid: %d, rvid: %d, MC: %d, %d\n",
- e.port, &e.mac[0], e.vid, e.rvid, e.is_ip_mc, e.is_ipv6_mc);
- }
-
- mutex_unlock(&priv->reg_mutex);
-}
-
int rtl83xx_port_get_stp_state(struct rtl838x_switch_priv *priv, int port)
{
u32 msti = 0;