bridge tests: Test for #216510
authorKristof Provost <kp@FreeBSD.org>
Sun, 26 Apr 2020 16:27:03 +0000 (16:27 +0000)
committerKristof Provost <kp@FreeBSD.org>
Sun, 26 Apr 2020 16:27:03 +0000 (16:27 +0000)
commit5377560783d95b92fce3bea3caac37d2860b1d48
tree49df7378038e4fefb026de8f78ac0db0bac69e3c
parentfffd27e5f3b9700b6556a8c4fbd9503593a5ba33
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