Skip to contentSkip to conversation

: pkt_sched: Make classifier filter config changes multiqueue aware.

PATCH In review David Miller 1 participant 1 message Jul 14, 2008

Subsystems (3)
lore
Share & tools
lore

David Miller

author maintainer
#0 lore raw

PATCH 8/14 : pkt_sched: Make classifier filter config changes multiqueue aware.

tcf_proto_ops is modified to seperate change and delete requests into a validate and a commit stage. And in the case of change requests, a cancel operation is provided to release resources.

The classifier filter API layer is modified, in turn, to operate on all device TX queues. All of the operations are validated, and if all validations succeed then commits are performed.

---
 include/net/sch_generic.h |   15 +-
 net/sched/cls_api.c       |  463 +++++++++++++++++++++++++++++++--------------
 net/sched/cls_basic.c     |  183 +++++++++++++-----
 net/sched/cls_flow.c      |  267 ++++++++++++++++++---------
 net/sched/cls_fw.c        |  247 ++++++++++++++++++-------
 net/sched/cls_route.c     |  305 +++++++++++++++++++++---------
 net/sched/cls_rsvp.h      |  256 ++++++++++++++++++--------
 net/sched/cls_tcindex.c   |  314 ++++++++++++++++++++++---------
 net/sched/cls_u32.c       |  324 ++++++++++++++++++++++++--------
 9 files changed, 1692 insertions(+), 682 deletions(-)
include/net/sch_generic.h +11 -4
index 4d11b29..150ecd0 100644
@@ -131,10 +131,17 @@ struct tcf_proto_ops
 
 	unsigned long		(*get)(struct tcf_proto*, u32 handle);
 	void			(*put)(struct tcf_proto*, unsigned long);
-	int			(*change)(struct tcf_proto*, unsigned long,
-					u32 handle, struct nlattr **,
-					unsigned long *);
-	int			(*delete)(struct tcf_proto*, unsigned long);
+	int			(*validate_change)(struct tcf_proto*, unsigned long,
+						   u32 handle, struct nlattr **,
+						   unsigned long *);
+	void			(*commit_change)(struct tcf_proto*, unsigned long,
+						 u32 handle, struct nlattr **,
+						 unsigned long);
+	void			(*cancel_change)(struct tcf_proto*, unsigned long,
+						 u32 handle, struct nlattr **,
+						 unsigned long);
+	int			(*validate_delete)(struct tcf_proto *, unsigned long);
+	void			(*commit_delete)(struct tcf_proto *, unsigned long);
 	void			(*walk)(struct tcf_proto*, struct tcf_walker *arg);
 
 	/* rtnetlink specific */
net/sched/cls_api.c +316 -147

538 lines not on this page · raw message

net/sched/cls_basic.c +136 -47

266 lines not on this page · raw message

net/sched/cls_flow.c +180 -87

339 lines not on this page · raw message

net/sched/cls_fw.c +183 -64

330 lines not on this page · raw message

net/sched/cls_route.c +217 -88

443 lines not on this page · raw message

net/sched/cls_rsvp.h +181 -75

370 lines not on this page · raw message

net/sched/cls_tcindex.c +225 -89

430 lines not on this page · raw message

net/sched/cls_u32.c +243 -81

263 lines not on this page · raw message

The rest of this diff is not shown. View the raw message.

Signature · 1 line
1.5.6.2.255.gbed62

Part of the diff is not shown here. View the raw message.