nixos/networkd: allow configuring AckFilter for CAKE qdisc

The CAKE section for systemd.network units allows configuring whether or
not redundant ACKs should be dropped. This option corresponds to the
respective tc-cake(8) params "ack-filter", "ack-filter-aggressive" or
"no-ack-filter".

Add support for these values in the `cakeConfig` module so that users
can configure it.
This commit is contained in:
Patrick Steinhardt 2023-10-29 11:27:48 +01:00 committed by tomf
parent 8ebee6a764
commit a8617e2b0d

View File

@ -1293,6 +1293,7 @@ let
"FirewallMark" "FirewallMark"
"Wash" "Wash"
"SplitGSO" "SplitGSO"
"AckFilter"
]) ])
(assertValueOneOf "AutoRateIngress" boolValues) (assertValueOneOf "AutoRateIngress" boolValues)
(assertInt "OverheadBytes") (assertInt "OverheadBytes")
@ -1325,6 +1326,7 @@ let
(assertRange "FirewallMark" 1 4294967295) (assertRange "FirewallMark" 1 4294967295)
(assertValueOneOf "Wash" boolValues) (assertValueOneOf "Wash" boolValues)
(assertValueOneOf "SplitGSO" boolValues) (assertValueOneOf "SplitGSO" boolValues)
(assertValueOneOf "AckFilter" (boolValues ++ ["aggressive"]))
]; ];
sectionControlledDelay = checkUnitConfig "ControlledDelay" [ sectionControlledDelay = checkUnitConfig "ControlledDelay" [