]> www.infradead.org Git - users/dwmw2/linux.git/commit
rtnetlink: Remove __rtnl_link_register()
authorKuniyuki Iwashima <kuniyu@amazon.com>
Fri, 8 Nov 2024 00:48:16 +0000 (16:48 -0800)
committerJakub Kicinski <kuba@kernel.org>
Tue, 12 Nov 2024 01:26:51 +0000 (17:26 -0800)
commit68297dbb967f87c3c92af9d2f652270f57c547c7
tree0c857f019c012be8a6c2e77fa70712980417dcc8
parent6b57ff21a3109b1dba2d286ff415463e6fb1fca3
rtnetlink: Remove __rtnl_link_register()

link_ops is protected by link_ops_mutex and no longer needs RTNL,
so we have no reason to have __rtnl_link_register() separately.

Let's remove it and call rtnl_link_register() from ifb.ko and
dummy.ko.

Note that both modules' init() work on init_net only, so we need
not export pernet_ops_rwsem and can use rtnl_net_lock() there.

Signed-off-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Link: https://patch.msgid.link/20241108004823.29419-4-kuniyu@amazon.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/dummy.c
drivers/net/ifb.c
include/net/rtnetlink.h
net/core/net_namespace.c
net/core/rtnetlink.c