]> Gentwo Git Trees - linux/.git/commit
net: ipv4: simplify drop reason handling in ip_rcv_finish_core
authorAntoine Tenart <atenart@kernel.org>
Mon, 15 Sep 2025 09:19:55 +0000 (11:19 +0200)
committerJakub Kicinski <kuba@kernel.org>
Sat, 20 Sep 2025 00:35:51 +0000 (17:35 -0700)
commitdcc0e68ed300dae3325e323417773dd59a6a65db
tree894a55235f3a71654e43d5ecdcd41177dc4646cc
parent1c7e4a618509476658bafba35fffb3a5cfb213b1
net: ipv4: simplify drop reason handling in ip_rcv_finish_core

Instead of setting the drop reason to SKB_DROP_REASON_NOT_SPECIFIED
early and having to reset it each time it is overridden by a function
returned value, just set the drop reason to the expected value before
returning from ip_rcv_finish_core.

Signed-off-by: Antoine Tenart <atenart@kernel.org>
Link: https://patch.msgid.link/20250915091958.15382-3-atenart@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/ipv4/ip_input.c