Skip to content

: Make packet scheduler multiqueue aware.

David Miller netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest14 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/14: pkt_sched: Make API qdisc grafting code operate on explicit queues.net/sched/sch_api.c+17 -220 replies
2/14: pkt_sched: More refactoring of sched API qdisc grafting.net/sched/sch_api.c+74 -400 replies
3/14: pkt_sched: Manage qdisc_ops grab/release outside of qdisc_create.net/sched/sch_api.c+30 -240 replies
4/14: pkt_sched: Make classful ->graft() three stage.include/net/sch_generic.h net/sched/sch_api.c net/sched/sch_atm.c +9 more+247 -960 replies
5/14: pkt_sched: Make main qdisc configuration operations multiqueue aware.net/sched/sch_api.c+584 -2080 replies
6/14: pkt_sched: Make qdisc ->config() ops use validate/commit/cancel model.include/net/pkt_sched.h include/net/sch_generic.h net/sched/sch_api.c +11 more+561 -2330 replies
7/14: pkt_sched: Use __qdisc_lookup() more consistently and export.include/net/pkt_sched.h net/sched/sch_api.c+11 -70 replies
8/14: pkt_sched: Make classifier filter config changes multiqueue aware.include/net/sch_generic.h net/sched/cls_api.c net/sched/cls_basic.c +6 more+1692 -6820 replies
9/14: pkt_sched: qdisc_lookup() takes a netdev_queueinclude/net/pkt_sched.h net/sched/cls_api.c net/sched/sch_api.c+17 -180 replies
10/14: pkt_sched: Allocate anonymous qdisc handles in dev_queue namespace.net/sched/sch_api.c+3 -160 replies
11/14: pkt_sched: Make classifier filter dumping multiqueue aware.net/sched/cls_api.c+47 -300 replies
12/14: pkt_sched: Make Qdisc_class_ops->delete() validate+commit.include/net/sch_generic.h net/sched/sch_api.c net/sched/sch_atm.c +8 more+97 -430 replies
13/14: pkt_sched: Convert Qdisc_class_ops->change to validate/commit/cancel.include/net/gen_stats.h include/net/sch_generic.h net/core/gen_estimator.c +12 more+818 -3990 replies
14/14: pkt_sched: Rewrite tc_ctl_tclass() to be multiqueue aware.net/sched/sch_api.c+211 -810 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/14]: Make packet scheduler multiqueue aware.

Ok, here are the fruits of my weekend in a nutshell, it's pushed into the net-tx-2.6 tree:

1) Every configuration operation previded by qdiscs and classifiers is split into two or three operations:

Either:

		->validate_foo()
		->commit_foo()
		->cancel_foo()

Or just:

		->validate_foo()
		->commit_foo()

The deciding factor is whether validate_foo() allocates some resources which need to be liberated if we decide to no perform the commit operation.

2) The generic top-level operation code allocates an array of info blobs that record the progress of things.

3) First, we iterate over all queues and validate the operation.

4) If all validations pass, we iterate and commit the operation.

5) Else, we iterate and cancel the operation if necessary.

As you can see, this required surgery to a lot of the packet scheduler layer. I'm sure I got something wrong, but conceptually I think everything is sound.

At this point I've tested basic qdisc changes. For example on my workstation I'm using a PRIO with 3 bands pointing to various SFQ and TBF qdiscs.

So I haven't given the filter/classifier stuff much of a good testing yet.

My next plans are:

1) Integrate the feedback received over the weekend which I didn't have time to process yet.

2) Respin the tree against a fresh net-next-2.6

3) Implement "QUEUE_NUM" netlink attribute so that the user can request that packet scheduler operations apply to a specific queue only.

I think, frankly, this is ready to merge upstream even in it's current state. We'll have 3 months to test things more thoroughly and sort out any thinkos I added to the code.