nlqdisc

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// nolint
	TCAUnspec = iota
	TCAKind
	TCAOptions
	TCAStats
	TCAXStats
	TCARate
	TCAFcnt
	TCAStats2
	TCAStab

	TCAStatsUnspec = iota
	TCAStatsBasic
	TCAStatsRateEst
	TCAStatsQueue
	TCAStatsApp
	TCAStatsRateEst64
)

Variables

View Source
var (
	Bytes      = "bytes"
	Packets    = "packets"
	Drops      = "drops"
	Qlen       = "qlen"
	Backlog    = "backlog"
	Overlimits = "overlimits"
)

Functions

This section is empty.

Types

type Probe

type Probe struct{}

func (*Probe) CollectOnce added in v1.0.0

func (p *Probe) CollectOnce() (map[string]map[uint32]uint64, error)

func (*Probe) Start

func (p *Probe) Start(_ context.Context) error

func (*Probe) Stop added in v1.0.0

func (p *Probe) Stop(_ context.Context) error

type QdiscInfo

type QdiscInfo struct {
	IfaceName   string
	Parent      uint32
	Handle      uint32
	Kind        string
	Bytes       uint64
	Packets     uint32
	Drops       uint32
	Requeues    uint32
	Overlimits  uint32
	GcFlows     uint64
	Throttled   uint64
	FlowsPlimit uint64
	Qlen        uint32
	Backlog     uint32
}

type TCFqQdStats

type TCFqQdStats struct {
	GcFlows             uint64
	HighprioPackets     uint64
	TCPRetrans          uint64
	Throttled           uint64
	FlowsPlimit         uint64
	PktsTooLong         uint64
	AllocationErrors    uint64
	TimeNextDelayedFlow int64
	Flows               uint32
	InactiveFlows       uint32
	ThrottledFlows      uint32
	UnthrottleLatencyNs uint32
}

See struct tc_fq_qd_stats /usr/include/linux/pkt_sched.h

type TCStats

type TCStats struct {
	Bytes      uint64
	Packets    uint32
	Drops      uint32
	Overlimits uint32
	Bps        uint32
	Pps        uint32
	Qlen       uint32
	Backlog    uint32
}

See struct tc_stats in /usr/include/linux/pkt_sched.h

type TCStats2

type TCStats2 struct {
	// struct gnet_stats_basic
	Bytes   uint64
	Packets uint32
	// struct gnet_stats_queue
	Qlen       uint32
	Backlog    uint32
	Drops      uint32
	Requeues   uint32
	Overlimits uint32
}

See /usr/include/linux/gen_stats.h

Jump to

Keyboard shortcuts

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