Class: Nl::Linux::Netdev::AttributeSets::QueueId

Inherits:
AttributeSet
  • Object
show all
Defined in:
nl-linux/generated/nl/linux/netdev.rb

Defined Under Namespace

Classes: Attribute, Id, Type

Constant Summary

Constants inherited from AttributeSet

AttributeSet::SELECTOR_NAMES

Class Method Summary collapse

Instance Method Summary collapse

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.

Parameters:

  • name (Symbol)

Returns:



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.

Parameters:

  • type (Integer)

Returns:



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.

Returns:

  • (Integer)

See Also:



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.

Returns:

  • (Integer)

See Also:



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

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