correctness

This commit is contained in:
JackDoan
2026-04-27 11:37:58 -05:00
parent 8fdd98f639
commit d1ea33659a
2 changed files with 4 additions and 1 deletions

View File

@@ -80,7 +80,7 @@ func newOffload(fd int, shutdownFd int) (*Offload, error) {
fd: fd,
shutdownFd: shutdownFd,
closed: atomic.Bool{},
readBuf: make([]byte, tunReadBufSize),
readBuf: make([]byte, virtioNetHdrLen+tunReadBufSize),
readPoll: [2]unix.PollFd{
{Fd: int32(fd), Events: unix.POLLIN},
{Fd: int32(shutdownFd), Events: unix.POLLIN},