Class: Nl::Linux::Netdev::AttributeSets::QueueId
- Inherits:
-
AttributeSet
- Object
- AttributeSet
- Nl::Linux::Netdev::AttributeSets::QueueId
- Defined in:
- nl-linux/generated/nl/linux/netdev.rb
Defined Under Namespace
Constant Summary
Constants inherited from AttributeSet
Class Method Summary collapse
-
.by_name(name) ⇒ Attribute
Looks up Attribute class by name.
-
.by_type(type) ⇒ Attribute
Looks up Attribute class by type value.
Instance Method Summary collapse
-
#id ⇒ Integer
Queue index; most queue types are indexed like a C array, with indexes starting at 0 and ending at queue count - 1.
-
#type ⇒ Integer
Queue type as rx, tx.
Methods inherited from AttributeSet
#<<, #[], build_attributes, decode, #encode, #initialize
Constructor Details
This class inherits a constructor from Nl::AttributeSet
Class Method Details
.by_name(name) ⇒ Attribute
Looks up Attribute class by name.
1505 |
# File 'nl-linux/generated/nl/linux/netdev.rb', line 1505 def by_name(name); BY_NAME.fetch(name); end |
.by_type(type) ⇒ Attribute
Looks up Attribute class by type value.
1511 |
# File 'nl-linux/generated/nl/linux/netdev.rb', line 1511 def by_type(type); BY_TYPE.fetch(type); end |
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.
1491 |
# File 'nl-linux/generated/nl/linux/netdev.rb', line 1491 def id; self[:"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.
1498 |
# File 'nl-linux/generated/nl/linux/netdev.rb', line 1498 def type; self[:"type"]&.value; end |