diff options
author | Patrick Steinhardt <ps@pks.im> | 2023-10-29 11:27:48 +0100 |
---|---|---|
committer | tomf <tom@tom-fitzhenry.me.uk> | 2023-11-19 03:40:51 +1100 |
commit | a8617e2b0d26b16e91b224db9ebcb4a500c515cf (patch) | |
tree | 2c4a3b90ad592c54389914744ce4ac061abee2bc /nixos/modules/system/boot/networkd.nix | |
parent | 8ebee6a76472cffbf6cfe28b1c0ff29ae9bdf1d1 (diff) | |
download | nixpkgs-a8617e2b0d26b16e91b224db9ebcb4a500c515cf.tar nixpkgs-a8617e2b0d26b16e91b224db9ebcb4a500c515cf.tar.gz nixpkgs-a8617e2b0d26b16e91b224db9ebcb4a500c515cf.tar.bz2 nixpkgs-a8617e2b0d26b16e91b224db9ebcb4a500c515cf.tar.lz nixpkgs-a8617e2b0d26b16e91b224db9ebcb4a500c515cf.tar.xz nixpkgs-a8617e2b0d26b16e91b224db9ebcb4a500c515cf.tar.zst nixpkgs-a8617e2b0d26b16e91b224db9ebcb4a500c515cf.zip |
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.
Diffstat (limited to 'nixos/modules/system/boot/networkd.nix')
-rw-r--r-- | nixos/modules/system/boot/networkd.nix | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/nixos/modules/system/boot/networkd.nix b/nixos/modules/system/boot/networkd.nix index b61db86cbaa..33261021480 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" [ |