]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: ipv4: make udp_v4_early_demux explicitly return drop reason
authorAntoine Tenart <atenart@kernel.org>
Mon, 15 Sep 2025 09:19:54 +0000 (11:19 +0200)
committerJakub Kicinski <kuba@kernel.org>
Sat, 20 Sep 2025 00:35:51 +0000 (17:35 -0700)
commit1c7e4a618509476658bafba35fffb3a5cfb213b1
treea852b023e6a5233a55eac12e9e07b55903423751
parentb73b8146d7ff68e245525adb944a4c998d423d59
net: ipv4: make udp_v4_early_demux explicitly return drop reason

udp_v4_early_demux already returns drop reasons as it either returns 0
or ip_mc_validate_source, which itself returns drop reasons. Its return
value is also already used as a drop reason itself.

Makes this explicit by making it return drop reasons.

Signed-off-by: Antoine Tenart <atenart@kernel.org>
Reviewed-by: David Ahern <dsahern@kernel.org>
Link: https://patch.msgid.link/20250915091958.15382-2-atenart@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/net/udp.h
net/ipv4/ip_input.c
net/ipv4/udp.c