Page MenuHomeFreeBSD

pf tests: test ALTQ CBQ on top of if_vlan
ClosedPublic

Authored by kp on Aug 23 2021, 7:34 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Feb 9, 9:04 AM
Unknown Object (File)
Sun, Feb 9, 9:04 AM
Unknown Object (File)
Sun, Feb 9, 8:59 AM
Unknown Object (File)
Sun, Feb 9, 7:24 AM
Unknown Object (File)
Sat, Feb 1, 9:56 PM
Unknown Object (File)
Mon, Jan 27, 2:04 AM
Unknown Object (File)
Sun, Jan 26, 7:38 PM
Unknown Object (File)
Fri, Jan 24, 5:38 PM

Details

Summary

The main purpose of this test is to verify that we can use ALTQ on top
of if_vlan, but while we're here we also exercise the CBQ code. There's
already a basis test for HFSC, so it makes sense to test another
algorithm while we test if_vlan.

MFC after: 1 week
Sponsored by: Rubicon Communications, LLC ("Netgate")

Diff Detail

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

Event Timeline

kp requested review of this revision.Aug 23 2021, 7:34 PM
donner added inline comments.
tests/sys/netpfil/pf/altq.sh
134

How do you ensure, that the packets send before are still not delivered, so the queue is empty now? Looks like an scheduling dependency race condition.

How about:

  • prefill the queue (like now)
  • the secondary ping tries to send multiple packets within a short interval
  • check, if all packets of the secondary ping are received back

Make the test slightly more robust by sending 5 packets, all of which we expect
to get dropped and allowing one to make it through.

This revision is now accepted and ready to land.Aug 24 2021, 2:42 PM
This revision was automatically updated to reflect the committed changes.