]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
bridge tests: Test for #216510
authorkp <kp@FreeBSD.org>
Sun, 26 Apr 2020 16:27:03 +0000 (16:27 +0000)
committerkp <kp@FreeBSD.org>
Sun, 26 Apr 2020 16:27:03 +0000 (16:27 +0000)
commitaa14143cf020886735b989ad24412269684d68f0
tree49df7378038e4fefb026de8f78ac0db0bac69e3c
parent4b1249e2de42c67786e49e3abeede7fb5972d3e5
bridge tests: Test for #216510

We used to have an issue with recursive locking with
net.link.bridge.inherit_mac. This causes us to send an ARP request while
we hold the BRIDGE_LOCK, which used to cause us to acquire the
BRIDGE_LOCK again. We can't re-acquire it, so this caused a panic.

Now that we no longer need to acquire the BRIDGE_LOCK for
bridge_transmit() this should no longer panic. Test this.

PR: 216510
Reviewed by: emaste, philip
MFC after: 2 months
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D24251
tests/sys/net/if_bridge_test.sh