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
F132635810: D31649.id94067.diff
Sat, Oct 18, 3:27 PM
Unknown Object (File)
Thu, Oct 16, 8:20 PM
Unknown Object (File)
Wed, Oct 15, 11:52 PM
Unknown Object (File)
Wed, Oct 15, 11:52 PM
Unknown Object (File)
Wed, Oct 15, 5:39 AM
Unknown Object (File)
Wed, Oct 15, 2:26 AM
Unknown Object (File)
Wed, Oct 15, 2:26 AM
Unknown Object (File)
Tue, Oct 14, 5:31 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
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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.