net: dsa: mv88e6xxx: Print offending port when vlan check fails
authorAndrew Lunn <andrew@lunn.ch>
Thu, 9 Nov 2017 21:29:54 +0000 (22:29 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sat, 11 Nov 2017 10:33:11 +0000 (19:33 +0900)
commit743fcc283edd5d3a9d61abf96d4443329c826d28
treef35d538d8ca40fc1e44649531d4c0d7cfcccda8f
parentcd88646994bc0b537e0e7c89c53e674b58ba22b0
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>
drivers/net/dsa/mv88e6xxx/chip.c