summaryrefslogtreecommitdiffhomepage
path: root/tun/tcp_offload_linux.go
diff options
context:
space:
mode:
Diffstat (limited to 'tun/tcp_offload_linux.go')
-rw-r--r--tun/tcp_offload_linux.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/tun/tcp_offload_linux.go b/tun/tcp_offload_linux.go
index f3ffa75..a040e6f 100644
--- a/tun/tcp_offload_linux.go
+++ b/tun/tcp_offload_linux.go
@@ -72,11 +72,11 @@ type tcpGROTable struct {
func newTCPGROTable() *tcpGROTable {
t := &tcpGROTable{
- itemsByFlow: make(map[flowKey][]tcpGROItem, conn.DefaultBatchSize),
- itemsPool: make([][]tcpGROItem, conn.DefaultBatchSize),
+ itemsByFlow: make(map[flowKey][]tcpGROItem, conn.IdealBatchSize),
+ itemsPool: make([][]tcpGROItem, conn.IdealBatchSize),
}
for i := range t.itemsPool {
- t.itemsPool[i] = make([]tcpGROItem, 0, conn.DefaultBatchSize)
+ t.itemsPool[i] = make([]tcpGROItem, 0, conn.IdealBatchSize)
}
return t
}