From: David Weinehall <tao@acc.umu.se>
To: Thierry Coutelier <Thierry.Coutelier@linux.lu>
Cc: lartc@mailman.ds9a.nl, linux-kernel@vger.kernel.org,
Kuznet@Ms2.Inr.Ac.Ru
Subject: Re: Kernel patch for cls_u32.c
Date: Thu, 11 Oct 2001 20:53:27 +0200 [thread overview]
Message-ID: <20011011205327.F25701@khan.acc.umu.se> (raw)
In-Reply-To: <3BC439AB.B9B83B65@linux.lu>
In-Reply-To: <3BC439AB.B9B83B65@linux.lu>; from Thierry.Coutelier@linux.lu on Wed, Oct 10, 2001 at 02:06:03PM +0200
On Wed, Oct 10, 2001 at 02:06:03PM +0200, Thierry Coutelier wrote:
> To solve a problem while listing filters you may add this patch.
> It works for all kernel versions from 2.4.6 to 2.4.11
> It wold be cool to have it in the next kernel release.
>
> ---
> diff -ur 2.4.6/linux/net/sched/cls_u32.c linux/net/sched/cls_u32.c
> --- 2.4.6/linux/net/sched/cls_u32.c Thu Feb 1 23:06:10 2001
> +++ linux/net/sched/cls_u32.c Wed Jul 11 23:55:23 2001
> @@ -613,7 +613,8 @@
>
> for (ht = tp_c->hlist; ht; ht = ht->next) {
> if (arg->count >= arg->skip) {
> - if (arg->fn(tp, (unsigned long)ht, arg) < 0) {
> + if (ht == tp->root &&
> + arg->fn(tp, (unsigned long)ht, arg) < 0) {
> arg->stop = 1;
> return;
> }
> @@ -625,7 +626,8 @@
> arg->count++;
> continue;
> }
> - if (arg->fn(tp, (unsigned long)n, arg) < 0) {
> + if (ht == tp->root &&
> + arg->fn(tp, (unsigned long)n, arg) < 0) {
> arg->stop = 1;
> return;
> }
Yeuch! The author of this code REALLY needs to read
Documentation/CodingStyle
Indentation by 1 (!) single space is by far the ugliest thing I've seen
so far.
/David Weinehall
_ _
// David Weinehall <tao@acc.umu.se> /> Northern lights wander \\
// Project MCA Linux hacker // Dance across the winter sky //
\> http://www.acc.umu.se/~tao/ </ Full colour fire </
prev parent reply other threads:[~2001-10-11 18:53 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-10-10 12:06 Thierry Coutelier
2001-10-11 0:40 ` David S. Miller
2001-10-11 18:53 ` David Weinehall [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20011011205327.F25701@khan.acc.umu.se \
--to=tao@acc.umu.se \
--cc=Kuznet@Ms2.Inr.Ac.Ru \
--cc=Thierry.Coutelier@linux.lu \
--cc=lartc@mailman.ds9a.nl \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®