]> www.infradead.org Git - users/jedix/linux-maple.git/commit
Revert "ipv6: Factorise ip6_route_multipath_add()."
authorKuniyuki Iwashima <kuniyu@amazon.com>
Fri, 16 May 2025 02:27:21 +0000 (19:27 -0700)
committerJakub Kicinski <kuba@kernel.org>
Wed, 21 May 2025 02:18:24 +0000 (19:18 -0700)
commit5e4a8cc7beb8567293e6d4230b14e95167759214
treec2d5c932ac62638ef0d517d6fb3529c310c31578
parentcefe6e131cc4f032110efe1687295e133f3d5964
Revert "ipv6: Factorise ip6_route_multipath_add()."

Commit 71c0efb6d12f ("ipv6: Factorise ip6_route_multipath_add().") split
a loop in ip6_route_multipath_add() so that we can put rcu_read_lock()
between ip6_route_info_create() and ip6_route_info_create_nh().

We no longer need to do so as ip6_route_info_create_nh() does not require
RCU now.

Let's revert the commit to simplify the code.

Signed-off-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Link: https://patch.msgid.link/20250516022759.44392-6-kuniyu@amazon.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/ipv6/route.c