mirror of
https://github.com/slackhq/nebula.git
synced 2025-11-23 08:54:25 +01:00
big batch
This commit is contained in:
@@ -22,6 +22,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
const mtu = 9001
|
const mtu = 9001
|
||||||
|
const batch = 1024 //todo config!
|
||||||
|
|
||||||
type InterfaceConfig struct {
|
type InterfaceConfig struct {
|
||||||
HostMap *HostMap
|
HostMap *HostMap
|
||||||
@@ -264,8 +265,6 @@ func (f *Interface) listenOut(q int) {
|
|||||||
li = f.outside
|
li = f.outside
|
||||||
}
|
}
|
||||||
|
|
||||||
const batch = 64 //todo
|
|
||||||
|
|
||||||
ctCache := firewall.NewConntrackCacheTicker(f.conntrackCacheTimeout)
|
ctCache := firewall.NewConntrackCacheTicker(f.conntrackCacheTimeout)
|
||||||
lhh := f.lightHouse.NewRequestHandler()
|
lhh := f.lightHouse.NewRequestHandler()
|
||||||
|
|
||||||
@@ -313,7 +312,6 @@ func (f *Interface) listenOut(q int) {
|
|||||||
func (f *Interface) listenIn(reader overlay.TunDev, queueNum int) {
|
func (f *Interface) listenIn(reader overlay.TunDev, queueNum int) {
|
||||||
runtime.LockOSThread()
|
runtime.LockOSThread()
|
||||||
|
|
||||||
const batch = 128
|
|
||||||
originalPackets := make([][]byte, batch) //todo batch config
|
originalPackets := make([][]byte, batch) //todo batch config
|
||||||
for i := 0; i < batch; i++ {
|
for i := 0; i < batch; i++ {
|
||||||
originalPackets[i] = make([]byte, 0xffff)
|
originalPackets[i] = make([]byte, 0xffff)
|
||||||
|
|||||||
Reference in New Issue
Block a user