summaryrefslogtreecommitdiff
path: root/scripts/basic/split-include.c
diff options
context:
space:
mode:
authorLinus Walleij <linusw@kernel.org>2026-09-03 23:45:32 +0200
committerPaolo Abeni <pabeni@redhat.com>2026-09-08 12:35:22 +0200
commit6520198c430c81bcc367f0dd5e32f2fb740b9d51 (patch)
tree24045deebc0303ac61638703596bac811e2e2093 /scripts/basic/split-include.c
parentb856c552f556bc0341c1dbe0bf88e630fd1dc4b7 (diff)
downloadlinux-6520198c430c81bcc367f0dd5e32f2fb740b9d51.tar.gz
linux-6520198c430c81bcc367f0dd5e32f2fb740b9d51.zip
net: ethernet: cortina: Count RX drops once per frame
The absence of a partial skb means either that the driver is not assembling a frame or that the current frame was already dropped. Consequently, repeated descriptor errors can increment rx_dropped more than once, while an orphaned descriptor chain can reach EOF without being counted at all. Track the dropping state across NAPI polls. Clear it at frame boundaries and route mapping failures and orphaned continuations through the common drop path so each discarded frame is counted exactly once. Fixes: 4d5ae32f5e1e ("net: ethernet: Add a driver for Gemini gigabit ethernet") Reported-by: Joe Damato <joe@dama.to> Closes: https://lore.kernel.org/netdev/apdK5aMmvYssz35F@devvm20253.cco0.facebook.com/ Assisted-by: LLM Signed-off-by: Linus Walleij <linusw@kernel.org> Link: https://patch.msgid.link/20260903-gemini-ethernet-fixes-v2-4-2bbbd598ca6e@kernel.org Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'scripts/basic/split-include.c')
0 files changed, 0 insertions, 0 deletions