package fifo
import "gvisor.dev/gvisor/pkg/tcpip/link/qdisc/fifo"
Package fifo provides the implementation of FIFO queuing discipline that queues all outbound packets and asynchronously dispatches them to the lower link endpoint in the order that they were queued.
Index ¶
Constants ¶
const ( // BatchSize is the number of packets to write in each syscall. It is 47 // because when GVisorGSO is in use then a single 65KB TCP segment can get // split into 46 segments of 1420 bytes and a single 216 byte segment. BatchSize = 47 )
Functions ¶
func New ¶
func New(lower stack.LinkWriter, n int, queueLen int) stack.QueueingDiscipline
New creates a new fifo queuing discipline with the n queues with maximum capacity of queueLen.
+checklocksignore: we don't have to hold locks during initialization.
Source Files ¶
fifo.go packet_buffer_circular_list.go
- Version
- v0.0.0-20250516225637-16bb0d3588bf (latest)
- Published
- May 16, 2025
- Platform
- linux/amd64
- Imports
- 5 packages
- Last checked
- 1 hour ago –
Tools for package owners.