]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
mpls: Add mpls_route_input().
authorKuniyuki Iwashima <kuniyu@google.com>
Wed, 29 Oct 2025 17:33:00 +0000 (17:33 +0000)
committerJakub Kicinski <kuba@kernel.org>
Tue, 4 Nov 2025 01:40:49 +0000 (17:40 -0800)
commit73e40539399101667945ed8b8299d0fa67a4fca2
tree15d0ec47774458e103dedde00d4cc2d2163c3f4a
parent1fb462de9329731c17267c7ccf19619f22790a0a
mpls: Add mpls_route_input().

mpls_route_input_rcu() is called from mpls_forward() and
mpls_getroute().

The former is under RCU, and the latter is under RTNL, so
mpls_route_input_rcu() uses rcu_dereference_rtnl().

Let's use rcu_dereference() in mpls_route_input_rcu() and
add an RTNL variant for mpls_getroute().

Later, we will remove rtnl_dereference() there.

Signed-off-by: Kuniyuki Iwashima <kuniyu@google.com>
Reviewed-by: Guillaume Nault <gnault@redhat.com>
Link: https://patch.msgid.link/20251029173344.2934622-9-kuniyu@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/mpls/af_mpls.c