Re: [PATCH 2/3] NET: [SCHED] Qdisc changes and sch_rr added for multiqueue

2007-06-18 Thread Patrick McHardy
PJ Waskiewicz wrote: diff --git a/net/sched/sch_prio.c b/net/sched/sch_prio.c index 6d7542c..44ecdc6 100644 --- a/net/sched/sch_prio.c +++ b/net/sched/sch_prio.c } +#ifdef CONFIG_NET_SCH_PRIO_MQ + /* setup queue to band mapping */ + if (q->bands < sch->dev->egress_subqueue_co

RE: [PATCH 2/3] NET: [SCHED] Qdisc changes and sch_rr added for multiqueue

2007-06-18 Thread Waskiewicz Jr, Peter P
> PJ Waskiewicz wrote: > > > > diff --git a/net/sched/sch_prio.c b/net/sched/sch_prio.c index > > 6d7542c..44ecdc6 100644 > > --- a/net/sched/sch_prio.c > > +++ b/net/sched/sch_prio.c > > } > > +#ifdef CONFIG_NET_SCH_PRIO_MQ > > + /* setup queue to band mapping */ > > + if (q->bands < sch-

Re: [PATCH 2/3] NET: [SCHED] Qdisc changes and sch_rr added for multiqueue

2007-06-18 Thread Patrick McHardy
Waskiewicz Jr, Peter P wrote: >>>+band = TC_H_MIN(band) - 1; >>>+if (band > q->bands) { >> >>You copied an off-by-one from an old sch_prio version here. > > > Hmm. This is the sch_prio from the first 2.6.23-dev tree. I'll resync > and make sure it's the correct one. Current 2.6.22-rc a

RE: [PATCH 2/3] NET: [SCHED] Qdisc changes and sch_rr added for multiqueue

2007-06-18 Thread Waskiewicz Jr, Peter P
> > Hmm. This is the sch_prio from the first 2.6.23-dev tree. I'll > > resync and make sure it's the correct one. > > Current 2.6.22-rc and net-2.6.23 have > > if (band >= q->bands) I just pulled 2.6.23 down, and see that is true. I must have had that left over. I'll fix that. > >

Re: [PATCH 2/3] NET: [SCHED] Qdisc changes and sch_rr added for multiqueue

2007-06-18 Thread Patrick McHardy
Waskiewicz Jr, Peter P wrote: Nested netlink attributes, like most qdisc use, instead of struct tc_rr_qopt (or additionally). The way you've done it makes it hard to add further attributes later. I'm going to need to think about this more, since I'm not immediately getting what you're ref

RE: [PATCH 2/3] NET: [SCHED] Qdisc changes and sch_rr added for multiqueue

2007-06-21 Thread Waskiewicz Jr, Peter P
> BTw, couldn't you just merge sch_rr with prio? AFAICT you > only need a new dequeue function, a new struct Qdisc_ops and > a MODULE_ALIAS. Ok, I have this somewhat working, but need to poll for some help from the community. I used MODULE_ALIAS("sch_rr") in sch_prio.c, and modprobe is happily

Re: [PATCH 2/3] NET: [SCHED] Qdisc changes and sch_rr added for multiqueue

2007-06-21 Thread Patrick McHardy
Waskiewicz Jr, Peter P wrote: BTw, couldn't you just merge sch_rr with prio? AFAICT you only need a new dequeue function, a new struct Qdisc_ops and a MODULE_ALIAS. Ok, I have this somewhat working, but need to poll for some help from the community. I used MODULE_ALIAS("sch_rr") in sch_prio.c

RE: [PATCH 2/3] NET: [SCHED] Qdisc changes and sch_rr added for multiqueue

2007-06-21 Thread Waskiewicz Jr, Peter P
> Please post the code. > Code is attached. Please forgive the attachment and any whitespace damage...currently using Doubtlook to send this (cringe). Thanks, -PJ Waskiewicz sch_prio.c Description: sch_prio.c

Re: [PATCH 2/3] NET: [SCHED] Qdisc changes and sch_rr added for multiqueue

2007-06-21 Thread Patrick McHardy
Waskiewicz Jr, Peter P wrote: Please post the code. Code is attached. Please forgive the attachment and any whitespace damage...currently using Doubtlook to send this (cringe). The code looks correct. Are you sure you had the config option enabled during your test? - To unsubscribe

RE: [PATCH 2/3] NET: [SCHED] Qdisc changes and sch_rr added for multiqueue

2007-06-21 Thread Waskiewicz Jr, Peter P
> Waskiewicz Jr, Peter P wrote: > >> Please post the code. > >> > >> > > > > Code is attached. Please forgive the attachment and any whitespace > > damage...currently using Doubtlook to send this (cringe). > > > > The code looks correct. Are you sure you had the config > option enabled

Re: [PATCH 2/3] NET: [SCHED] Qdisc changes and sch_rr added for multiqueue

2007-06-21 Thread Patrick McHardy
Waskiewicz Jr, Peter P wrote: The code looks correct. Are you sure you had the config option enabled during your test? Yes. This is the tc command I used to configure the qdisc (with q_rr.c attached from my patches iproute2 package): # tc qdisc add dev eth2 root handle 1: rr bands 8 RTNETLI

RE: [PATCH 2/3] NET: [SCHED] Qdisc changes and sch_rr added for multiqueue

2007-06-21 Thread Waskiewicz Jr, Peter P
> > Yes. This is the tc command I used to configure the qdisc (with > > q_rr.c attached from my patches iproute2 package): > > > > # tc qdisc add dev eth2 root handle 1: rr bands 8 RTNETLINK > answers: > > No such file or directory > > Again, I bet you don't have CONFIG_NET_SCH_RR enabled: Ch