Skip to content

Commit 743fcc2

Browse files
lunndavem330
authored andcommitted
net: dsa: mv88e6xxx: Print offending port when vlan check fails
When testing if a VLAN is one more than one bridge, we print an error message that the VLAN is already in use somewhere else. Print both the new port which would like the VLAN, and the port which already has it, to aid debugging. Signed-off-by: Andrew Lunn <andrew@lunn.ch> Reviewed-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent cd88646 commit 743fcc2

File tree

1 file changed

+2
-2
lines changed
  • drivers/net/dsa/mv88e6xxx

1 file changed

+2
-2
lines changed

drivers/net/dsa/mv88e6xxx/chip.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1151,8 +1151,8 @@ static int mv88e6xxx_port_check_hw_vlan(struct dsa_switch *ds, int port,
11511151
if (!dsa_to_port(ds, i)->bridge_dev)
11521152
continue;
11531153

1154-
dev_err(ds->dev, "p%d: hw VLAN %d already used by %s\n",
1155-
port, vlan.vid,
1154+
dev_err(ds->dev, "p%d: hw VLAN %d already used by port %d in %s\n",
1155+
port, vlan.vid, i,
11561156
netdev_name(dsa_to_port(ds, i)->bridge_dev));
11571157
err = -EOPNOTSUPP;
11581158
goto unlock;

0 commit comments

Comments
 (0)