]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ipv4: Use rtnl_register_many().
authorKuniyuki Iwashima <kuniyu@amazon.com>
Mon, 14 Oct 2024 20:18:23 +0000 (13:18 -0700)
committerJakub Kicinski <kuba@kernel.org>
Wed, 16 Oct 2024 01:52:26 +0000 (18:52 -0700)
commit465bac91f953d343f5906db1d5f2d58e31b9ab4f
tree9596f0e17635e24ffd34a7c745bad916f099946a
parent803838a5f6c8d0f0cfc29e9eaa768ad88485ac7f
ipv4: Use rtnl_register_many().

We will remove rtnl_register() in favour of rtnl_register_many().

When it succeeds, rtnl_register_many() guarantees all rtnetlink types
in the passed array are supported, and there is no chance that a part
of message types is not supported.

Let's use rtnl_register_many() instead.

Signed-off-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Link: https://patch.msgid.link/20241014201828.91221-7-kuniyu@amazon.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/core/fib_rules.c
net/ipv4/devinet.c
net/ipv4/fib_frontend.c
net/ipv4/nexthop.c
net/ipv4/route.c