diff --git a/net/dsa/legacy.c b/net/dsa/legacy.c index cb54b81d0bd9e68629dbc742e1242686fbcfb83e..42a7b85b84e1f66e83387867e6a3eea750647277 100644 --- a/net/dsa/legacy.c +++ b/net/dsa/legacy.c @@ -194,7 +194,7 @@ static int dsa_switch_setup_one(struct dsa_switch *ds, ds->ports[i].dn = cd->port_dn[i]; ds->ports[i].cpu_dp = dst->cpu_dp; - if (dsa_is_user_port(ds, i)) + if (!dsa_is_user_port(ds, i)) continue; ret = dsa_slave_create(&ds->ports[i]);