Class: Nl::Linux::Netdev::Messages::DoNapiGetReply

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

Overview

Get information about NAPI instances configured on the system.

Constant Summary collapse

TYPE =
11
FIXED_HEADER =
nil
ATTRIBUTE_SET =
AttributeSets::Napi
ATTRIBUTES =
Ractor.make_shareable(%i[ifindex id irq pid defer_hard_irqs gro_flush_timeout irq_suspend_timeout threaded])

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

#defer_hard_irqs ⇒ Integer

The number of consecutive empty polls before IRQ deferral ends and hardware IRQs are re-enabled.

Returns:

  • (Integer)

See Also:



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

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

#gro_flush_timeout ⇒ Integer

The timeout, in nanoseconds, of when to trigger the NAPI watchdog timer which schedules NAPI processing. Additionally, a non-zero value will also prevent GRO from flushing recent super-frames at the end of a NAPI cycle. This may add receive latency in exchange for reducing the number of frames processed by the network stack.

Returns:

  • (Integer)

See Also:



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

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

#id ⇒ Integer

ID of the NAPI instance.

Returns:

  • (Integer)

See Also:



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

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

#ifindex ⇒ Integer

ifindex of the netdevice to which NAPI instance belongs.

Returns:

  • (Integer)

See Also:



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

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

#irq ⇒ Integer

The associated interrupt vector number for the napi

Returns:

  • (Integer)

See Also:



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

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

#irq_suspend_timeout ⇒ Integer

The timeout, in nanoseconds, of how long to suspend irq processing, if event polling finds events

Returns:

  • (Integer)

See Also:



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

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

#pid ⇒ Integer

PID of the napi thread, if NAPI is configured to operate in threaded mode. If NAPI is not in threaded mode (i.e. uses normal softirq context), the attribute will be absent.

Returns:

  • (Integer)

See Also:



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

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

#threaded ⇒ Integer

Whether the NAPI is configured to operate in threaded polling mode. If this is set to enabled then the NAPI context operates in threaded polling mode. If this is set to busy-poll, then the threaded polling mode also busy polls.

Known enum values are defined in Enums::NapiThreaded.

Returns:

  • (Integer)

See Also:



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

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