]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
gre: Count GRE packet drops
authorGal Pressman <gal@nvidia.com>
Thu, 9 Apr 2026 09:09:45 +0000 (12:09 +0300)
committerJakub Kicinski <kuba@kernel.org>
Sun, 12 Apr 2026 19:33:33 +0000 (12:33 -0700)
commit8632175ccb0c8cfc69b0f54c47b4b15b44c263ff
tree2a6de280e26cfb593e3f272d9bba2a6520b665ca
parent4e17b9b43322e1cc1db88c7457bf57a00ff45b32
gre: Count GRE packet drops

GRE is silently dropping packets without updating statistics.

In case of drop, increment rx_dropped counter to provide visibility into
packet loss. For the case where no GRE protocol handler is registered,
use rx_nohandler.

Reviewed-by: Dragos Tatulea <dtatulea@nvidia.com>
Reviewed-by: Nimrod Oren <noren@nvidia.com>
Signed-off-by: Gal Pressman <gal@nvidia.com>
Link: https://patch.msgid.link/20260409090945.1542440-1-gal@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/ipv4/gre_demux.c
net/ipv4/ip_gre.c
net/ipv6/ip6_gre.c