Class: Nl::Linux::NetShaper::Messages::DoCapGetReply

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

Overview

Get the shaper capabilities supported by the given device for the specified scope.

Constant Summary collapse

TYPE =
5
FIXED_HEADER =
nil
ATTRIBUTE_SET =
AttributeSets::Caps
ATTRIBUTES =
Ractor.make_shareable(%i[ifindex scope support_metric_bps support_metric_pps support_nesting support_bw_min support_bw_max support_burst support_priority support_weight])

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

#ifindex ⇒ Integer

Interface index queried for shapers capabilities.

Returns:

  • (Integer)

See Also:



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

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

#scope ⇒ Integer

The scope to which the queried capabilities apply.

Known enum values are defined in Enums::Scope.

Returns:

  • (Integer)

See Also:



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

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

#support_burst ⇒ Integer

The device supports a maximum burst size.

Returns:

  • (Integer)

See Also:



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

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

#support_bw_max ⇒ Integer

The device supports maximum B/W shaping.

Returns:

  • (Integer)

See Also:



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

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

#support_bw_min ⇒ Integer

The device supports a minimum guaranteed B/W.

Returns:

  • (Integer)

See Also:



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

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

#support_metric_bps ⇒ Integer

The device accepts 'bps' metric for bw-min, bw-max and burst.

Returns:

  • (Integer)

See Also:



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

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

#support_metric_pps ⇒ Integer

The device accepts 'pps' metric for bw-min, bw-max and burst.

Returns:

  • (Integer)

See Also:



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

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

#support_nesting ⇒ Integer

The device supports nesting shaper belonging to this scope below 'node' scoped shapers. Only 'queue' and 'node' scope can have flag 'support-nesting'.

Returns:

  • (Integer)

See Also:



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

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

#support_priority ⇒ Integer

The device supports priority scheduling.

Returns:

  • (Integer)

See Also:



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

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

#support_weight ⇒ Integer

The device supports weighted round robin scheduling.

Returns:

  • (Integer)

See Also:



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

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