[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240418073248.2952954-1-edumazet@google.com>
Date: Thu, 18 Apr 2024 07:32:34 +0000
From: Eric Dumazet <edumazet@...gle.com>
To: "David S . Miller" <davem@...emloft.net>, Jakub Kicinski <kuba@...nel.org>,
Paolo Abeni <pabeni@...hat.com>
Cc: Jamal Hadi Salim <jhs@...atatu.com>, Simon Horman <horms@...nel.org>,
"Toke Høiland-Jørgensen" <toke@...hat.com>, Cong Wang <xiyou.wangcong@...il.com>,
Jiri Pirko <jiri@...nulli.us>, netdev@...r.kernel.org, eric.dumazet@...il.com,
Eric Dumazet <edumazet@...gle.com>
Subject: [PATCH v2 net-next 00/14] net_sched: first series for RTNL-less qdisc dumps
Medium term goal is to implement "tc qdisc show" without needing
to acquire RTNL.
This first series makes the requested changes in 14 qdisc.
Notes :
- RTNL is still held in "tc qdisc show", more changes are needed.
- Qdisc returning many attributes might want/need to provide
a consistent set of attributes. If that is the case, their
dump() method could acquire the qdisc spinlock, to pair the
spinlock acquision in their change() method.
V2: Addressed Simon feedback (Thanks a lot Simon)
Eric Dumazet (14):
net_sched: sch_fq: implement lockless fq_dump()
net_sched: cake: implement lockless cake_dump()
net_sched: sch_cbs: implement lockless cbs_dump()
net_sched: sch_choke: implement lockless choke_dump()
net_sched: sch_codel: implement lockless codel_dump()
net_sched: sch_tfs: implement lockless etf_dump()
net_sched: sch_ets: implement lockless ets_dump()
net_sched: sch_fifo: implement lockless __fifo_dump()
net_sched: sch_fq_codel: implement lockless fq_codel_dump()
net_sched: sch_fq_pie: implement lockless fq_pie_dump()
net_sched: sch_hfsc: implement lockless accesses to q->defcls
net_sched: sch_hhf: implement lockless hhf_dump()
net_sched: sch_pie: implement lockless pie_dump()
net_sched: sch_skbprio: implement lockless skbprio_dump()
include/net/red.h | 12 ++---
net/sched/sch_cake.c | 110 ++++++++++++++++++++++-----------------
net/sched/sch_cbs.c | 20 +++----
net/sched/sch_choke.c | 21 ++++----
net/sched/sch_codel.c | 29 +++++++----
net/sched/sch_etf.c | 10 ++--
net/sched/sch_ets.c | 25 +++++----
net/sched/sch_fifo.c | 13 ++---
net/sched/sch_fq.c | 108 ++++++++++++++++++++++++--------------
net/sched/sch_fq_codel.c | 57 ++++++++++++--------
net/sched/sch_fq_pie.c | 61 ++++++++++++----------
net/sched/sch_hfsc.c | 9 ++--
net/sched/sch_hhf.c | 35 ++++++++-----
net/sched/sch_pie.c | 39 +++++++-------
net/sched/sch_skbprio.c | 8 +--
15 files changed, 323 insertions(+), 234 deletions(-)
--
2.44.0.683.g7961c838ac-goog
Powered by blists - more mailing lists