Skip to content

net: sched: remove some tp->q usage

Jiri Pirko netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest9 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9net: sched: store Qdisc pointer in struct blockinclude/net/pkt_cls.h include/net/sch_generic.h net/sched/cls_api.c +13 more+23 -210 replies
2/9net: sched: store net pointer in block and introduce qdisc_net helperinclude/net/pkt_sched.h include/net/sch_generic.h net/sched/cls_api.c+9 -00 replies
3/9net: sched: introduce tcf_block_q and tcf_block_dev helpersinclude/net/pkt_cls.h+21 -00 replies
4/9net: sched: teach tcf_bind/unbind_filter to use block->qinclude/net/pkt_cls.h+17 -100 replies
5/9net: sched: ematch: obtain net pointer from blocksnet/sched/ematch.c+1 -10 replies
6/9net: sched: cls_u32: use block instead of q in tc_u_commonnet/sched/cls_u32.c+4 -80 replies
7/9net: sched: tcindex, fw, flow: use tcf_block_q helper to get struct Qdiscnet/sched/cls_flow.c net/sched/cls_fw.c net/sched/cls_tcindex.c+13 -40 replies
8/9net: sched: use tcf_block_q helper to get q pointer for sch_tree_lockinclude/net/sch_generic.h net/sched/sch_api.c+4 -50 replies
9/9net: sched: propagate q and parent from caller down to tcf_fill_nodenet/sched/cls_api.c+35 -200 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [patch net-next 0/9] net: sched: remove some tp->q usage

From: Jiri Pirko <[email protected]>

In order to prepare for block sharing, tcf_proto instances need to be independent on particular qdisc instances. This patchset takes care of removal of couple occurrences of tp->q usage.

Jiri Pirko (9):
net: sched: store Qdisc pointer in struct block
net: sched: store net pointer in block and introduce qdisc_net helper
net: sched: introduce tcf_block_q and tcf_block_dev helpers
net: sched: teach tcf_bind/unbind_filter to use block->q
net: sched: ematch: obtain net pointer from blocks
net: sched: cls_u32: use block instead of q in tc_u_common
net: sched: tcindex, fw, flow: use tcf_block_q helper to get struct
Qdisc
net: sched: use tcf_block_q helper to get q pointer for sch_tree_lock
net: sched: propagate q and parent from caller down to tcf_fill_node

 include/net/pkt_cls.h     | 52 +++++++++++++++++++++++++++++++----------
 include/net/pkt_sched.h   |  7 ++++++
 include/net/sch_generic.h |  5 ++--
 net/sched/cls_api.c       | 59 ++++++++++++++++++++++++++++++-----------------
 net/sched/cls_flow.c      |  7 ++++--
 net/sched/cls_fw.c        |  5 +++-
 net/sched/cls_tcindex.c   |  5 +++-
 net/sched/cls_u32.c       | 12 ++++------
 net/sched/ematch.c        |  2 +-
 net/sched/sch_api.c       |  6 +++--
 net/sched/sch_atm.c       |  4 ++--
 net/sched/sch_cbq.c       |  2 +-
 net/sched/sch_drr.c       |  2 +-
 net/sched/sch_dsmark.c    |  2 +-
 net/sched/sch_fq_codel.c  |  2 +-
 net/sched/sch_hfsc.c      |  4 ++--
 net/sched/sch_htb.c       |  4 ++--
 net/sched/sch_ingress.c   |  6 ++---
 net/sched/sch_multiq.c    |  2 +-
 net/sched/sch_prio.c      |  2 +-
 net/sched/sch_qfq.c       |  2 +-
 net/sched/sch_sfb.c       |  2 +-
 net/sched/sch_sfq.c       |  2 +-
 23 files changed, 127 insertions(+), 69 deletions(-)
Signature · 1 line
2.9.5