Class: Nl::Linux::Netdev::Messages::DoQueueCreateRequest
- Inherits:
-
Genl::Message
- Object
- Raw::Message
- Genl::Message
- Nl::Linux::Netdev::Messages::DoQueueCreateRequest
- Defined in:
- nl-linux/generated/nl/linux/netdev.rb
Overview
Create a new queue for the given netdevice. Whether this operation is supported depends on the device and the driver.
Requires CAP_NET_ADMIN in the initial user namespace.
Constant Summary collapse
- TYPE =
16- FIXED_HEADER =
nil- ATTRIBUTE_SET =
AttributeSets::Queue
- ATTRIBUTES =
Ractor.make_shareable(%i[ifindex type lease])
Instance Attribute Summary
Attributes included from StructuredPayload
Instance Method Summary collapse
-
#ifindex ⇒ Integer
ifindex of the netdevice to which the queue belongs.
-
#lease ⇒ AttributeSets::Lease
A queue from a virtual device can have a lease which refers to another queue from a physical device.
-
#type ⇒ Integer
Queue type as rx, tx.
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
#ifindex ⇒ Integer
ifindex of the netdevice to which the queue belongs.
2652 |
# File 'nl-linux/generated/nl/linux/netdev.rb', line 2652 def ifindex; attributes[:"ifindex"]&.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.
2667 |
# File 'nl-linux/generated/nl/linux/netdev.rb', line 2667 def lease; attributes[:"lease"]&.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.
2659 |
# File 'nl-linux/generated/nl/linux/netdev.rb', line 2659 def type; attributes[:"type"]&.value; end |