mirror of
https://github.com/netbirdio/wireguard-go.git
synced 2026-05-22 17:08:51 -07:00
device: clarify that MaxBatchSizeOverride=0 means 'no override', not 'unlimited'
This commit is contained in:
+4
-2
@@ -7,8 +7,10 @@ package device
|
||||
|
||||
// MaxBatchSizeOverride, when nonzero, replaces the per-Device batch size used
|
||||
// to size eager buffer allocations in RoutineReceiveIncoming and
|
||||
// RoutineReadFromTUN. Changes affect Devices created after this assignment.
|
||||
// Use SetMaxBatchSizeOverride to change it safely at runtime.
|
||||
// RoutineReadFromTUN. Zero means "do not override" (Devices fall back to the
|
||||
// larger of bind.BatchSize() and tun.BatchSize()); zero is NOT "unlimited".
|
||||
// Changes affect Devices created after this assignment; use
|
||||
// SetMaxBatchSizeOverride to set it.
|
||||
var MaxBatchSizeOverride uint32 = 0
|
||||
|
||||
// SetPreallocatedBuffersPerPool sets the cap on the number of buffers held by
|
||||
|
||||
Reference in New Issue
Block a user