Class: Nl::Linux::NetShaper::Messages::DumpGetReply

Inherits:
Genl::Message show all
Defined in:
nl-linux/generated/nl/linux/net_shaper.rb

Overview

Get information about a shaper for a given device.

Constant Summary collapse

TYPE =
1
FIXED_HEADER =
nil
ATTRIBUTE_SET =
AttributeSets::NetShaper
ATTRIBUTES =
Ractor.make_shareable(%i[handle metric bw_min bw_max burst priority weight ifindex parent])

Instance Attribute Summary

Attributes included from StructuredPayload

#attributes, #fixed_header

Instance Method Summary collapse

Methods inherited from Genl::Message

decode

Methods inherited from Raw::Message

#append_attribute, decode, #initialize

Methods included from StructuredPayload

#encode, #initialize

Constructor Details

This class inherits a constructor from Nl::Raw::Message

Instance Method Details

#burst ⇒ Integer

Maximum burst-size for shaping. Should not be interpreted as a quantum.

Returns:

  • (Integer)

See Also:



697
# File 'nl-linux/generated/nl/linux/net_shaper.rb', line 697

def burst; attributes[:"burst"]&.value; end

#bw_max ⇒ Integer

Maximum bandwidth for the given shaper or 0 when unlimited.

Returns:

  • (Integer)

See Also:



691
# File 'nl-linux/generated/nl/linux/net_shaper.rb', line 691

def bw_max; attributes[:"bw_max"]&.value; end

#bw_min ⇒ Integer

Guaranteed bandwidth for the given shaper.

Returns:

  • (Integer)

See Also:



686
# File 'nl-linux/generated/nl/linux/net_shaper.rb', line 686

def bw_min; attributes[:"bw_min"]&.value; end

#handle ⇒ AttributeSets::Handle

Unique identifier for the given shaper inside the owning device.



674
# File 'nl-linux/generated/nl/linux/net_shaper.rb', line 674

def handle; attributes[:"handle"]&.value; end

#ifindex ⇒ Integer

Interface index owning the specified shaper.

Returns:

  • (Integer)

See Also:



716
# File 'nl-linux/generated/nl/linux/net_shaper.rb', line 716

def ifindex; attributes[:"ifindex"]&.value; end

#metric ⇒ Integer

Metric used by the given shaper for bw-min, bw-max and burst.

Known enum values are defined in Enums::Metric.

Returns:

  • (Integer)

See Also:



681
# File 'nl-linux/generated/nl/linux/net_shaper.rb', line 681

def metric; attributes[:"metric"]&.value; end

#parent ⇒ AttributeSets::Handle

Identifier for the parent of the affected shaper. Only needed for group operation.



722
# File 'nl-linux/generated/nl/linux/net_shaper.rb', line 722

def parent; attributes[:"parent"]&.value; end

#priority ⇒ Integer

Scheduling priority for the given shaper. The priority scheduling is applied to sibling shapers.

Returns:

  • (Integer)

See Also:



703
# File 'nl-linux/generated/nl/linux/net_shaper.rb', line 703

def priority; attributes[:"priority"]&.value; end

#weight ⇒ Integer

Relative weight for round robin scheduling of the given shaper. The scheduling is applied to all sibling shapers with the same priority.

Returns:

  • (Integer)

See Also:



711
# File 'nl-linux/generated/nl/linux/net_shaper.rb', line 711

def weight; attributes[:"weight"]&.value; end