small simplification

This commit is contained in:
JackDoan
2025-12-15 14:23:48 -06:00
parent 174ee003b5
commit 43d26d4fe5
5 changed files with 4 additions and 14 deletions

View File

@@ -352,7 +352,7 @@ func (f *Interface) listenIn(reader overlay.TunDev, queueNum int) {
now := time.Now()
for i, pkt := range packets[:n] {
outPackets[i].OutLen = -1
outPackets[i].ReadyToSend = false
f.consumeInsidePacket(pkt.Payload, fwPacket, nb, outPackets[i], queueNum, conntrackCache.Get(f.l), now)
reader.RecycleRxSeg(pkt, i == (n-1), queueNum) //todo handle err?
pkt.Reset()