google / google/gvisor

During IP fragmentation, evaluate whether we should be using WritePacket or WritePackets

Open
#3,884 0 comments 0 reactions 0 assignees View on GitHub
area: networking type: enhancement
Dominant language
Go
Stars
19.3k
Forks
2k
Avg merge
3d 5h
Merged PRs (30d)
264

Description

**Description**

Currently when we do IP fragmentation, we create the fragment one by one and send them to the Link layer using `WritePacket`. Instead, we could create a list of fragment and send them all at once using `WritePacket`. This is faster but will cost more memory.

**Do you have a specific solution in mind?**

We could create a stack.PacketBufferList and feed it to WritePackets().

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.