Class: Nl::Linux::Netdev::Messages::DoQueueGetRequest

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

Overview

Get queue information from the kernel. Only configured queues will be reported (as opposed to all available hardware queues).

Constant Summary collapse

TYPE =
10
FIXED_HEADER =
nil
ATTRIBUTE_SET =
AttributeSets::Queue
ATTRIBUTES =
Ractor.make_shareable(%i[id ifindex type])

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

#id ⇒ Integer

Queue index; most queue types are indexed like a C array, with indexes starting at 0 and ending at queue count - 1. Queue indexes are scoped to an interface and queue type.

Returns:

  • (Integer)

See Also:



2072
# File 'nl-linux/generated/nl/linux/netdev.rb', line 2072

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

#ifindex ⇒ Integer

ifindex of the netdevice to which the queue belongs.

Returns:

  • (Integer)

See Also:



2077
# File 'nl-linux/generated/nl/linux/netdev.rb', line 2077

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

#type ⇒ Integer

Queue type as rx, tx. Each queue type defines a separate ID space. XDP TX queues allocated in the kernel are not linked to NAPIs and thus not listed. AF_XDP queues will have more information set in the xsk attribute.

Known enum values are defined in Enums::QueueType.

Returns:

  • (Integer)

See Also:



2084
# File 'nl-linux/generated/nl/linux/netdev.rb', line 2084

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