]> git.ipfire.org Git - thirdparty/linux.git/commit
mpls: Convert RTM_GETNETCONF to RCU.
authorKuniyuki Iwashima <kuniyu@google.com>
Wed, 29 Oct 2025 17:33:03 +0000 (17:33 +0000)
committerJakub Kicinski <kuba@kernel.org>
Tue, 4 Nov 2025 01:40:52 +0000 (17:40 -0800)
commitfb2b77b9b1dbd90cf7db5580b15df40a20b42bd8
treef4ffbb2273b2fc9012dc33ad6cfb0c798b572eac
parentdde1b38e873cff70f0af36e884bbeb1b14a536ed
mpls: Convert RTM_GETNETCONF to RCU.

mpls_netconf_get_devconf() calls __dev_get_by_index(),
and this only depends on RTNL.

Let's convert mpls_netconf_get_devconf() to RCU and use
dev_get_by_index_rcu().

Note that nlmsg_new() is moved ahead to use GFP_KERNEL.

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