]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
udp: add drop count for packets in udp_prod_queue
authorMahdi Faramarzpour <mahdifrmx@gmail.com>
Thu, 29 Jan 2026 08:38:06 +0000 (12:08 +0330)
committerJakub Kicinski <kuba@kernel.org>
Sat, 31 Jan 2026 01:18:53 +0000 (17:18 -0800)
commit820990d66577de2afeed41f26250ba4fd8a59ca7
tree0b52f390119c31757d4d86d73addd8156cd52c5e
parented9b70040d7b22552f1392bed529ef0861f2a25c
udp: add drop count for packets in udp_prod_queue

This commit adds SNMP drop count increment for the packets in
per NUMA queues which were introduced in commit b650bf0977d3
("udp: remove busylock and add per NUMA queues"). note that SNMP
counters are incremented currently by the caller for skb. And
that these skbs on the intermediate queue cannot be counted
there so need similar logic in their error path.

Signed-off-by: Mahdi Faramarzpour <mahdifrmx@gmail.com>
Reviewed-by: Willem de Bruijn <willemb@google.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Link: https://patch.msgid.link/20260129083806.204752-1-mahdifrmx@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/ipv4/udp.c