diff options
author | Peter Denison <openwrt@marshadder.org> | 2008-05-20 22:17:26 +0000 |
---|---|---|
committer | Peter Denison <openwrt@marshadder.org> | 2008-05-20 22:17:26 +0000 |
commit | df83a6c4c8bb11e1b63a2cd12fbe4f482999778c (patch) | |
tree | 59f6613bbf13f5e4b88b41bd80a4e9efe09641ed /package/iproute2/patches/006-iproute2-tc_esfq.patch | |
parent | 6755af36b6729be79bcb0f688ebde4b625145d27 (diff) | |
download | master-187ad058-df83a6c4c8bb11e1b63a2cd12fbe4f482999778c.tar.gz master-187ad058-df83a6c4c8bb11e1b63a2cd12fbe4f482999778c.tar.bz2 master-187ad058-df83a6c4c8bb11e1b63a2cd12fbe4f482999778c.zip |
Update iproute2 to version 2.6.25, and fixup patches
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@11230 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/iproute2/patches/006-iproute2-tc_esfq.patch')
-rw-r--r-- | package/iproute2/patches/006-iproute2-tc_esfq.patch | 33 |
1 files changed, 18 insertions, 15 deletions
diff --git a/package/iproute2/patches/006-iproute2-tc_esfq.patch b/package/iproute2/patches/006-iproute2-tc_esfq.patch index d0347549dd..29a51224bd 100644 --- a/package/iproute2/patches/006-iproute2-tc_esfq.patch +++ b/package/iproute2/patches/006-iproute2-tc_esfq.patch @@ -1,7 +1,8 @@ -diff -urN --exclude=.svn iproute2-2.6.11-050330/include/linux/pkt_sched.h iproute2-2.6.11-050330/include/linux/pkt_sched.h ---- iproute2-2.6.11-050330/include/linux/pkt_sched.h 2007-05-04 22:21:48.000000000 -0400 -+++ iproute2-2.6.11-050330/include/linux/pkt_sched.h 2007-05-04 22:27:12.000000000 -0400 -@@ -174,8 +174,38 @@ +Index: iproute2-2.6.25/include/linux/pkt_sched.h +=================================================================== +--- iproute2-2.6.25.orig/include/linux/pkt_sched.h 2008-05-01 00:37:45.000000000 +0100 ++++ iproute2-2.6.25/include/linux/pkt_sched.h 2008-05-01 20:30:49.000000000 +0100 +@@ -174,8 +174,38 @@ struct tc_sfq_qopt * * The only reason for this is efficiency, it is possible * to change these parameters in compile time. @@ -40,7 +41,7 @@ diff -urN --exclude=.svn iproute2-2.6.11-050330/include/linux/pkt_sched.h iprout /* RED section */ enum -@@ -551,8 +580,37 @@ +@@ -568,8 +598,37 @@ struct tc_sfq_xstats * * The only reason for this is efficiency, it is possible * to change these parameters in compile time. @@ -78,10 +79,11 @@ diff -urN --exclude=.svn iproute2-2.6.11-050330/include/linux/pkt_sched.h iprout /* RED section */ enum -diff -urN --exclude=.svn iproute2-2.6.11-050330/tc/Makefile iproute2-2.6.11-050330/tc/Makefile ---- iproute2-2.6.11-050330/tc/Makefile 2007-05-04 22:21:48.000000000 -0400 -+++ iproute2-2.6.11-050330/tc/Makefile 2007-05-04 22:27:37.000000000 -0400 -@@ -6,6 +6,7 @@ +Index: iproute2-2.6.25/tc/Makefile +=================================================================== +--- iproute2-2.6.25.orig/tc/Makefile 2008-05-01 00:30:13.000000000 +0100 ++++ iproute2-2.6.25/tc/Makefile 2008-05-01 20:30:49.000000000 +0100 +@@ -7,6 +7,7 @@ include ../Config TCMODULES := TCMODULES += q_fifo.o TCMODULES += q_sfq.o @@ -89,9 +91,10 @@ diff -urN --exclude=.svn iproute2-2.6.11-050330/tc/Makefile iproute2-2.6.11-0503 TCMODULES += q_red.o TCMODULES += q_prio.o TCMODULES += q_tbf.o -diff -urN --exclude=.svn iproute2-2.6.11-050330/tc/q_esfq.c iproute2-2.6.11-050330/tc/q_esfq.c ---- iproute2-2.6.11-050330/tc/q_esfq.c 1969-12-31 19:00:00.000000000 -0500 -+++ iproute2-2.6.11-050330/tc/q_esfq.c 2007-05-04 22:37:54.000000000 -0400 +Index: iproute2-2.6.25/tc/q_esfq.c +=================================================================== +--- /dev/null 1970-01-01 00:00:00.000000000 +0000 ++++ iproute2-2.6.25/tc/q_esfq.c 2008-05-01 20:31:09.000000000 +0100 @@ -0,0 +1,200 @@ +/* + * q_esfq.c ESFQ. @@ -114,7 +117,7 @@ diff -urN --exclude=.svn iproute2-2.6.11-050330/tc/q_esfq.c iproute2-2.6.11-0503 +#include <unistd.h> +#include <syslog.h> +#include <fcntl.h> -+#include <math.h> ++#include <math.h> +#include <sys/socket.h> +#include <netinet/in.h> +#include <arpa/inet.h> @@ -140,7 +143,7 @@ diff -urN --exclude=.svn iproute2-2.6.11-050330/tc/q_esfq.c iproute2-2.6.11-0503 + memset(&opt, 0, sizeof(opt)); + + opt.hash_kind= TCA_SFQ_HASH_CLASSIC; -+ ++ + while (argc > 0) { + if (strcmp(*argv, "quantum") == 0) { + NEXT_ARG(); @@ -186,7 +189,7 @@ diff -urN --exclude=.svn iproute2-2.6.11-050330/tc/q_esfq.c iproute2-2.6.11-0503 + NEXT_ARG(); + if(strcmp(*argv, "classic") == 0) { + opt.hash_kind= TCA_SFQ_HASH_CLASSIC; -+ } else ++ } else + if(strcmp(*argv, "dst") == 0) { + opt.hash_kind= TCA_SFQ_HASH_DST; + } else |