rtnetlink: do not depend on RTNL for IFLA_IFNAME output
authorEric Dumazet <edumazet@google.com>
Fri, 3 May 2024 19:20:53 +0000 (19:20 +0000)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 7 May 2024 09:14:50 +0000 (11:14 +0200)
commit8a58268133622c3d50155ac5798ad1d51d6bd3be
tree92bb5b42db50a3798b3063eb3947e0d213061e9d
parent698419ffb6fc83dd7b0359d9e8476e732967eed2
rtnetlink: do not depend on RTNL for IFLA_IFNAME output

We can use netdev_copy_name() to no longer rely on RTNL
to fetch dev->name.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
net/core/rtnetlink.c