nixos/systemd/networkd: allow passing flow control fields to link

This commit is contained in:
Charlie Moog 2025-04-28 10:41:52 -07:00
parent 3ddd6321af
commit 5781ef6de9
No known key found for this signature in database

View file

@ -100,6 +100,9 @@ let
"ReceiveQueues"
"TransmitQueues"
"TransmitQueueLength"
"RxFlowControl"
"TxFlowControl"
"AutoNegotiationFlowControl"
])
(assertValueOneOf "MACAddressPolicy" [
"persistent"
@ -137,6 +140,9 @@ let
(assertValueOneOf "GenericSegmentationOffload" boolValues)
(assertValueOneOf "GenericReceiveOffload" boolValues)
(assertValueOneOf "LargeReceiveOffload" boolValues)
(assertValueOneOf "RxFlowControl" boolValues)
(assertValueOneOf "TxFlowControl" boolValues)
(assertValueOneOf "AutoNegotiationFlowControl" boolValues)
(assertInt "RxChannels")
(assertRange "RxChannels" 1 4294967295)
(assertInt "TxChannels")