netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PKT_SCHED] cls_basic: Use unsigned int when generating handle
@ 2006-09-26 11:59 Thomas Graf
  2006-09-26 13:32 ` Patrick McHardy
  2006-09-27 23:21 ` David Miller
  0 siblings, 2 replies; 10+ messages in thread
From: Thomas Graf @ 2006-09-26 11:59 UTC (permalink / raw)
  To: davem; +Cc: kim.nordlund, netdev

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;

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2006-09-27 23:21 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-26 11:59 [PKT_SCHED] cls_basic: Use unsigned int when generating handle Thomas Graf
2006-09-26 13:32 ` 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

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).