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
F161028956: D31649.id94109.diff
Mon, Jun 29, 11:32 PM
Unknown Object (File)
Fri, Jun 26, 7:50 PM
Unknown Object (File)
Tue, Jun 23, 11:13 PM
Unknown Object (File)
Tue, Jun 23, 1:16 AM
Unknown Object (File)
Mon, Jun 22, 11:01 PM
Unknown Object (File)
Mon, Jun 22, 2:57 PM
Unknown Object (File)
Sat, Jun 20, 7:52 PM
Unknown Object (File)
Wed, Jun 17, 2:45 AM

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.