]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: macb: Replace open-coded implementation with napi_schedule()
authorKevin Hao <haokexin@gmail.com>
Thu, 2 Apr 2026 13:41:22 +0000 (21:41 +0800)
committerJakub Kicinski <kuba@kernel.org>
Fri, 3 Apr 2026 22:51:04 +0000 (15:51 -0700)
commitdc3bd465ea36af7fd6f9197c05353effc616145c
tree0c1b93d72a304b2b0ddc42b25c48daaef07f6c4b
parent779fae61a3c84bf5a086509558eb5b432fa5ab62
net: macb: Replace open-coded implementation with napi_schedule()

The driver currently duplicates the logic of napi_schedule() primarily
to include additional debug information. However, these debug details
are not essential for a specific driver and can be effectively obtained
through existing tracepoints in the networking core, such as
/sys/kernel/tracing/events/napi/napi_poll. Therefore, this patch
replaces the open-coded implementation with napi_schedule() to
simplify the driver's code.

Signed-off-by: Kevin Hao <haokexin@gmail.com>
Link: https://patch.msgid.link/20260402-macb-irq-v2-1-942d98ab1154@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/cadence/macb_main.c