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, Apr 1, 3:49 AM
Unknown Object (File)
Mar 7 2024, 11:57 PM
Unknown Object (File)
Jan 25 2024, 3:22 AM
Unknown Object (File)
Jan 16 2024, 10:31 PM
Unknown Object (File)
Dec 23 2023, 12:07 AM
Unknown Object (File)
Dec 14 2023, 12:21 AM
Unknown Object (File)
Dec 13 2023, 12:29 AM
Unknown Object (File)
Nov 28 2023, 11:08 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.