]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf90bbe2298ea1450ce5b847f305dabe0d6b2f09d
treef35d538d8ca40fc1e44649531d4c0d7cfcccda8f
parent7a403b4367fb3bc9c399b93af2324f9ed0f956e2
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