]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
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>
Tue, 2 Mar 2021 13:03:07 +0000 (14:03 +0100)
commit1b73cd3d0a7c9fa9b19e28a3bd8e79f405309348
tree3fc986be38e4113c8c4febf56dbaaaef6f3ad699
parente1132953649454ed7ae40e156c23de20d6a3827c
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

(cherry picked from commit 5377560783d95b92fce3bea3caac37d2860b1d48)
tests/sys/net/if_bridge_test.sh