gro

package
v0.0.0-...-c27c9a0 Latest Latest
Warning

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

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

Documentation

Overview

Package gro implements generic receive offload.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GRO

type GRO struct {
	Dispatcher stack.NetworkDispatcher
	// contains filtered or unexported fields
}

GRO coalesces incoming packets to increase throughput.

+stateify savable

func (*GRO) Enqueue

func (gd *GRO) Enqueue(pkt *stack.PacketBuffer)

Enqueue the packet in GRO. This does not flush packets; Flush() must be called explicitly for that.

pkt.NetworkProtocolNumber and pkt.RXChecksumValidated must be set.

func (*GRO) Flush

func (gd *GRO) Flush()

Flush sends all packets up the stack.

func (*GRO) Init

func (gd *GRO) Init(enabled bool)

Init initializes GRO.

func (*GRO) String

func (gd *GRO) String() string

String implements fmt.Stringer.

Jump to

Keyboard shortcuts

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