]> www.infradead.org Git - users/jedix/linux-maple.git/commit
net: ip: make ip_route_input_slow() return drop reasons
authorMenglong Dong <menglong8.dong@gmail.com>
Thu, 7 Nov 2024 12:55:56 +0000 (20:55 +0800)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 12 Nov 2024 10:24:50 +0000 (11:24 +0100)
commit5b92112acd8e2ed84a4df653fc20575f4da6fa49
tree390b1a92c61bbb5e15b3ae4b70bde2cc9fa57630
parentd46f827016d891dbc234cb05c406180f77fb3b2d
net: ip: make ip_route_input_slow() return drop reasons

In this commit, we make ip_route_input_slow() return skb drop reasons,
and following new skb drop reasons are added:

  SKB_DROP_REASON_IP_INVALID_DEST

The only caller of ip_route_input_slow() is ip_route_input_rcu(), and we
adjust it by making it return -EINVAL on error.

Signed-off-by: Menglong Dong <dongml2@chinatelecom.cn>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
include/net/dropreason-core.h
net/ipv4/route.c