From a8617e2b0d26b16e91b224db9ebcb4a500c515cf Mon Sep 17 00:00:00 2001 From: Patrick Steinhardt Date: Sun, 29 Oct 2023 11:27:48 +0100 Subject: 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. --- nixos/modules/system/boot/networkd.nix | 2 ++ 1 file changed, 2 insertions(+) (limited to 'nixos/modules/system') diff --git a/nixos/modules/system/boot/networkd.nix b/nixos/modules/system/boot/networkd.nix index b61db86cbaa2..33261021480f 100644 --- a/nixos/modules/system/boot/networkd.nix +++ b/nixos/modules/system/boot/networkd.nix @@ -1293,6 +1293,7 @@ let "FirewallMark" "Wash" "SplitGSO" + "AckFilter" ]) (assertValueOneOf "AutoRateIngress" boolValues) (assertInt "OverheadBytes") @@ -1325,6 +1326,7 @@ let (assertRange "FirewallMark" 1 4294967295) (assertValueOneOf "Wash" boolValues) (assertValueOneOf "SplitGSO" boolValues) + (assertValueOneOf "AckFilter" (boolValues ++ ["aggressive"])) ]; sectionControlledDelay = checkUnitConfig "ControlledDelay" [ -- cgit 1.4.1