]> git.baikalelectronics.ru Git - kernel.git/commit
net: bridge: check port state before br_allowed_egress
authorNikolay Aleksandrov <nikolay@cumulusnetworks.com>
Fri, 24 Jan 2020 11:40:19 +0000 (13:40 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 24 Jan 2020 11:58:14 +0000 (12:58 +0100)
commit189a4e887c82f52e5e5171a80883ccd2682e1712
tree8b562d656072c41cf7e578a18d2db4c2443b3d6b
parentc4c5ce1f429f9185f05b41c424ba1ec34d326398
net: bridge: check port state before br_allowed_egress

If we make sure that br_allowed_egress is called only when we have
BR_STATE_FORWARDING state then we can avoid a test later when we add
per-vlan state.

Signed-off-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/bridge/br_forward.c