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

rtnl_fill_ifinfo() can read dev->tx_queue_len locklessly,
granted we add corresponding READ_ONCE()/WRITE_ONCE() annotations.

Add missing READ_ONCE(dev->tx_queue_len) in teql_enqueue()

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