Documentation ¶
Overview ¶
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 ¶
View Source
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 )
Variables ¶
This section is empty.
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.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.