Skip to content

Commit

Permalink
realtek: remove unused FDB print routing
Browse files Browse the repository at this point in the history
remove fdb_dump debugging function

Signed-off-by: Birger Koblitz <git@birger-koblitz.de>
  • Loading branch information
Birger Koblitz authored and ynezz committed May 7, 2021
1 parent cf4edab commit d497262
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions target/linux/realtek/files-5.4/drivers/net/dsa/rtl83xx/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit d497262

Please sign in to comment.