From 1a48e014e2c3b3ae84d323096a74f4459848c352 Mon Sep 17 00:00:00 2001 From: Matt Layher Date: Tue, 22 Aug 2023 10:27:53 -0400 Subject: [PATCH] nixos/routnerr-3: Ethernet tuning --- nixos/routnerr-3/networking.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/nixos/routnerr-3/networking.nix b/nixos/routnerr-3/networking.nix index e336534..104d67a 100644 --- a/nixos/routnerr-3/networking.nix +++ b/nixos/routnerr-3/networking.nix @@ -10,7 +10,14 @@ let Type = "ether"; MACAddress = mac; }; - linkConfig.Name = name; + linkConfig = { + Name = name; + + # Hardware tuning. Note that wan0/wan1/mgmt0 all happen to support a max + # of 4096 since the NixOS option won't allow "max". + RxBufferSize = 4096; + TxBufferSize = 4096; + }; })); vlanNetdev = (name: