]> www.infradead.org Git - users/jedix/linux-maple.git/commit
gre: Drop ip_route_output_gre().
authorGuillaume Nault <gnault@redhat.com>
Wed, 18 Dec 2024 13:17:16 +0000 (14:17 +0100)
committerJakub Kicinski <kuba@kernel.org>
Fri, 20 Dec 2024 03:24:47 +0000 (19:24 -0800)
commit29b540795b42a3e610c0d5e9d908a8d6c1333676
tree0e2199edcc62f7d0de30d6332c620794c433e5fb
parent5155cbcdbf03f207095f9a3794942a25aa7e5f58
gre: Drop ip_route_output_gre().

We already have enough variants of ip_route_output*() functions. We
don't need a GRE specific one in the generic route.h header file.

Furthermore, ip_route_output_gre() is only used once, in ipgre_open(),
where it can be easily replaced by a simple call to
ip_route_output_key().

While there, and for clarity, explicitly set .flowi4_scope to
RT_SCOPE_UNIVERSE instead of relying on the implicit zero
initialisation.

Signed-off-by: Guillaume Nault <gnault@redhat.com>
Reviewed-by: Michal Swiatkowski <michal.swiatkowski@linux.intel.com>
Link: https://patch.msgid.link/ab7cba47b8558cd4bfe2dc843c38b622a95ee48e.1734527729.git.gnault@redhat.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/net/route.h
net/ipv4/ip_gre.c