Skip to contentSkip to conversation

doc: net: napi: Update documentation for napi_schedule_irqoff

PATCH Applied Sean Anderson 4 participants 4 messages Sep 30, 2024 – Oct 3, 2024

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 doc: net: napi: Update documentation for napi_schedule_irqoff

Since commit 8380c81d5c4f ("net: Treat __napi_schedule_irqoff() as __napi_schedule() on PREEMPT_RT"), napi_schedule_irqoff will do the right thing if IRQs are threaded. Therefore, there is no need to use IRQF_NO_THREAD.

---
https://lore.kernel.org/netdev/[email protected]/

 Documentation/networking/napi.rst | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
Documentation/networking/napi.rst +2 -3
index 7bf7b95c4f7a..dfa5d549be9c 100644
@@ -144,9 +144,8 @@ IRQ should only be unmasked after a successful call to napi_complete_done():
 
 napi_schedule_irqoff() is a variant of napi_schedule() which takes advantage
 of guarantees given by being invoked in IRQ context (no need to
-mask interrupts). Note that PREEMPT_RT forces all interrupts
-to be threaded so the interrupt may need to be marked ``IRQF_NO_THREAD``
-to avoid issues on real-time kernel configurations.
+mask interrupts). napi_schedule_irqoff() will fall back to napi_schedule() if
+IRQs are threaded (such as if ``PREEMPT_RT`` is enabled).
 
 Instance to queue mapping
 -------------------------
Signature · 1 line
2.35.1.1320.gc452695387.dirty
Reviewed-by on v1 1/1
#1 lore raw

Documentation/networking/napi.rst IRQ should only be unmasked after a successful call to napi_complete_done(): · line 148

Quoted 7 lines · Sean Anderson

napi_schedule_irqoff() is a variant of napi_schedule() which takes advantage of guarantees given by being invoked in IRQ context (no need to

Documentation/networking/napi.rst +2 -3
-mask interrupts). Note that PREEMPT_RT forces all interrupts
-to be threaded so the interrupt may need to be marked ``IRQF_NO_THREAD``
-to avoid issues on real-time kernel configurations.
+mask interrupts). napi_schedule_irqoff() will fall back to napi_schedule() if
+IRQs are threaded (such as if ``PREEMPT_RT`` is enabled).

LGTM, thanks!

Signature · 1 line
An old man doll... just what I always wanted! - Clara
#3 lore raw
In reply to Sean Anderson
This patch was applied to netdev/net.git (main) by Paolo Abeni <[email protected]>:

Hello:

This patch was applied to netdev/net.git (main)
by Paolo Abeni <[email protected]>:

Quoted 8 lines · On Mon, 30 Sep 2024 11:39:54 -0400 you wrote:

Since commit 8380c81d5c4f ("net: Treat __napi_schedule_irqoff() as __napi_schedule() on PREEMPT_RT"), napi_schedule_irqoff will do the right thing if IRQs are threaded. Therefore, there is no need to use IRQF_NO_THREAD.

[...]

Here is the summary with links:
- [net] doc: net: napi: Update documentation for napi_schedule_irqoff

    https://git.kernel.org/netdev/net/c/b63ad06ddddf

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html