feat(wireguard): WIREGUARD_GSO option to disable TUN vnet hdr batching (#3424)

This commit is contained in:
Tyler MacDonald
2026-08-04 21:31:22 -04:00
committed by GitHub
parent 297d6480d0
commit 0186f2ff4a
20 changed files with 260 additions and 11 deletions
+4
View File
@@ -25,6 +25,7 @@ func Test_Settings_SetDefaults(t *testing.T) {
MTU: device.DefaultMTU,
IPv6: ptr(false),
Implementation: "auto",
GSO: ptr(true),
},
},
"default endpoint port": {
@@ -39,6 +40,7 @@ func Test_Settings_SetDefaults(t *testing.T) {
MTU: device.DefaultMTU,
IPv6: ptr(false),
Implementation: "auto",
GSO: ptr(true),
},
},
"not empty settings": {
@@ -50,6 +52,7 @@ func Test_Settings_SetDefaults(t *testing.T) {
MTU: device.DefaultMTU,
IPv6: ptr(true),
Implementation: "userspace",
GSO: ptr(false),
},
expected: Settings{
InterfaceName: "wg1",
@@ -59,6 +62,7 @@ func Test_Settings_SetDefaults(t *testing.T) {
MTU: device.DefaultMTU,
IPv6: ptr(true),
Implementation: "userspace",
GSO: ptr(false),
},
},
}