Thread (12 messages) flat view 12 messages, 3 authors, 2004-08-04

Re: [PATCH 2.6] cache align qdisc data

From: Patrick McHardy <hidden>
Date: 2004-08-03 19:17:49

Stephen Hemminger wrote:
This patch has qdisc code use the same interface as the netdevice code
to cache align the object private data.
 
These two hunks look bogus.
quoted hunk ↗ jump to hunk
diff -Nru a/net/sched/sch_hfsc.c b/net/sched/sch_hfsc.c
--- a/net/sched/sch_hfsc.c	2004-07-27 11:03:02 -07:00
+++ b/net/sched/sch_hfsc.c	2004-07-27 11:03:02 -07:00
@@ -1554,7 +1554,6 @@
	qopt = RTA_DATA(opt);

	memset(q, 0, sizeof(struct hfsc_sched));
-	sch->stats_lock = &sch->dev->queue_lock;

	q->defcls = qopt->defcls;
	for (i = 0; i < HFSC_HSIZE; i++)
@@ -1674,7 +1673,7 @@
	RTA_PUT(skb, TCA_OPTIONS, sizeof(qopt), &qopt);

	sch->stats.qlen = sch->q.qlen;
-	if (qdisc_copy_stats(skb, &sch->stats, sch->stats_lock) < 0)
+	if (qdisc_copy_stats(skb, &sch->stats, &sch->dev->queue_lock) < 0)
		goto rtattr_failure;

	return skb->len;
 
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help