]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: fix spurious error message when unoffloaded port leaves bridge
authorAlvin Šipraga <alsi@bang-olufsen.dk>
Tue, 12 Oct 2021 11:27:31 +0000 (13:27 +0200)
committerJakub Kicinski <kuba@kernel.org>
Tue, 12 Oct 2021 23:11:23 +0000 (16:11 -0700)
commit89a6152264208148920223dfc6618a3931114066
treea287c5a3a997eae33b1f6995178b67e3a3482f61
parent237160a4824a6777fc26686e39449505505fbe34
net: dsa: fix spurious error message when unoffloaded port leaves bridge

Flip the sign of a return value check, thereby suppressing the following
spurious error:

  port 2 failed to notify DSA_NOTIFIER_BRIDGE_LEAVE: -EOPNOTSUPP

... which is emitted when removing an unoffloaded DSA switch port from a
bridge.

Fixes: 53bafe0bd42f ("net: dsa: Unset vlan_filtering when ports leave the bridge")
Signed-off-by: Alvin Šipraga <alsi@bang-olufsen.dk>
Reviewed-by: Vladimir Oltean <olteanv@gmail.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Link: https://lore.kernel.org/r/20211012112730.3429157-1-alvin@pqrs.dk
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/dsa/switch.c