mirror of
https://github.com/slackhq/nebula.git
synced 2026-11-15 10:56:52 +01:00
relay: Batch forwarded packets on the relay host
This commit is contained in:
1 parent
cda3710d5a
commit
d3e21a8fc8
7 files changed
+398
-10
No files matched your search
@@ -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)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user