diff options
| author | Linus Walleij <linusw@kernel.org> | 2026-09-03 23:45:31 +0200 |
|---|---|---|
| committer | Paolo Abeni <pabeni@redhat.com> | 2026-09-08 12:35:21 +0200 |
| commit | b856c552f556bc0341c1dbe0bf88e630fd1dc4b7 (patch) | |
| tree | 03b1aeb1e4feece5ace104e80a37c1eb18ea45dd /scripts | |
| parent | baa26841cb9a2cdc7e0e99d6854a4e3359bf7393 (diff) | |
| download | linux-b856c552f556bc0341c1dbe0bf88e630fd1dc4b7.tar.gz linux-b856c552f556bc0341c1dbe0bf88e630fd1dc4b7.zip | |
net: ethernet: cortina: Count dropped frames as NAPI work
The RX loop only consumes budget when it successfully delivers a frame.
Error paths keep consuming descriptors without reducing the budget, so a
stream of bad frames can process the entire receive ring in one poll.
Move the budget accounting to a common end-of-frame path. This counts
each completed frame as NAPI work whether it was delivered or dropped,
matching the behavior of the vendor driver.
Fixes: 4d5ae32f5e1e ("net: ethernet: Add a driver for Gemini gigabit ethernet")
Assisted-by: LLM
Signed-off-by: Linus Walleij <linusw@kernel.org>
Link: https://patch.msgid.link/20260903-gemini-ethernet-fixes-v2-3-2bbbd598ca6e@kernel.org
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions
