Fw: [Bug 201137] New: using traffic control with sfq cause kernel crash

2018-09-15 Thread Stephen Hemminger
Begin forwarded message: Date: Sat, 15 Sep 2018 08:43:09 + From: bugzilla-dae...@bugzilla.kernel.org To: step...@networkplumber.org Subject: [Bug 201137] New: using traffic control with sfq cause kernel crash https://bugzilla.kernel.org/show_bug.cgi?id=201137 Bug ID: 201137

[PATCH v2 iproute2-next 08/31] tc/sfq: add json support

2018-07-10 Thread Stephen Hemminger
From: Stephen Hemminger Convert to use JSON Signed-off-by: Stephen Hemminger --- tc/q_sfq.c | 65 -- 1 file changed, 39 insertions(+), 26 deletions(-) diff --git a/tc/q_sfq.c b/tc/q_sfq.c index 6a1d853b7c93..a813c055b92e 100644 --- a/tc/q_sf

[PATCH iproute2-next 9/9] tc/sfq: add json support

2018-07-09 Thread Stephen Hemminger
From: Stephen Hemminger Convert to use JSON Signed-off-by: Stephen Hemminger --- tc/q_sfq.c | 65 -- 1 file changed, 39 insertions(+), 26 deletions(-) diff --git a/tc/q_sfq.c b/tc/q_sfq.c index 6a1d853b7c93..cc8ce0dddf7e 100644 --- a/tc/q_sf

Re: [PATCH net-next v2] sched: sfq: drop packets after root qdisc lock is released

2017-08-28 Thread David Miller
From: gfree.w...@vip.163.com Date: Sat, 26 Aug 2017 22:58:58 +0800 > From: Gao Feng > > The commit 520ac30f4551 ("net_sched: drop packets after root qdisc lock > is released) made a big change of tc for performance. But there are > some points which are not changed in SFQ en

[PATCH net-next v2] sched: sfq: drop packets after root qdisc lock is released

2017-08-26 Thread gfree . wind
From: Gao Feng The commit 520ac30f4551 ("net_sched: drop packets after root qdisc lock is released) made a big change of tc for performance. But there are some points which are not changed in SFQ enqueue operation. 1. Fail to find the SFQ hash slot; 2. When the queue is full; Now use qdisc

Re: [PATCH net-next RESEND] sched: sfq: drop packets after root qdisc lock is released

2017-08-25 Thread Eric Dumazet
On Fri, 2017-08-25 at 15:43 +0800, gfree.w...@vip.163.com wrote: > From: Gao Feng > > The commit 520ac30f4551 ("net_sched: drop packets after root qdisc lock > is released) made a big change of tc for performance. But there are > some points which are not changed in SFQ en

[PATCH net-next RESEND] sched: sfq: drop packets after root qdisc lock is released

2017-08-25 Thread gfree . wind
From: Gao Feng The commit 520ac30f4551 ("net_sched: drop packets after root qdisc lock is released) made a big change of tc for performance. But there are some points which are not changed in SFQ enqueue operation. 1. Fail to find the SFQ hash slot; 2. When the queue is full; Now use qdisc

Re: [PATCH] net_sched/sfq: update hierarchical backlog when drop packet

2017-08-15 Thread David Miller
From: Konstantin Khlebnikov Date: Tue, 15 Aug 2017 16:37:04 +0300 > When sfq_enqueue() drops head packet or packet from another queue it > have to update backlog at upper qdiscs too. > > Signed-off-by: Konstantin Khlebnikov > Fixes: 2f5fb43f ("net_sched: update hierarchical backlog too") A

Re: [PATCH] net_sched/sfq: update hierarchical backlog when drop packet

2017-08-15 Thread Eric Dumazet
On Tue, 2017-08-15 at 17:33 +0300, Konstantin Khlebnikov wrote: > Nope. I'm not sure. But we have something similar in our 4.4 kernel > for a while. > > Also fq_codel and pfifo_head_drop do something similar tho this. > > Probably this might crash without "[PATCH 1/2] net_sched: call > qlen_noti

Re: [PATCH] net_sched/sfq: update hierarchical backlog when drop packet

2017-08-15 Thread Konstantin Khlebnikov
On 15.08.2017 17:09, Eric Dumazet wrote: On Tue, 2017-08-15 at 16:37 +0300, Konstantin Khlebnikov wrote: When sfq_enqueue() drops head packet or packet from another queue it have to update backlog at upper qdiscs too. Signed-off-by: Konstantin Khlebnikov Fixes: 2f5fb43f ("net_sched: update

Re: [PATCH] net_sched/sfq: update hierarchical backlog when drop packet

2017-08-15 Thread Eric Dumazet
On Tue, 2017-08-15 at 16:37 +0300, Konstantin Khlebnikov wrote: > When sfq_enqueue() drops head packet or packet from another queue it > have to update backlog at upper qdiscs too. > > Signed-off-by: Konstantin Khlebnikov > Fixes: 2f5fb43f ("net_sched: update hierarchical backlog too") > ---

[PATCH] net_sched/sfq: update hierarchical backlog when drop packet

2017-08-15 Thread Konstantin Khlebnikov
When sfq_enqueue() drops head packet or packet from another queue it have to update backlog at upper qdiscs too. Signed-off-by: Konstantin Khlebnikov Fixes: 2f5fb43f ("net_sched: update hierarchical backlog too") --- net/sched/sch_sfq.c |5 - 1 file changed, 4 insertions(+), 1 deleti

Re: [Patch net] net_sched: fix a use-after-free in sfq

2015-07-15 Thread David Miller
From: Cong Wang Date: Tue, 14 Jul 2015 11:21:57 -0700 > Fixes: 25331d6ce42b ("net: sched: implement qstat helper routines") > Cc: John Fastabend > Signed-off-by: Cong Wang > Signed-off-by: Cong Wang Applied. -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a

[Patch net] net_sched: fix a use-after-free in sfq

2015-07-14 Thread Cong Wang
Fixes: 25331d6ce42b ("net: sched: implement qstat helper routines") Cc: John Fastabend Signed-off-by: Cong Wang Signed-off-by: Cong Wang --- net/sched/sch_sfq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/sched/sch_sfq.c b/net/sched/sch_sfq.c index 7d14926..52f75a5 1

Re: [ANNOUNCE] ESFQ --> SFQ patches for Linux 2.6.24

2008-02-19 Thread Patrick McHardy
velopers hang out, 'netdev' is. And you have to post patches for review, not URL's point to the patches. It has to be int he email, in an applyable form so people can review the thing properly. Since SFQ is not exactly simple and I needed something like this myself, I followed Pa

Re: [NET_SCHED 00/04]: External SFQ classifiers/flow classifier

2008-02-04 Thread Corey Hickey
Patrick McHardy wrote: > You're missing protocol, handle etc. Try something like this: > > tc filter add dev eth0 protocol ip pref 1 parent 1: handle 1 \ > > flow hash keys dst divisor 1024 Thanks, the kernel accepts that. I guess I understand tc filter usage less than I thought I did.

Re: [NET_SCHED 00/04]: External SFQ classifiers/flow classifier

2008-02-04 Thread Patrick McHardy
Corey Hickey wrote: Patrick McHardy wrote: These patches add support for external classifiers to SFQ and add a new "flow" classifier, which can do hashing based on user-specified keys or deterministic mapping of keys to classes. Additionally there is a patch to make the SFQ queues v

Re: [NET_SCHED 00/04]: External SFQ classifiers/flow classifier

2008-02-02 Thread Corey Hickey
Patrick McHardy wrote: > These patches add support for external classifiers to SFQ and add a > new "flow" classifier, which can do hashing based on user-specified > keys or deterministic mapping of keys to classes. Additionally there > is a patch to make the SFQ queues

Re: [NET_SCHED 00/04]: External SFQ classifiers/flow classifier

2008-01-31 Thread David Miller
From: Patrick McHardy <[EMAIL PROTECTED]> Date: Thu, 31 Jan 2008 18:58:02 +0100 (MET) > These patches add support for external classifiers to SFQ and add a > new "flow" classifier, which can do hashing based on user-specified > keys or deterministic mapping of keys to cl

[IPROUTE 01/02]: Add support for SFQ xstats

2008-01-31 Thread Patrick McHardy
[IPROUTE]: Add support for SFQ xstats Signed-off-by: Patrick McHardy <[EMAIL PROTECTED]> --- commit 196870f762ee393438c42115425f4af69e5b5186 tree 5650c1f93cc58886f8f97a0e55e374c157b96e2e parent 54bb35c69cec6c730a4ac95530a1d2ca6670f73b author Patrick McHardy <[EMAIL PROTECTED]> Thu,

[NET_SCHED 00/04]: External SFQ classifiers/flow classifier

2008-01-31 Thread Patrick McHardy
These patches add support for external classifiers to SFQ and add a new "flow" classifier, which can do hashing based on user-specified keys or deterministic mapping of keys to classes. Additionally there is a patch to make the SFQ queues visisble as classes to verify that the hash is in

Re: [PATCH 3/3] sfq: whitespace cleanup

2008-01-20 Thread David Miller
From: Stephen Hemminger <[EMAIL PROTECTED]> Date: Fri, 18 Jan 2008 14:48:37 -0800 > Add whitespace around operators, and add a few blank lines > to improve readability. > > Signed-off-by: Stephen Hemminger <[EMAIL PROTECTED]> Applied. -- To unsubscribe from this list: send the line "unsubscribe

Re: [PATCH 2/2] SFQ: use net_random

2008-01-20 Thread David Miller
From: "Paul E. McKenney" <[EMAIL PROTECTED]> Date: Fri, 18 Jan 2008 20:18:20 -0800 > On Fri, Jan 18, 2008 at 02:47:30PM -0800, Stephen Hemminger wrote: > > SFQ doesn't need true random numbers, it is only using them to salt > > a hash. Therefore it is bett

Re: [PATCH 1/3] sfq: timer is deferrable

2008-01-20 Thread David Miller
is that the sfq_perturbation > > > timer might be on one CPU, and all the operations using the corresponding > > > SFQ on another. This could in theory allow a nearly omniscient attacker > > > to exploit an SFQ imbalance while preventing perturbation of the hash > >

Re: ESFQ (or SFQ updates) mainline status?

2008-01-19 Thread Stephen Hemminger
On Fri, 04 Jan 2008 11:21:15 -0800 Jeff Gustafson <[EMAIL PROTECTED]> wrote: > Hi all, > I have a question about the status of the spiffy updates to SFQ. I > *really* like the ESFQ idea. I appears to be exactly what I'm looking > for. From what I can tell from th

Re: [PATCH 1/3] sfq: timer is deferrable

2008-01-18 Thread Paul E. McKenney
r used for re-keying can be deferred, it doesn't > > > need to be deterministic. > > > > The only concern that I can come up with is that the sfq_perturbation > > timer might be on one CPU, and all the operations using the corresponding > > SFQ on another.

Re: [PATCH 1/3] sfq: timer is deferrable

2008-01-18 Thread Stephen Hemminger
> The only concern that I can come up with is that the sfq_perturbation > timer might be on one CPU, and all the operations using the corresponding > SFQ on another. This could in theory allow a nearly omniscient attacker > to exploit an SFQ imbalance while preventing perturbation of t

Re: [PATCH 1/3] sfq: timer is deferrable

2008-01-18 Thread Paul E. McKenney
s using the corresponding SFQ on another. This could in theory allow a nearly omniscient attacker to exploit an SFQ imbalance while preventing perturbation of the hash function. This does not seem to be a valid concern at this point, since there are very few uses of init_timer_deferrable(). And i

Re: [PATCH 2/2] SFQ: use net_random

2008-01-18 Thread Paul E. McKenney
On Fri, Jan 18, 2008 at 02:47:30PM -0800, Stephen Hemminger wrote: > SFQ doesn't need true random numbers, it is only using them to salt > a hash. Therefore it is better to use net_random() and avoid any possible > problems with depleting the entropy pool. The random-number alg

[PATCH 2/3] sfq: use net_random

2008-01-18 Thread Stephen Hemminger
SFQ doesn't need true random numbers, it is only using them to salt a hash. Therefore it is better to use net_random() and avoid any possible problems with depleting the entropy pool. Signed-off-by: Stephen Hemminger <[EMAIL PROTECTED]> --- a/net/sched/sch_sfq.c 2008-

[PATCH 1/3] sfq: timer is deferrable

2008-01-18 Thread Stephen Hemminger
The perturbation timer used for re-keying can be deferred, it doesn't need to be deterministic. Signed-off-by: Stephen Hemminger <[EMAIL PROTECTED]> --- a/net/sched/sch_sfq.c 2008-01-17 08:29:24.0 -0800 +++ b/net/sched/sch_sfq.c 2008-01-17 09:00:58.0 -0800 @@ -426,7 +

[PATCH 3/3] sfq: whitespace cleanup

2008-01-18 Thread Stephen Hemminger
Add whitespace around operators, and add a few blank lines to improve readability. Signed-off-by: Stephen Hemminger <[EMAIL PROTECTED]> --- a/net/sched/sch_sfq.c 2008-01-17 08:33:04.0 -0800 +++ b/net/sched/sch_sfq.c 2008-01-17 08:43:51.0 -0800 @@ -122,7 +122,7 @@ stat

ESFQ (or SFQ updates) mainline status?

2008-01-04 Thread Jeff Gustafson
Hi all, I have a question about the status of the spiffy updates to SFQ. I *really* like the ESFQ idea. I appears to be exactly what I'm looking for. From what I can tell from this mailing list, SFQ is getting some or all of the ESFQ features. Although the ESFQ web site gives det

Re: SFQ: backport some features from ESFQ (try 5)

2007-11-16 Thread Denys Fedoryshchenko
s for my patches so far and yet another one would be much appreciated. > > Thanks, > Corey > - > To unsubscribe from this list: send the line "unsubscribe netdev" in > the body of a message to [EMAIL PROTECTED] > More majordomo info at http://vger.kernel.org/majord

Re: SFQ: backport some features from ESFQ (try 5)

2007-11-15 Thread Corey Hickey
Corey Hickey wrote: > Patchset try 2 addresses the review by Michael Buesch. > Patchset try 3 addresses the review by Patrick McHardy. > Patchset try 4 has a few cosmetic improvements. > Patchset try 5 addresses further review by Patrick McHardy. > > This set of patches is substantially the same a

[PATCH 1/3] SFQ: Support changing depth and divisor.

2007-10-28 Thread Corey Hickey
in compile time. - */ - /* RED section */ enum diff --git a/tc/q_sfq.c b/tc/q_sfq.c index 05385cf..19e76ba 100644 --- a/tc/q_sfq.c +++ b/tc/q_sfq.c @@ -25,7 +25,7 @@ static void explain(void) { - fprintf(stderr, "Usage: ... sfq [ limit NUMBER ] [ perturb SECS ] [ quantum BYTE

[iproute2] SFQ: backport some features from ESFQ (try 5)

2007-10-28 Thread Corey Hickey
These patches follow the ESFQ-->SFQ kernel patches. See the kernel patch summary for general information. Thanks, Corey include/linux/pkt_sched.h | 23 ++- tc/q_sfq.c| 42 +- 2 files changed, 51 insertions(+),

SFQ: backport some features from ESFQ (try 5)

2007-10-28 Thread Corey Hickey
changes made according to Patrick's recommendations. Iproute2 patches will follow shortly. The following is the original patch text. This set of patches adds some of ESFQ's modifications to the original SFQ. Thus far, I have received support for this approach rather than for trying t

Re: SFQ qdisc crashes with limit of 2 packets

2007-09-30 Thread David Miller
From: Alexey Kuznetsov <[EMAIL PROTECTED]> Date: Fri, 21 Sep 2007 19:55:22 +0400 > Hello! > > Remove artificial limitation for sfq queue limit. > > This is followup to Patrick's patch. A little optimization to enqueue > routine allows to remove artificial limitati

Re: SFQ: backport some features from ESFQ (try 4)

2007-09-29 Thread Corey Hickey
Patrick McHardy wrote: Corey Hickey wrote: Patchset try 2 addresses the review by Michael Buesch. Patchset try 3 addresses the review by Patrick McHardy. Patchset try 4 has a few cosmetic improvements. Nobody reviewed my last set of patches, and I wasn't pushy about asking. Since it's been a wh

Re: SFQ: backport some features from ESFQ (try 4)

2007-09-29 Thread Patrick McHardy
Corey Hickey wrote: > Patchset try 2 addresses the review by Michael Buesch. > Patchset try 3 addresses the review by Patrick McHardy. > Patchset try 4 has a few cosmetic improvements. > > Nobody reviewed my last set of patches, and I wasn't pushy about asking. > Since it's been a while, I ported

Re: sfq (iproute2 patches)

2007-09-28 Thread Corey Hickey
Corey Hickey wrote: These patches follow the ESFQ-->SFQ kernel patches. See the kernel patch summary for general information. Dang, I forgot to set the subject; these are the iproute2 patches. -Corey - To unsubscribe from this list: send the line "unsubscribe netdev" in the body

sfq

2007-09-28 Thread Corey Hickey
These patches follow the ESFQ-->SFQ kernel patches. See the kernel patch summary for general information. Thanks, Corey include/linux/pkt_sched.h | 23 ++- tc/q_sfq.c| 43 ++- 2 files changed, 52 inserti

[PATCH 1/3] SFQ: Support changing depth and divisor.

2007-09-28 Thread Corey Hickey
ssible - * to change these parameters in compile time. - */ - /* RED section */ enum diff --git a/tc/q_sfq.c b/tc/q_sfq.c index 05385cf..7754db7 100644 --- a/tc/q_sfq.c +++ b/tc/q_sfq.c @@ -25,7 +25,7 @@ static void explain(void) { - fprintf(stderr, "Usage: ... sfq [ l

SFQ: backport some features from ESFQ (try 4)

2007-09-28 Thread Corey Hickey
ext. This set of patches adds some of ESFQ's modifications to the original SFQ. Thus far, I have received support for this approach rather than for trying to get ESFQ included as a separate qdisc. http://mailman.ds9a.nl/pipermail/lartc/2007q2/021056.html My patches here implement "

Re: SFQ qdisc crashes with limit of 2 packets

2007-09-21 Thread Alexey Kuznetsov
Hello! Remove artificial limitation for sfq queue limit. This is followup to Patrick's patch. A little optimization to enqueue routine allows to remove artificial limitation on queue length. Plus, testing showed that hash function used by SFQ is too bad or even worse. It does not even swee

Re: SFQ qdisc crashes with limit of 2 packets

2007-09-19 Thread David Miller
From: Patrick McHardy <[EMAIL PROTECTED]> Date: Wed, 19 Sep 2007 15:08:22 +0200 > Alexey Kuznetsov wrote: > > Hello! > > > >>CCed Alexey just to be safe, but I think the patch should be fine. > > > > > > Yes. But what'a about limit == 1? tc prohibits this case, but it is still > > not nice to h

Re: SFQ qdisc crashes with limit of 2 packets

2007-09-19 Thread Patrick McHardy
Alexey Kuznetsov wrote: > Hello! > >>CCed Alexey just to be safe, but I think the patch should be fine. > > > Yes. But what'a about limit == 1? tc prohibits this case, but it is still > not nice to have the bug in kernel. Plus, code remains creepy, the check > > + if (++sch->q.qlen < q->lim

Re: SFQ qdisc crashes with limit of 2 packets

2007-09-19 Thread Alexey Kuznetsov
Hello! > OK the off-by-one prevents an out-of-bounds array access, Yes, this is not off-by-one (off-by-two, to be more exact :-)). Maximal queue length is really limited by SFQ_DEPTH-2, because: 1. SFQ keeps list of queue lengths in array of length SFQ_DEPTH. This means length of queue m

Re: SFQ qdisc crashes with limit of 2 packets

2007-09-18 Thread David Miller
From: Patrick McHardy <[EMAIL PROTECTED]> Date: Tue, 18 Sep 2007 21:15:28 +0200 > OK the off-by-one prevents an out-of-bounds array access, which > would cause a crash itself. Despite what I said above, sfq does > try to handle dequeues while empty, but forgets to update q->ta

Re: SFQ qdisc crashes with limit of 2 packets

2007-09-18 Thread Patrick McHardy
way and the empty qdisc is > dequeued, which is not handled by SFQ. > > I see three possibilities to fix this (in my preferred order): > > 1) figure out why the off-by-one is there, if not needed remove > 2) don't dequeue qdiscs even once if empty > 3) check for NULL in sfq_

Re: SFQ qdisc crashes with limit of 2 packets

2007-09-18 Thread Patrick McHardy
again. dev_queue_xmit() calls qdisc_run() anyway and the empty qdisc is dequeued, which is not handled by SFQ. I see three possibilities to fix this (in my preferred order): 1) figure out why the off-by-one is there, if not needed remove 2) don't dequeue qdiscs even once if empty 3) check for NU

Re: SFQ qdisc crashes with limit of 2 packets

2007-09-18 Thread Patrick McHardy
Chuck Ebbert wrote: > Limit of 1 is forbidden, crashes with 2, works with 3: > >>From disassembling sch_sfq.ko it seems that it is on line 360 of sch_sfq.c: > sch->qstats.backlog -= skb->len; > where "skb" is an invalid pointer: Is it a NULL pointer or something random? - To unsubscribe from

SFQ qdisc crashes with limit of 2 packets

2007-09-18 Thread Chuck Ebbert
Limit of 1 is forbidden, crashes with 2, works with 3: https://bugzilla.redhat.com/show_bug.cgi?id=219895 = If the defect is produced at a console (as in ctrl-alt-f<0-6>) a kernel stack trace can be seen the moment "ping" is invoked. Since the stack trace is not written to the /var/log

[PATCH 0/3][iproute2] SFQ: backport some features from ESFQ

2007-08-25 Thread Corey Hickey
These patches follow the ESFQ-->SFQ kernel patches. See the kernel patch summary for general information. Thanks, Corey include/linux/pkt_sched.h | 23 ++- tc/q_sfq.c| 43 ++- 2 files changed, 52 inserti

[PATCH 1/3] SFQ: Support changing depth and divisor.

2007-08-25 Thread Corey Hickey
. - */ - /* RED section */ enum diff --git a/tc/q_sfq.c b/tc/q_sfq.c index 05385cf..7754db7 100644 --- a/tc/q_sfq.c +++ b/tc/q_sfq.c @@ -25,7 +25,7 @@ static void explain(void) { - fprintf(stderr, "Usage: ... sfq [ limit NUMBER ] [ perturb SECS ] [ quantum BYTES ]\n"); +

[PATCH 00/10] SFQ: backport some features from ESFQ (try 3)

2007-08-25 Thread Corey Hickey
shortly. The following is the original patch text. This set of patches adds some of ESFQ's modifications to the original SFQ. Thus far, I have received support for this approach rather than for trying to get ESFQ included as a separate qdisc. http://mailman.ds9a.nl/pipermail/lartc/2007q2/021

Re: [RFC NET_SCHED 00/02]: Flexible SFQ flow classification

2007-08-08 Thread Paul E. McKenney
> very much. > > > > In the spirit of SFQ it is probably ok to do that; > i.e iirc, the idea for justification behind sfq was to provide a > "computationaly feasible/reasonable" way to provide fair queueing with a > gazillion queues. > Classification was co

[PATCH] [iproute2] SFQ: Support changing depth and divisor.

2007-07-29 Thread Corey Hickey
. - */ - /* RED section */ enum diff --git a/tc/q_sfq.c b/tc/q_sfq.c index 05385cf..7754db7 100644 --- a/tc/q_sfq.c +++ b/tc/q_sfq.c @@ -25,7 +25,7 @@ static void explain(void) { - fprintf(stderr, "Usage: ... sfq [ limit NUMBER ] [ perturb SECS ] [ quantum BYTES ]\n"); +

SFQ: backport some features from ESFQ (try 2)

2007-07-29 Thread Corey Hickey
Hello, Patchset try 2 addresses the review by Michael Buesch. This set of patches adds some of ESFQ's modifications to the original SFQ. Thus far, I have received support for this approach rather than for trying to get ESFQ included as a separate qdisc. http://mailman.ds9a.nl/pipermail/

Re: [PATCH 0/7] SFQ: backport some features from ESFQ

2007-07-29 Thread David Miller
From: Corey Hickey <[EMAIL PROTECTED]> Date: Sun, 29 Jul 2007 00:17:15 -0700 > Corey Hickey wrote: > > Hello, > > > > This set of patches adds some of ESFQ's modifications to the original > > SFQ. Thus far, I have received support for this approach r

Re: [PATCH 0/7] SFQ: backport some features from ESFQ

2007-07-29 Thread Corey Hickey
Corey Hickey wrote: Hello, This set of patches adds some of ESFQ's modifications to the original SFQ. Thus far, I have received support for this approach rather than for trying to get ESFQ included as a separate qdisc. Crud; I wasn't expecting git-send-email to thread the message

[PATCH] [iproute2] SFQ: Support changing depth and divisor.

2007-07-29 Thread Corey Hickey
. - */ - /* RED section */ enum diff --git a/tc/q_sfq.c b/tc/q_sfq.c index 05385cf..7754db7 100644 --- a/tc/q_sfq.c +++ b/tc/q_sfq.c @@ -25,7 +25,7 @@ static void explain(void) { - fprintf(stderr, "Usage: ... sfq [ limit NUMBER ] [ perturb SECS ] [ quantum BYTES ]\n"); +

[PATCH 0/7] SFQ: backport some features from ESFQ

2007-07-29 Thread Corey Hickey
Hello, This set of patches adds some of ESFQ's modifications to the original SFQ. Thus far, I have received support for this approach rather than for trying to get ESFQ included as a separate qdisc. http://mailman.ds9a.nl/pipermail/lartc/2007q2/021056.html My patches here implement &quo

Re: [RFC NET_SCHED 00/02]: Flexible SFQ flow classification

2007-05-30 Thread jamal
On Wed, 2007-30-05 at 18:55 +0200, Patrick McHardy wrote: > I could do that, but I'm perfectly happy with the qdisc part of SFQ. > Without the classifier SFQ is of course simply a FQ qdisc, all it > cares about is serving queues equally. Sure. You are writting the code - your

Re: [RFC NET_SCHED 00/02]: Flexible SFQ flow classification

2007-05-30 Thread Andy Furniss
Patrick McHardy wrote: My classifier uses jhash, Ahh that's OK - I thought it still used the old sfq hash, which collided alot with a low number of consecutive addresses. Andy. - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [

Re: [RFC NET_SCHED 00/02]: Flexible SFQ flow classification

2007-05-30 Thread Patrick McHardy
jamal wrote: > On Wed, 2007-30-05 at 18:23 +0200, Patrick McHardy wrote: > >>My classifier seperates them entirely. The only thing it keeps >>in SFQ is the old classifier for compatibility, besides that its >>exactly what you say. It should be easily possible to remove

Re: [RFC NET_SCHED 00/02]: Flexible SFQ flow classification

2007-05-30 Thread jamal
be useful. > What > remains for SFQ to do is serve the queues evenly. And it does (yes, I looked at the patch;->). > My classifier seperates them entirely. The only thing it keeps > in SFQ is the old classifier for compatibility, besides that its > exactly what you say. It s

Re: [RFC NET_SCHED 00/02]: Flexible SFQ flow classification

2007-05-30 Thread Patrick McHardy
>>Not sure exactly why I would need a new qdisc to do that :) >> > > > The caveat/difference with current SFQ is you have allowed the user to > define which queue is selected. I think exposing SFQ's queues as classes is a good thing, it allows you to do whatever cl

Re: [RFC NET_SCHED 00/02]: Flexible SFQ flow classification

2007-05-30 Thread jamal
gt; classification to the classifiers. > > I created a new classifier to leave classification to the classifiers .. > Not sure exactly why I would need a new qdisc to do that :) > The caveat/difference with current SFQ is you have allowed the user to define which queue is selected. It is

Re: [RFC NET_SCHED 00/02]: Flexible SFQ flow classification

2007-05-30 Thread Patrick McHardy
Andy Furniss wrote: > Patrick McHardy wrote: > >> It currently does not support perturbation, I didn't want to move this >> into >> the classifier, so I need to think about a way to handle it within SFQ. >> > > Cool, but isn't this going to show th

Re: [RFC NET_SCHED 00/02]: Flexible SFQ flow classification

2007-05-30 Thread Patrick McHardy
jamal wrote: > On Wed, 2007-30-05 at 11:40 +0200, Patrick McHardy wrote: > >>One good thing about ESFQ is the more flexible flow classification, but >>I don't like the concept of having a set of selectable hash functions >>very much. >> > > > In th

Re: [RFC NET_SCHED 00/02]: Flexible SFQ flow classification

2007-05-30 Thread jamal
On Wed, 2007-30-05 at 11:40 +0200, Patrick McHardy wrote: > One good thing about ESFQ is the more flexible flow classification, but > I don't like the concept of having a set of selectable hash functions > very much. > In the spirit of SFQ it is probably ok to do that; i.e ii

Re: [RFC NET_SCHED 00/02]: Flexible SFQ flow classification

2007-05-30 Thread Andy Furniss
Patrick McHardy wrote: One good thing about ESFQ is the more flexible flow classification, but I don't like the concept of having a set of selectable hash functions very much. These patches change SFQ to allow attaching external classifiers and add a new "flow" classifier

[RFC NET_SCHED 00/02]: Flexible SFQ flow classification

2007-05-30 Thread Patrick McHardy
One good thing about ESFQ is the more flexible flow classification, but I don't like the concept of having a set of selectable hash functions very much. These patches change SFQ to allow attaching external classifiers and add a new "flow" classifier that allows to classify fl

Re: [patch] SFQ "noports" and "nosrcip" support and hash revamp

2006-01-31 Thread jamal
On Tue, 2006-31-01 at 01:16 +0100, Patrick McHardy wrote: > David S. Miller wrote: > > From: dean gaudet <[EMAIL PROTECTED]> > > Date: Sat, 17 Dec 2005 18:22:40 -0800 (PST) > > > > > >>let me know what you think... i'd like to get something like this patch > >>included upstream so i can eliminate

Re: [patch] SFQ "noports" and "nosrcip" support and hash revamp

2006-01-30 Thread Patrick McHardy
ash functions. In fact there are more useful features in ESFQ and someone should look into merging them into SFQ. I've put it on my TODO list in case nobody else cares :) - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [patch] SFQ "noports" and "nosrcip" support and hash revamp

2006-01-30 Thread David S. Miller
From: dean gaudet <[EMAIL PROTECTED]> Date: Sat, 17 Dec 2005 18:22:40 -0800 (PST) > let me know what you think... i'd like to get something like this patch > included upstream so i can eliminate a patch from several of my kernels. The RTA length check is a little hackish. Maybe use a new attribu

[patch] SFQ "noports" and "nosrcip" support and hash revamp

2005-12-17 Thread dean gaudet
hi, i've always found it unfortunate that sfq includes the destination port in the hash because so-called "download accelerators" which issue a bunch of simultaneous http range-requests with non-overlapping ranges end up getting an unfair share of the bandwidth. so i've