Page MenuHomeFreeBSD

bridge tests: Avoid building a switching loop
ClosedPublic

Authored by kp on May 31 2020, 7:20 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Feb 7, 9:02 PM
Unknown Object (File)
Sat, Feb 7, 6:20 PM
Unknown Object (File)
Sat, Feb 7, 5:06 PM
Unknown Object (File)
Sat, Jan 31, 10:52 AM
Unknown Object (File)
Jan 7 2026, 9:15 PM
Unknown Object (File)
Jan 6 2026, 7:39 PM
Unknown Object (File)
Dec 28 2025, 6:00 AM
Unknown Object (File)
Dec 25 2025, 3:36 PM

Details

Summary

Enable STP before bringing the bridges up. This avoids a switching loop,
which has a tendency to drown out progress in userspace processes,
especially on single-core systems.

Only check that we have indeed shut down one of the looped interfaces

PR: 246448

Diff Detail

Lint
Lint Warnings
SeverityLocationCodeMessage
Warningtests/sys/net/if_bridge_test.sh:CHMOD1Invalid Executable
Unit
No Test Coverage
Build Status
Buildable 31427
Build 29046: arc lint + arc unit

Event Timeline

kp requested review of this revision.May 31 2020, 7:20 PM

We no longer require jq

LGTM.

Minor nit: any chance jails a and b can be named bridge_stp_a and bridge_stp_b to avoid potential clashes with other tests?

This revision is now accepted and ready to land.Jun 1 2020, 3:51 PM
This revision was landed with ongoing or failed builds.Jun 1 2020, 7:26 PM
This revision was automatically updated to reflect the committed changes.

Minor nit: any chance jails a and b can be named bridge_stp_a and bridge_stp_b to avoid potential clashes with other tests?

Yeah, but that should be its own commit.