Class: Nl::Linux::Netdev::Messages::DoQueueGetReply
- Inherits:
-
Genl::Message
- Object
- Raw::Message
- Genl::Message
- Nl::Linux::Netdev::Messages::DoQueueGetReply
- 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 napi_id dmabuf io_uring xsk lease])
Instance Attribute Summary
Attributes included from StructuredPayload
Instance Method Summary collapse
-
#dmabuf ⇒ Integer
ID of the dmabuf attached to this queue, if any.
-
#id ⇒ Integer
Queue index; most queue types are indexed like a C array, with indexes starting at 0 and ending at queue count - 1.
-
#ifindex ⇒ Integer
ifindex of the netdevice to which the queue belongs.
-
#io_uring ⇒ AttributeSets::IoUringProviderInfo
io_uring memory provider information.
-
#lease ⇒ AttributeSets::Lease
A queue from a virtual device can have a lease which refers to another queue from a physical device.
-
#napi_id ⇒ Integer
ID of the NAPI instance which services this queue.
-
#type ⇒ Integer
Queue type as rx, tx.
-
#xsk ⇒ AttributeSets::XskInfo
XSK information for this queue, if any.
Methods inherited from Genl::Message
Methods inherited from Raw::Message
#append_attribute, decode, #initialize
Methods included from StructuredPayload
Constructor Details
This class inherits a constructor from Nl::Raw::Message
Instance Method Details
#dmabuf ⇒ Integer
ID of the dmabuf attached to this queue, if any.
2118 |
# File 'nl-linux/generated/nl/linux/netdev.rb', line 2118 def dmabuf; attributes[:"dmabuf"]&.value; end |
#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.
2096 |
# File 'nl-linux/generated/nl/linux/netdev.rb', line 2096 def id; attributes[:"id"]&.value; end |
#ifindex ⇒ Integer
ifindex of the netdevice to which the queue belongs.
2101 |
# File 'nl-linux/generated/nl/linux/netdev.rb', line 2101 def ifindex; attributes[:"ifindex"]&.value; end |
#io_uring ⇒ AttributeSets::IoUringProviderInfo
io_uring memory provider information.
2123 |
# File 'nl-linux/generated/nl/linux/netdev.rb', line 2123 def io_uring; attributes[:"io_uring"]&.value; end |
#lease ⇒ AttributeSets::Lease
A queue from a virtual device can have a lease which refers to another queue from a physical device. This is useful for memory providers and AF_XDP operations which take an ifindex and queue id to allow applications to bind against virtual devices in containers.
2136 |
# File 'nl-linux/generated/nl/linux/netdev.rb', line 2136 def lease; attributes[:"lease"]&.value; end |
#napi_id ⇒ Integer
ID of the NAPI instance which services this queue.
2113 |
# File 'nl-linux/generated/nl/linux/netdev.rb', line 2113 def napi_id; attributes[:"napi_id"]&.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.
2108 |
# File 'nl-linux/generated/nl/linux/netdev.rb', line 2108 def type; attributes[:"type"]&.value; end |
#xsk ⇒ AttributeSets::XskInfo
XSK information for this queue, if any.
2128 |
# File 'nl-linux/generated/nl/linux/netdev.rb', line 2128 def xsk; attributes[:"xsk"]&.value; end |