net_sched: sch_fq: implement lockless fq_dump()
authorEric Dumazet <edumazet@google.com>
Thu, 18 Apr 2024 07:32:35 +0000 (07:32 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 19 Apr 2024 10:34:07 +0000 (11:34 +0100)
commit24bcc307679031079986fa0d30382cfc959b5593
tree2909cebfc65d7eac8878c7077c864f4ae035a0f1
parentfdf412374379bed2532b7180675ee177310be5db
net_sched: sch_fq: implement lockless fq_dump()

Instead of relying on RTNL, fq_dump() can use READ_ONCE()
annotations, paired with WRITE_ONCE() in fq_change()

v2: Addressed Simon feedback in V1: https://lore.kernel.org/netdev/20240416181915.GT2320920@kernel.org/

Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/sch_fq.c