Page MenuHomeFreeBSD

tests/netgraph: Tests for ng_bridge
ClosedPublic

Authored by donner on Jun 4 2021, 6:55 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Oct 29, 10:03 AM
Unknown Object (File)
Oct 3 2024, 12:14 PM
Unknown Object (File)
Oct 1 2024, 1:07 PM
Unknown Object (File)
Oct 1 2024, 7:22 AM
Unknown Object (File)
Sep 28 2024, 10:43 AM
Unknown Object (File)
Sep 27 2024, 12:52 PM
Unknown Object (File)
Sep 27 2024, 6:07 AM
Unknown Object (File)
Sep 24 2024, 4:05 PM
Subscribers

Details

Summary

Test functionality of ng_bridge(4):

  • replicating traffic to anything but the sending hook
  • persistence
  • detect loops
  • unicast to only one link of many
  • stretch to implementation limits on broadcast
  • uplink in private/classic vlan mode

Depends on D30629

Test Plan
# kyua test bridge
bridge:basic  ->  passed  [0.435s]
bridge:loop  ->  passed  [0.113s]
bridge:many_broadcasts  ->  expected_failure: netgraph queue full (191): 1 checks failed as expected; see output for more details  [12.604s]
bridge:many_unicasts  ->  expected_failure: response too large: 1 checks failed as expected; see output for more details  [54.589s]
bridge:persistence  ->  passed  [0.006s]
bridge:uplink_classic  ->  passed  [0.600s]
bridge:uplink_private  ->  passed  [0.601s]

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 39791
Build 36680: arc lint + arc unit

Event Timeline

donner requested review of this revision.Jun 4 2021, 6:55 PM
  • Remove cleanup functions. Does not work as expected.
  • Differentiate the tests by receiving hook expectations
  • Add tests for uplink in private vlan mode
donner edited the test plan for this revision. (Show Details)
  • Test for uplink in classic mode
donner edited the test plan for this revision. (Show Details)
donner edited the summary of this revision. (Show Details)
  • Add msg_handler in order to receive messages to util.
  • Add tests for the amount of learned mac addresses.
  • Either expect known problems not related to ng_brigde or pass if they are fixed.
This revision is now accepted and ready to land.Jun 8 2021, 9:38 AM
This revision was automatically updated to reflect the committed changes.