gso and gro with uring on send/receive for udp

This commit is contained in:
Ryan Huber
2025-11-03 09:59:45 +00:00
parent 770147264d
commit b394112ad9
16 changed files with 4403 additions and 56 deletions

View File

@@ -271,7 +271,10 @@ func (f *Interface) listenOut(i int) {
fwPacket := &firewall.Packet{}
nb := make([]byte, 12, 12)
li.ListenOut(func(fromUdpAddr netip.AddrPort, payload []byte) {
li.ListenOut(func(fromUdpAddr netip.AddrPort, payload []byte, release func()) {
if release != nil {
defer release()
}
f.readOutsidePackets(fromUdpAddr, nil, plaintext[:0], payload, h, fwPacket, lhh, nb, i, ctCache.Get(f.l))
})
}