netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Thomas Graf <tgraf@suug.ch>
To: davem@davemloft.net
Cc: kim.nordlund@nokia.com, netdev@vger.kernel.org
Subject: [PKT_SCHED] cls_basic: Use unsigned int when generating handle
Date: Tue, 26 Sep 2006 13:59:10 +0200	[thread overview]
Message-ID: <20060926115910.GV18349@postel.suug.ch> (raw)

Prevents filters from being added if the first generated
handle already exists.

Signed-off-by: Kim Nordlund <kim.nordlund@nokia.com>
Signed-off-by: Thomas Graf <tgraf@suug.ch>

Index: net-2.6/net/sched/cls_basic.c
===================================================================
--- net-2.6.orig/net/sched/cls_basic.c	2006-09-26 13:35:29.000000000 +0200
+++ net-2.6/net/sched/cls_basic.c	2006-09-26 13:35:39.000000000 +0200
@@ -194,7 +194,7 @@
 	if (handle)
 		f->handle = handle;
 	else {
-		int i = 0x80000000;
+		unsigned int i = 0x80000000;
 		do {
 			if (++head->hgenerator == 0x7FFFFFFF)
 				head->hgenerator = 1;

             reply	other threads:[~2006-09-26 11:58 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-09-26 11:59 Thomas Graf [this message]
2006-09-26 13:32 ` [PKT_SCHED] cls_basic: Use unsigned int when generating handle Patrick McHardy
2006-09-26 18:36   ` Thomas Graf
2006-09-27  8:50     ` Nordlund Kim (Nokia-NET/Helsinki)
2006-09-27  9:33       ` Thomas Graf
2006-09-27  9:44         ` Patrick McHardy
2006-09-27 10:09           ` Thomas Graf
2006-09-27 11:45             ` Nordlund Kim (Nokia-NET/Helsinki)
2006-09-27 23:18               ` David Miller
2006-09-27 23:21 ` David Miller

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=20060926115910.GV18349@postel.suug.ch \
    --to=tgraf@suug.ch \
    --cc=davem@davemloft.net \
    --cc=kim.nordlund@nokia.com \
    --cc=netdev@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;
as well as URLs for NNTP newsgroup(s).