From mboxrd@z Thu Jan 1 00:00:00 1970 From: Patrick McHardy Subject: Re: [PATCH 2.6] cache align qdisc data Date: Tue, 03 Aug 2004 22:42:44 +0200 Sender: netdev-bounce@oss.sgi.com Message-ID: <410FF8C4.7010705@trash.net> References: <410FAE42.2050909@trash.net> <20040803083820.711c917c@dell_ss3.pdx.osdl.net> <410FE4DD.5000306@trash.net> <20040803133139.43107fd3@dell_ss3.pdx.osdl.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: "David S. Miller" , netdev@oss.sgi.com Return-path: To: Stephen Hemminger In-Reply-To: <20040803133139.43107fd3@dell_ss3.pdx.osdl.net> Errors-to: netdev-bounce@oss.sgi.com List-Id: netdev.vger.kernel.org Stephen Hemminger wrote: >That was some old messing around, that got in there... >Here is the correct patch. > > The hunks are still there. > >@@ -1554,7 +1554,6 @@ hfsc_init_qdisc(struct Qdisc *sch, struc > 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 @@ hfsc_dump_qdisc(struct Qdisc *sch, struc > 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; >