Skip to content

net_sched: act: extend RCU use in dump() methods

Eric Dumazet netdev 2 versions – Applied

Status from this message: This series was applied to netdev/net-next.git (main)

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest11 patches 0 repliesApplied 11/11
  2. v111 patches 4 repliesSuperseded

Patches in v2 All 11 applied

#Subject and filesSizeRepliesApplied
1/11net_sched: act: annotate data-races in tcf_lastuse_update() and tcf_tm_dump()include/net/act_api.h+14 -90 repliesApplied
2/11net_sched: act_connmark: use RCU in tcf_connmark_dump()include/net/tc_act/tc_connmark.h net/sched/act_connmark.c+11 -80 repliesApplied
3/11net_sched: act_csum: use RCU in tcf_csum_dump()include/net/tc_act/tc_csum.h net/sched/act_csum.c+10 -90 repliesApplied
4/11net_sched: act_ct: use RCU in tcf_ct_dump()include/net/tc_act/tc_ct.h net/sched/act_ct.c+16 -160 repliesApplied
5/11net_sched: act_ctinfo: use atomic64_t for three countersinclude/net/tc_act/tc_ctinfo.h net/sched/act_ctinfo.c+14 -110 repliesApplied
6/11net_sched: act_ctinfo: use RCU in tcf_ctinfo_dump()include/net/tc_act/tc_ctinfo.h net/sched/act_ctinfo.c+12 -120 repliesApplied
7/11net_sched: act_mpls: use RCU in tcf_mpls_dump()include/net/tc_act/tc_mpls.h net/sched/act_mpls.c+11 -110 repliesApplied
8/11net_sched: act_nat: use RCU in tcf_nat_dump()include/net/tc_act/tc_nat.h net/sched/act_nat.c+13 -130 repliesApplied
9/11net_sched: act_pedit: use RCU in tcf_pedit_dump()include/net/tc_act/tc_pedit.h net/sched/act_pedit.c+11 -100 repliesApplied
10/11net_sched: act_police: use RCU in tcf_police_dump()include/net/tc_act/tc_police.h net/sched/act_police.c+11 -100 repliesApplied
11/11net_sched: act_skbedit: use RCU in tcf_skbedit_dump()include/net/tc_act/tc_skbedit.h net/sched/act_skbedit.c+10 -110 repliesApplied

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 net-next 00/11] net_sched: act: extend RCU use in dump() methods

We are trying to get away from central RTNL in favor of fine-grained mutexes. While looking at net/sched, I found that act already uses RCU in the fast path for the most cases, and could also be used in dump() methods.

This series is not complete and will be followed by a second one.

v2: fix act_nat patch (Simon)
v1: https://lore.kernel.org/netdev/[email protected]/

Eric Dumazet (11):
net_sched: act: annotate data-races in tcf_lastuse_update() and

	tcf_tm_dump()

net_sched: act_connmark: use RCU in tcf_connmark_dump()
net_sched: act_csum: use RCU in tcf_csum_dump()
net_sched: act_ct: use RCU in tcf_ct_dump()
net_sched: act_ctinfo: use atomic64_t for three counters
net_sched: act_ctinfo: use RCU in tcf_ctinfo_dump()
net_sched: act_mpls: use RCU in tcf_mpls_dump()
net_sched: act_nat: use RCU in tcf_nat_dump()
net_sched: act_pedit: use RCU in tcf_pedit_dump()
net_sched: act_police: use RCU in tcf_police_dump()
net_sched: act_skbedit: use RCU in tcf_skbedit_dump()

 include/net/act_api.h			  | 23 ++++++++++-------
 include/net/tc_act/tc_connmark.h |  1 +
 include/net/tc_act/tc_csum.h	  |  1 +
 include/net/tc_act/tc_ct.h 	  |  2 +-
 include/net/tc_act/tc_ctinfo.h   |  7 +++---
 include/net/tc_act/tc_mpls.h	  |  1 +
 include/net/tc_act/tc_nat.h	  |  1 +
 include/net/tc_act/tc_pedit.h	  |  1 +
 include/net/tc_act/tc_police.h   |  3 ++-
 include/net/tc_act/tc_skbedit.h  |  1 +
 net/sched/act_connmark.c		  | 18 ++++++++------
 net/sched/act_csum.c			  | 18 +++++++-------
 net/sched/act_ct.c 			  | 30 +++++++++++------------
 net/sched/act_ctinfo.c 		  | 42 +++++++++++++++++---------------
 net/sched/act_mpls.c			  | 21 ++++++++--------
 net/sched/act_nat.c			  | 25 +++++++++----------
 net/sched/act_pedit.c			  | 20 +++++++--------
 net/sched/act_police.c 		  | 18 +++++++-------
 net/sched/act_skbedit.c		  | 20 +++++++--------
 19 files changed, 133 insertions(+), 120 deletions(-)

--
2.50.0.727.gbf7dc18ff4-goog