]> git.karo-electronics.de Git - karo-tx-linux.git/commit
PKT_SCHED: cls_basic: Use unsigned int when generating handle
authorDavid Miller <davem@davemloft.net>
Wed, 27 Sep 2006 23:25:17 +0000 (16:25 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 13 Oct 2006 20:23:27 +0000 (13:23 -0700)
commitf2fb7f11c1dc0cf66f290671f4a7b427e63da64c
treebbb0d3bbec8e951f53fe4e1a52b73c80e196ba0f
parent521a3b74333140bd33357ea1afe1b514f2c2e771
PKT_SCHED: cls_basic: Use unsigned int when generating handle

gcc-4.1 and later take advantage of the fact that in the
C language certain types of overflow/underflow are undefined,
and this is completely legitimate.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
net/sched/cls_basic.c