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)
Mon, Jan 6, 10:30 AM
Unknown Object (File)
Dec 9 2024, 2:56 AM
Unknown Object (File)
Dec 8 2024, 2:31 AM
Unknown Object (File)
Dec 3 2024, 7:31 PM
Unknown Object (File)
Oct 14 2024, 9:27 AM
Unknown Object (File)
Oct 6 2024, 9:40 PM
Unknown Object (File)
Oct 3 2024, 7:41 PM
Unknown Object (File)
Oct 3 2024, 6:20 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.