Class: Nl::Linux::NetShaper::Messages::DumpCapGetReply

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:



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

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:



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

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

#support_burst ⇒ Integer

The device supports a maximum burst size.

Returns:

  • (Integer)

See Also:



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

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

#support_bw_max ⇒ Integer

The device supports maximum B/W shaping.

Returns:

  • (Integer)

See Also:



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

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:



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

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:



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

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:



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

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:



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

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

#support_priority ⇒ Integer

The device supports priority scheduling.

Returns:

  • (Integer)

See Also:



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

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

#support_weight ⇒ Integer

The device supports weighted round robin scheduling.

Returns:

  • (Integer)

See Also:



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

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