rtnetlink: do not depend on RTNL for many attributes
authorEric Dumazet <edumazet@google.com>
Fri, 3 May 2024 19:20:56 +0000 (19:20 +0000)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 7 May 2024 09:14:50 +0000 (11:14 +0200)
commit6747a5d4990b8c8d7392f7a06b7a4bb5f4ada80e
tree873371871b061c84626ef241b30cbf8fc59347fb
parent55a2c86c8db3d7aa2c1967efd37ed47d5ae37f43
rtnetlink: do not depend on RTNL for many attributes

Following device fields can be read locklessly
in rtnl_fill_ifinfo() :

type, ifindex, operstate, link_mode, mtu, min_mtu, max_mtu, group,
promiscuity, allmulti, num_tx_queues, gso_max_segs, gso_max_size,
gro_max_size, gso_ipv4_max_size, gro_ipv4_max_size, tso_max_size,
tso_max_segs, num_rx_queues.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
net/core/rtnetlink.c