From aa8eff129d114bdb364ce95d3826f60a84f8af14 Mon Sep 17 00:00:00 2001 From: Bernardo Meurer Date: Sat, 6 May 2023 00:37:44 -0400 Subject: [PATCH] nixos/networkd: add TransmitQueues and TransmitQueueLength These are relevant when using networkd to configure CAN networks Co-authored-by: Martin Weinelt --- nixos/modules/system/boot/networkd.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/nixos/modules/system/boot/networkd.nix b/nixos/modules/system/boot/networkd.nix index 2341b2ab83d3..52413a13f07b 100644 --- a/nixos/modules/system/boot/networkd.nix +++ b/nixos/modules/system/boot/networkd.nix @@ -70,6 +70,9 @@ let "CombinedChannels" "RxBufferSize" "TxBufferSize" + "ReceiveQueues" + "TransmitQueues" + "TransmitQueueLength" ]) (assertValueOneOf "MACAddressPolicy" ["persistent" "random" "none"]) (assertMacAddress "MACAddress") @@ -96,6 +99,9 @@ let (assertRange "CombinedChannels" 1 4294967295) (assertInt "RxBufferSize") (assertInt "TxBufferSize") + (assertRange "ReceiveQueues" 1 4096) + (assertRange "TransmitQueues" 1 4096) + (assertRange "TransmitQueueLength" 1 4294967294) ]; };