fifo

package
v0.0.0-...-bd0cbf8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 13, 2024 License: Apache-2.0, MIT Imports: 5 Imported by: 8

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL