pfctl tests: Test fairq configuration

We used to have a bug where pfctl could crash setting fairq queues. Test
this case and ensure it does not crash pfctl.

Reviewed by:	donner
MFC after:	1 week
Sponsored by:	Rubicon Communications, LLC ("Netgate")
Differential Revision:	https://reviews.freebsd.org/D30348
This commit is contained in:
Kristof Provost 2021-05-19 09:52:50 +02:00
parent dc78428796
commit 9938fcaa65
3 changed files with 5 additions and 0 deletions

View File

@ -0,0 +1,2 @@
altq on igb0 fairq bandwidth 1Gb queue { qLink }
queue qLink fairq(default)

View File

@ -0,0 +1,2 @@
altq on igb0 fairq bandwidth 1Gb tbrsize 36000 queue { qLink }
queue qLink fairq( default )

View File

@ -116,3 +116,4 @@ PFCTL_TEST(1002, "Set timeout interval")
PFCTL_TEST(1003, "ALTQ")
PFCTL_TEST(1004, "ALTQ with Codel")
PFCTL_TEST(1005, "PR 231323")
PFCTL_TEST(1006, "pfctl crashes with certain fairq configurations")