Skip to content

Commit 986d7cc

Browse files
viviendavem330
authored andcommitted
net: dsa: assign a CPU port to DSA port
DSA ports also need to have a dedicated CPU port assigned to them, because they need to know where to egress frames targeting the CPU, e.g. To_Cpu frames received on a Marvell Tag port. Signed-off-by: Vivien Didelot <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 0ea54dd commit 986d7cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/dsa/dsa2.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ static int dsa_tree_setup_default_cpu(struct dsa_switch_tree *dst)
241241
for (port = 0; port < ds->num_ports; port++) {
242242
dp = &ds->ports[port];
243243

244-
if (dsa_port_is_user(dp))
244+
if (dsa_port_is_user(dp) || dsa_port_is_dsa(dp))
245245
dp->cpu_dp = dst->cpu_dp;
246246
}
247247
}

0 commit comments

Comments
 (0)