Class: Nl::Linux::Netdev::Messages::DumpNapiGetReply
- Inherits:
-
Genl::Message
- Object
- Raw::Message
- Genl::Message
- Nl::Linux::Netdev::Messages::DumpNapiGetReply
- 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
Instance Method Summary collapse
-
#defer_hard_irqs ⇒ Integer
The number of consecutive empty polls before IRQ deferral ends and hardware IRQs are re-enabled.
-
#gro_flush_timeout ⇒ Integer
The timeout, in nanoseconds, of when to trigger the NAPI watchdog timer which schedules NAPI processing.
-
#id ⇒ Integer
ID of the NAPI instance.
-
#ifindex ⇒ Integer
ifindex of the netdevice to which NAPI instance belongs.
-
#irq ⇒ Integer
The associated interrupt vector number for the napi.
-
#irq_suspend_timeout ⇒ Integer
The timeout, in nanoseconds, of how long to suspend irq processing, if event polling finds events.
-
#pid ⇒ Integer
PID of the napi thread, if NAPI is configured to operate in threaded mode.
-
#threaded ⇒ Integer
Whether the NAPI is configured to operate in threaded polling mode.
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
#defer_hard_irqs ⇒ Integer
The number of consecutive empty polls before IRQ deferral ends and hardware IRQs are re-enabled.
2305 |
# File 'nl-linux/generated/nl/linux/netdev.rb', line 2305 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.
2310 |
# File 'nl-linux/generated/nl/linux/netdev.rb', line 2310 def gro_flush_timeout; attributes[:"gro_flush_timeout"]&.value; end |
#id ⇒ Integer
ID of the NAPI instance.
2290 |
# File 'nl-linux/generated/nl/linux/netdev.rb', line 2290 def id; attributes[:"id"]&.value; end |
#ifindex ⇒ Integer
ifindex of the netdevice to which NAPI instance belongs.
2285 |
# File 'nl-linux/generated/nl/linux/netdev.rb', line 2285 def ifindex; attributes[:"ifindex"]&.value; end |
#irq ⇒ Integer
The associated interrupt vector number for the napi
2295 |
# File 'nl-linux/generated/nl/linux/netdev.rb', line 2295 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
2315 |
# File 'nl-linux/generated/nl/linux/netdev.rb', line 2315 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.
2300 |
# File 'nl-linux/generated/nl/linux/netdev.rb', line 2300 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.
2322 |
# File 'nl-linux/generated/nl/linux/netdev.rb', line 2322 def threaded; attributes[:"threaded"]&.value; end |