gro

package
v0.0.0-...-f4396f3 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2024 License: Apache-2.0, MIT Imports: 7 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) StateFields

func (gd *GRO) StateFields() []string

func (*GRO) StateLoad

func (gd *GRO) StateLoad(ctx context.Context, stateSourceObject state.Source)

+checklocksignore

func (*GRO) StateSave

func (gd *GRO) StateSave(stateSinkObject state.Sink)

+checklocksignore

func (*GRO) StateTypeName

func (gd *GRO) StateTypeName() string

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