relay: Batch forwarded packets on the relay host

This commit is contained in:
Ryan Huber committed 2026-10-17 18:53:36 +00:00
1 parent cda3710d5a
commit d3e21a8fc8
7 files changed
+398 -10

No files matched your search

+3
View File
@@ -384,6 +384,8 @@ type rxContext struct {
hostmapCache map[uint32]*HostInfo
lhh *LightHouseHandler
ctCache *firewall.ConntrackCacheTicker
relayBatch *batch.SendBatch
relayRemote netip.AddrPort
}
func newRxContext(f *Interface, q int) *rxContext {
@@ -414,6 +416,7 @@ func (f *Interface) listenOut(i int) {
}
flusher := func() {
f.flushRelayBatch(rxc)
if err := f.batchers[i].Flush(); err != nil {
f.l.Error("Failed to flush tun coalescer", "error", err)
}