]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: macb: Use napi_schedule_irqoff() in IRQ handler
authorKevin Hao <haokexin@gmail.com>
Tue, 7 Apr 2026 00:45:39 +0000 (08:45 +0800)
committerJakub Kicinski <kuba@kernel.org>
Fri, 10 Apr 2026 03:17:31 +0000 (20:17 -0700)
commita17d3c3d0cb2827eaa87c43e748095e21f8cc1ab
tree54bf6dd7d22009ff3673eec04bd3f9a8d4902522
parent5ecbebc9483c61280153ebdceda5f4db7ae63d18
net: macb: Use napi_schedule_irqoff() in IRQ handler

For non-PREEMPT_RT kernels, the IRQ handler runs with interrupts
disabled, allowing the use of napi_schedule_irqoff() to save a pair of
local_irq_{save,restore} operations. For PREEMPT_RT kernels,
napi_schedule_irqoff() behaves identically to napi_schedule().

Signed-off-by: Kevin Hao <haokexin@gmail.com>
Link: https://patch.msgid.link/20260407-macb-napi-irqoff-v1-1-61bec60047d7@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/cadence/macb_main.c