summaryrefslogtreecommitdiff
path: root/scripts/basic
diff options
context:
space:
mode:
authorLinus Walleij <linusw@kernel.org>2026-09-03 23:45:29 +0200
committerPaolo Abeni <pabeni@redhat.com>2026-09-08 12:35:21 +0200
commita0de06d0da78a3db53de65dfd7452cc6d111f703 (patch)
treebe35786b1b59ef7646c362fc52356377405e3a7e /scripts/basic
parentc51fe228121ee32d3a81242119a4195bed027b95 (diff)
downloadlinux-a0de06d0da78a3db53de65dfd7452cc6d111f703.tar.gz
linux-a0de06d0da78a3db53de65dfd7452cc6d111f703.zip
net: ethernet: cortina: Fix budget accounting
The gmac_rx() function returns the remaining NAPI budget, but its caller treats the return value as the number of packets received. An idle poll therefore reports a full budget and remains scheduled. Return the number of received packets instead. Preserve the existing free queue refill accounting by adding that count directly; continuing to subtract it from the budget would invert the refill behavior. Fixes: 4d5ae32f5e1e ("net: ethernet: Add a driver for Gemini gigabit ethernet") Link: https://lore.kernel.org/r/20260509-gemini-ethernet-fixes-v1-4-6c5d20ddc35b@kernel.org Link: https://lore.kernel.org/r/20260512131456.189452-1-pabeni@redhat.com Assisted-by: LLM Reviewed-by: Joe Damato <joe@dama.to> Signed-off-by: Linus Walleij <linusw@kernel.org> Link: https://patch.msgid.link/20260903-gemini-ethernet-fixes-v2-1-2bbbd598ca6e@kernel.org Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'scripts/basic')
0 files changed, 0 insertions, 0 deletions