linux-netdev mailing list

FromSubjectsort iconDate
Adam Langley
[Resend v2 PATCH 2/3] TCP: options clean up
This should fix the following bugs: * Connections with MD5 signatures produce invalid packets whenever SACK options are included * MD5 signatures are counted twice in the MSS calculations Behaviour changes: * A SYN with MD5 + SACK + TS elicits a SYNACK with MD5 + SACK This is because we can't fit any SACK blocks in a packet with MD5 + TS options. There was discussion about disabling SACK rather than TS in order to fit in better with old, buggy kernels, but that was deemed t...
Jul 17, 7:08 pm 2008
Adam Langley
[Resend v2 PATCH 3/3] TCP: Remove redundant checks when sett...
Remove redundant checks when setting eff_sacks and make the number of SACKs a compile time constant. Now that the options code knows how many SACK blocks can fit in the header, we don't need to have the SACK code guessing at it. Signed-off-by: Adam Langley <agl@imperialviolet.org> --- include/linux/tcp.h | 6 ++++++ net/ipv4/tcp_input.c | 25 ++++++++++--------------- 2 files changed, 16 insertions(+), 15 deletions(-) diff --git a/include/linux/tcp.h b/include/linux/tcp.h index...
Jul 17, 7:08 pm 2008
Adam Langley
[Resend v2 PATCH 1/3] TCP: Fix MD5 signatures for non-linear...
Currently, the MD5 code assumes that the SKBs are linear and, in the case that they aren't, happily goes off and hashes off the end of the SKB and into random memory. Reported by Stephen Hemminger in [1]. Advice thanks to Stephen and Evgeniy Polyakov. Also includes a couple of missed route_caps from Stephen's patch in [2]. [1] http://marc.info/?l=linux-netdev&m=121445989106145&w=2 [2] http://marc.info/?l=linux-netdev&m=121459157816964&w=2 Signed-off-by: Adam Langley <agl@imp...
Jul 17, 7:08 pm 2008
Adam Langley
[Resend v2 PATCH 0/3] TCP: fixing TCP MD5
This series applies against net-next-2.6 and I've been running it for a while. The only changes this time round are the requested ones. --
Jul 17, 7:08 pm 2008
Ingo Molnar
[bug, netconsole, SLUB] BUG skbuff_head_cache: Poison overwr...
A regression to v2.6.26: I started getting this skb-head corruption message today, on a T60 laptop with e1000: PM: Removing info for No Bus:vcs11 device: 'vcs11': device_create_release ============================================================================= BUG skbuff_head_cache: Poison overwritten ----------------------------------------------------------------------------- INFO: 0xf658ae9c-0xf658ae9c. First byte 0x6a instead of 0x6b INFO: Allocated in __alloc_skb+0x2c/0x110 age=0 cp...
Jul 17, 5:42 pm 2008
Vegard Nossum
Re: [bug, netconsole, SLUB] BUG skbuff_head_cache: Poison ov...
It doesn't actually work. The config says # head: 088fcf34 and I checked out this from the tip tree. But kernel-config still complains about unknown config options... What went wrong? Vegard -- "The animistic metaphor of the bug that maliciously sneaked in while the programmer was not looking is intellectually dishonest as it disguises that the error is the programmer's own creation." -- E. W. Dijkstra, EWD1036 --
Jul 17, 7:27 pm 2008
Ingo Molnar
Re: [bug, netconsole, SLUB] BUG skbuff_head_cache: Poison ov...
that's ok - i've got some local qa helpers that have config options. Things like making SMP bootups more likely in randconfig, adding various boot parameters to the bootup via .config methods (so that boot parameters can be randomized via make randconfig), etc. these: CONFIG_BOOTPARAM_SUPPORT=y CONFIG_BOOTPARAM_NO_HZ_OFF=y CONFIG_BOOTPARAM_NMI_WATCHDOG_BIT_0=y CONFIG_BOOTPARAM_LAPIC=y CONFIG_BOOTPARAM_IDLE_MWAIT=y CONFIG_BOOTPARAM_NOPAT=y CONFIG_BOOTPARAM_NOTSC=y are...
Jul 17, 7:56 pm 2008
Vegard Nossum
Re: [bug, netconsole, SLUB] BUG skbuff_head_cache: Poison ov...
1. Notice the range. It's just a single byte. 2. Notice the value. It's just a ++. Probably a stray increment of a uint8_t somewhere on a freed object? The offset from the beginning of the object is 0xf658ae9c - 0xf658ae00 = 0x9c. How big is a struct sk_buff? Hm.. it is in fact quite big. Now what member has offset 0x9c? Seems to depend on your config. Is there any way you can figure it out, Ingo? I'll try it with your config too. Vegard -- "The animistic metaphor of the bug that mal...
Jul 17, 7:15 pm 2008
Ingo Molnar
Re: [bug, netconsole, SLUB] BUG skbuff_head_cache: Poison ov...
hmm ... your analysis gave me a wonderful albeit admittedly remote idea: If only we had some kernel technology that could track and validate memory accesses, and point out the cases where we access uninitialized memory, just like Valgrind? ... something like kmemcheck? ;-) So i booted that box with tip/master and kmemcheck enabled. (plus a few fixlets to make networking allocations be properly tracked by kmemcheck.) It was a slow bootup and long wait, but it gave a few hits here: ...
Jul 17, 7:52 pm 2008
Vegard Nossum
Re: [bug, netconsole, SLUB] BUG skbuff_head_cache: Poison ov...
With your config: (gdb) p ((struct sk_buff *) 0)->truesize Cannot access memory at address 0x9c Now just audit users of ->truesize... There are quite a few. Which one would only += 1? Vegard PS: I might be on the completely wrong track. So far I only have bad experiences with this sk_buff... -- "The animistic metaphor of the bug that maliciously sneaked in while the programmer was not looking is intellectually dishonest as it disguises that the error is the programmer's own...
Jul 17, 7:35 pm 2008
David Miller
Re: [bug, netconsole, SLUB] BUG skbuff_head_cache: Poison ov...
From: Ingo Molnar <mingo@elte.hu> This is very unlikely to be added by us networking folks, no networking merges have happened for the 2.6.27 merge window yet :-) --
Jul 17, 5:45 pm 2008
Ingo Molnar
Re: [bug, netconsole, SLUB] BUG skbuff_head_cache: Poison ov...
and Cc:-ed SLUB folks. Could be a sleeper cell of bugs gone active ;-) Or could be SLUB (-debugging) breakage. Netconsole is pretty reliable on this box. (and the bootup continued just fine after this report) Just re-tried it, the bug is reliably repeatable. Will try a bisection run. Ingo --
Jul 17, 6:06 pm 2008
Ingo Molnar
Re: [bug, netconsole, SLUB] BUG skbuff_head_cache: Poison ov...
hm, but it was not reproducible on the third and fourth attempt :-( I tried hard to provoke it by generating artificial parallel network and netconsole output - but it didnt want to trigger. Heisenbug ... Maybe the debug output gives someone an idea about the nature of the bug? Ingo --
Jul 17, 6:43 pm 2008
David Miller
Re: [bug, netconsole, SLUB] BUG skbuff_head_cache: Poison ov...
From: Ingo Molnar <mingo@elte.hu> This bug would be a quite positive result then :) --
Jul 17, 6:09 pm 2008
Harvey Harrison Jul 17, 5:13 pm 2008
Ben Dooks
DM9000: Remove magic numbers
Remove magic numbers for items that we already have defined in the register header file. Signed-off-by: Ben Dooks <ben-linux@fluff.org> Index: linux-2.6.26-quilt3/drivers/net/dm9000.c =================================================================== --- linux-2.6.26-quilt3.orig/drivers/net/dm9000.c 2008-07-17 20:12:49.000000000 +0100 +++ linux-2.6.26-quilt3/drivers/net/dm9000.c 2008-07-17 20:24:52.000000000 +0100 @@ -888,19 +888,22 @@ dm9000_rx(struct net_device *dev) dev_dbg(db->...
Jul 17, 3:29 pm 2008
Wolfgang Walter
Kernel oops with 2.6.26 and ipsec (Was: Re: IPSEC in 2.6.25 ...
Do you mean the problem with IPSEC and icmp packets generated on the router? Couldn't check yet. I started testing 2.6.26 but I get a kernel oops, so I switched back to 2.6.25.11. Here is the output of dmesg (no logging was switched on so I don't have the complete oops). But it happened on several of our routers within one day: xe [<c01c8c4f>] update+0x0/0x46 [<c01c8a4d>] final+0x0/0x54 [<c01c8be4>] digest+0x0/0x6b [<c01c8c95>] nosetkey+0x0/0xf [<c01c89cc&g...
Jul 17, 10:53 am 2008
Wolfgang Walter
Re: Kernel oops with 2.6.26 and ipsec
Here some further information: * it happened on several routers when a lot of traffic was going over the ipsec-tunnel, always with this oops * I copied several times about 32MB via ssh to a router without using the ipsec-tunnel (but the same interface) without any problems * the same was true when the router had to route the traffic and no tunnel was involved * copying over the tunnel made this same router crash * only routers with padlock seem to have this problem because I didn't ob...
Jul 17, 4:42 pm 2008
Denis V. Lunev Jul 17, 11:05 am 2008
Tomas Winkler Jul 17, 11:26 am 2008
Octavian Purdila Jul 17, 9:33 am 2008
Evgeniy Polyakov
Re: [PATCH] tcp: do not promote SPLICE_F_NONBLOCK to socket ...
Hi Octavian. Existing behaviour was selected to be able to have a progress if socket does not have enough data to fill the pipe. With your change if socket is not opened with non-blocking mode reading will block not matter if SPLICE_F_NONBLOCK is set or not. This is a quite serious break of the overall idea behind SPLICE_F_NONBLOCK. Socket will not be marked as non-blocking if SPLICE_F_NONBLOCK is specified, only splicing will used non-blocking reading, any read via recv() will use existing so...
Jul 17, 10:21 am 2008
Octavian Purdila
Re: [PATCH] tcp: do not promote SPLICE_F_NONBLOCK to socket ...
I am probably missing some usecases here, but usually if you want to use non-blocking I/O you need to use special approach anyway (e.g. code the I don't know... the man page explicitly says that even when you use SPLICE_F_NONBLOCK splice may block because of the underlying fd blocking. But more importantly, how can we solve the deadlock issue described in the patch? Do we need all of the complications of async I/O for such a simple and common usecase? Maybe we can solve both usecases by ...
Jul 17, 10:47 am 2008
Evgeniy Polyakov
Re: [PATCH] tcp: do not promote SPLICE_F_NONBLOCK to socket ...
It depends. Splice clearly states that it tries to be nonblocking with I'm not sure I understand how it can deadlock, please explain it in more details. -- Evgeniy Polyakov --
Jul 17, 1:41 pm 2008
Octavian Purdila
Re: [PATCH] tcp: do not promote SPLICE_F_NONBLOCK to socket ...
You lost me here :) The way I interpret the man page text is that it is ok for splice to block, even if SPLICE_F_NONBLOCK is set. The comments near SPLICE_F_NONBLOCK says the same thing: #define SPLICE_F_NONBLOCK (0x02) /* don't block on the pipe splicing (but */ /* we may still block on the fd we splice */ /* from/to, of course */ For this "program": x=splice(socket, pipe, size, flags=0); if (x > 0) splice(pipe, ...
Jul 17, 5:52 pm 2008
Pavel Emelyanov
[PATCH 0/16] mib: finish with ipv4 mibs netnsization
This is the notorious "finalizing set" - after this all the ipv4 stats are isolated from each other. The ipv6, dccp and sctp I touched with previous sets deserve special handling and will be done in 2.6.28 No *new* stuff for 2.6.27 from me, thank you Dave for your patience :) Signed-off-by: Pavel Emelyanov <xemul@openvz.org> --
Jul 17, 9:19 am 2008
Pavel Emelyanov
[PATCH 16/16] proc: consolidate per-net single-release callers
They are symmetrical to single_open ones :) Signed-off-by: Pavel Emelyanov <xemul@openvz.org> --- fs/proc/proc_net.c | 8 ++++++++ include/linux/seq_file_net.h | 1 + net/ipv4/fib_trie.c | 9 +-------- net/ipv4/proc.c | 30 +++--------------------------- net/ipv6/proc.c | 10 +--------- net/ipv6/route.c | 20 ++------------------ 6 files changed, 16 insertions(+), 62 deletions(-) diff --git a/fs/proc/proc_net.c b/fs...
Jul 17, 9:43 am 2008
Pavel Emelyanov
[PATCH 15/16] proc: consolidate per-net single_open callers
There are already 7 of them - time to kill some duplicate code. Signed-off-by: Pavel Emelyanov <xemul@openvz.org> --- fs/proc/proc_net.c | 24 +++++++++++++++++ include/linux/seq_file_net.h | 2 + net/ipv4/fib_trie.c | 13 +--------- net/ipv4/proc.c | 57 ++--------------------------------------- net/ipv6/proc.c | 19 +------------- net/ipv6/route.c | 26 +----------------- 6 files changed, 33 insertions(+), 108 deletion...
Jul 17, 9:41 am 2008
Pavel Emelyanov
[PATCH 14/16] proc: clean the ip_misc_proc_init and ip_proc_...
After all this stuff is moved outside, this function can look better. Besides, I tuned the error path in ip_proc_init_net to make it have only 2 exit points, not 3. Signed-off-by: Pavel Emelyanov <xemul@openvz.org> --- net/ipv4/proc.c | 15 +++------------ 1 files changed, 3 insertions(+), 12 deletions(-) diff --git a/net/ipv4/proc.c b/net/ipv4/proc.c index 120e1f7..5543904 100644 --- a/net/ipv4/proc.c +++ b/net/ipv4/proc.c @@ -508,7 +508,7 @@ static const struct file_operations ne...
Jul 17, 9:40 am 2008
Pavel Emelyanov
[PATCH 13/16] proc: show per-net ip_devconf.forwarding in /p...
This one has become per-net long ago, but the appropriate file is per-net only now. Signed-off-by: Pavel Emelyanov <xemul@openvz.org> --- net/ipv4/proc.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/net/ipv4/proc.c b/net/ipv4/proc.c index 367b81f..120e1f7 100644 --- a/net/ipv4/proc.c +++ b/net/ipv4/proc.c @@ -342,7 +342,7 @@ static int snmp_seq_show(struct seq_file *seq, void *v) seq_printf(seq, " %s", snmp4_ipstats_list[i].name); seq_printf(seq, "\...
Jul 17, 9:38 am 2008
Pavel Emelyanov
[PATCH 12/16] proc: create /proc/net/snmp file in each net
All the statistics show in this file is also made per-net already. Signed-off-by: Pavel Emelyanov <xemul@openvz.org> --- net/ipv4/proc.c | 70 +++++++++++++++++++++++++++++++++++++++--------------- 1 files changed, 50 insertions(+), 20 deletions(-) diff --git a/net/ipv4/proc.c b/net/ipv4/proc.c index df8c4af..367b81f 100644 --- a/net/ipv4/proc.c +++ b/net/ipv4/proc.c @@ -266,11 +266,12 @@ static void icmpmsg_put(struct seq_file *seq) int j, i, count; static int out[PERLINE]; ...
Jul 17, 9:36 am 2008
Pavel Emelyanov
[PATCH 11/16] proc: create /proc/net/netstat file in each net
Now all the shown in it statistics is netnsizated, time to show it in appropriate net. The appropriate net init/exit ops already exist - they make the sockstat file per net - so just extend them. Signed-off-by: Pavel Emelyanov <xemul@openvz.org> --- net/ipv4/proc.c | 47 ++++++++++++++++++++++++++++++++++++++--------- 1 files changed, 38 insertions(+), 9 deletions(-) diff --git a/net/ipv4/proc.c b/net/ipv4/proc.c index e11144b..df8c4af 100644 --- a/net/ipv4/proc.c +++ b/net/ipv4/pr...
Jul 17, 9:35 am 2008
Pavel Emelyanov
[PATCH 10/16] ipvs: clean the init_ipv4_mibs error paths
After moving all the stuff outside this function it looks a bit ugly - make it look better. Signed-off-by: Pavel Emelyanov <xemul@openvz.org> --- net/ipv4/af_inet.c | 8 +------- 1 files changed, 1 insertions(+), 7 deletions(-) diff --git a/net/ipv4/af_inet.c b/net/ipv4/af_inet.c index 36ff6dc..dd919d8 100644 --- a/net/ipv4/af_inet.c +++ b/net/ipv4/af_inet.c @@ -1399,13 +1399,7 @@ static __net_initdata struct pernet_operations ipv4_mib_ops = { static int __init init_ipv4_mibs(vo...
Jul 17, 9:33 am 2008
Pavel Emelyanov
[PATCH 9/16] mib: put icmpmsg statistics on struct net
Signed-off-by: Pavel Emelyanov <xemul@openvz.org> --- include/net/icmp.h | 5 ++--- include/net/netns/mib.h | 1 + net/ipv4/af_inet.c | 12 ++++++------ net/ipv4/icmp.c | 5 ----- net/ipv4/proc.c | 10 +++++----- 5 files changed, 14 insertions(+), 19 deletions(-) diff --git a/include/net/icmp.h b/include/net/icmp.h index e14f2c0..dfa72d4 100644 --- a/include/net/icmp.h +++ b/include/net/icmp.h @@ -29,11 +29,10 @@ struct icmp_err { }; extern ...
Jul 17, 9:32 am 2008
Pavel Emelyanov
[PATCH 8/16] mib: put icmp statistics on struct net
Signed-off-by: Pavel Emelyanov <xemul@openvz.org> --- include/net/icmp.h | 5 ++--- include/net/netns/mib.h | 1 + net/ipv4/af_inet.c | 11 ++++++----- net/ipv4/icmp.c | 2 -- net/ipv4/proc.c | 8 ++++---- 5 files changed, 13 insertions(+), 14 deletions(-) diff --git a/include/net/icmp.h b/include/net/icmp.h index 03b9972..e14f2c0 100644 --- a/include/net/icmp.h +++ b/include/net/icmp.h @@ -29,10 +29,9 @@ struct icmp_err { }; extern struct ...
Jul 17, 9:31 am 2008
Pavel Emelyanov
[PATCH 7/16] mib: put udplite statistics on struct net
Signed-off-by: Pavel Emelyanov <xemul@openvz.org> --- include/net/netns/mib.h | 1 + include/net/udp.h | 5 ++--- net/ipv4/af_inet.c | 11 ++++++----- net/ipv4/proc.c | 2 +- net/ipv4/udplite.c | 1 - 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/include/net/netns/mib.h b/include/net/netns/mib.h index 738c87c..23e699f 100644 --- a/include/net/netns/mib.h +++ b/include/net/netns/mib.h @@ -8,6 +8,7 @@ struct netns_mib { DEFINE_SNM...
Jul 17, 9:30 am 2008
Pavel Emelyanov
[PATCH 6/16] mib: put udp statistics on struct net
Similar to... ouch, I repeat myself. Signed-off-by: Pavel Emelyanov <xemul@openvz.org> --- include/net/netns/mib.h | 1 + include/net/udp.h | 9 ++++----- net/ipv4/af_inet.c | 11 ++++++----- net/ipv4/proc.c | 2 +- net/ipv4/udp.c | 3 --- 5 files changed, 12 insertions(+), 14 deletions(-) diff --git a/include/net/netns/mib.h b/include/net/netns/mib.h index b5b1115..738c87c 100644 --- a/include/net/netns/mib.h +++ b/include/net/netns/mib.h @@...
Jul 17, 9:29 am 2008
Pavel Emelyanov
[PATCH 5/16] mib: put net statistics on struct net
Similar to ip and tcp ones :) Signed-off-by: Pavel Emelyanov <xemul@openvz.org> --- include/net/ip.h | 11 +++++------ include/net/netns/mib.h | 1 + net/ipv4/af_inet.c | 14 ++++++-------- net/ipv4/proc.c | 2 +- 4 files changed, 13 insertions(+), 15 deletions(-) diff --git a/include/net/ip.h b/include/net/ip.h index ff2535a..b5862b9 100644 --- a/include/net/ip.h +++ b/include/net/ip.h @@ -159,12 +159,11 @@ extern struct ipv4_config ipv4_config; #defin...
Jul 17, 9:28 am 2008
Pavel Emelyanov
[PATCH 4/16] mib: put ip statistics on struct net
Similar to tcp one. Signed-off-by: Pavel Emelyanov <xemul@openvz.org> --- include/net/ip.h | 7 +++---- include/net/netns/mib.h | 1 + net/ipv4/af_inet.c | 11 ++++++----- net/ipv4/ip_input.c | 8 -------- net/ipv4/proc.c | 4 ++-- 5 files changed, 12 insertions(+), 19 deletions(-) diff --git a/include/net/ip.h b/include/net/ip.h index 02924fb..ff2535a 100644 --- a/include/net/ip.h +++ b/include/net/ip.h @@ -156,10 +156,9 @@ struct ipv4_config ...
Jul 17, 9:26 am 2008
Pavel Emelyanov
[PATCH 3/16] mib: put tcp statistics on struct net
Proc temporary uses stats from init_net. BTW, TCP_XXX_STATS are beautiful (w/o do { } while (0) facing) again :) Signed-off-by: Pavel Emelyanov <xemul@openvz.org> --- include/net/netns/mib.h | 1 + include/net/tcp.h | 9 ++++----- net/ipv4/af_inet.c | 16 +++++++++------- net/ipv4/proc.c | 4 ++-- net/ipv4/tcp.c | 3 --- 5 files changed, 16 insertions(+), 17 deletions(-) diff --git a/include/net/netns/mib.h b/include/net/netns/mib.h index 9f4...
Jul 17, 9:25 am 2008
Pavel Emelyanov
[PATCH 2/16] ipv4: add pernet mib operations
These ones are currently empty, but stuff from init_ipv4_mibs will sequentially migrate there. Signed-off-by: Pavel Emelyanov <xemul@openvz.org> --- net/ipv4/af_inet.c | 20 ++++++++++++++++++++ 1 files changed, 20 insertions(+), 0 deletions(-) diff --git a/net/ipv4/af_inet.c b/net/ipv4/af_inet.c index 95a966d..b4b77aa 100644 --- a/net/ipv4/af_inet.c +++ b/net/ipv4/af_inet.c @@ -110,6 +110,7 @@ #include <net/ipip.h> #include <net/inet_common.h> #include <net/xfrm....
Jul 17, 9:23 am 2008
Pavel Emelyanov
[PATCH 1/16] mib: add netns/mib.h file
The only structure declared within is the netns_mib, which will carry all our mibs within. I didn't put the mibs in the existing netns_xxx structures to make it possible to mark this one as properly aligned and get in a separate "read-mostly" cache-line. Signed-off-by: Pavel Emelyanov <xemul@openvz.org> --- include/net/net_namespace.h | 2 ++ include/net/netns/mib.h | 9 +++++++++ 2 files changed, 11 insertions(+), 0 deletions(-) create mode 100644 include/net/netns/mib.h dif...
Jul 17, 9:21 am 2008
Denis V. Lunev
[PATCH net-next 1/1] ipv6: remove unused parameter from ip6_...
Signed-off-by: Denis V. Lunev <den@openvz.org> --- include/net/ipv6.h | 4 +--- net/ipv6/ipv6_sockglue.c | 7 ++----- net/ipv6/raw.c | 2 +- 3 files changed, 4 insertions(+), 9 deletions(-) diff --git a/include/net/ipv6.h b/include/net/ipv6.h index c2c3649..2d5c185 100644 --- a/include/net/ipv6.h +++ b/include/net/ipv6.h @@ -221,9 +221,7 @@ static inline void fl6_sock_release(struct ip6_flowlabel *fl) atomic_dec(&fl->users); } -extern int ip6_r...
Jul 17, 8:46 am 2008
David Miller
[PATCH 29/31]: pkt_sched: Add multiqueue handling to qdisc_g...
Move the destruction of the old queue into qdisc_graft(). When operating on a root qdisc (ie. "parent == NULL"), apply the operation to all queues. The caller has grabbed a single implicit reference for this graft, therefore when we apply the change to more than one queue we must grab additional qdisc references. Otherwise, we are operating on a class of a specific parent qdisc, and therefore no multiqueue handling is necessary. Signed-off-by: David S. Miller <davem@davemloft.net> --...
Jul 17, 8:18 am 2008
David Miller
[PATCH 31/31]: pkt_sched: Make default qdisc nonshared-multi...
Instead of 'pfifo_fast' we have just plain 'fifo_fast'. No priority queues, just a straight FIFO. This is necessary in order to legally have a seperate qdisc per queue in multi-TX-queue setups, and thus get full parallelization. Signed-off-by: David S. Miller <davem@davemloft.net> --- net/sched/sch_generic.c | 99 ++++++++++------------------------------------ 1 files changed, 22 insertions(+), 77 deletions(-) diff --git a/net/sched/sch_generic.c b/net/sched/sch_generic.c index 8f...
Jul 17, 8:18 am 2008
David Miller
[PATCH 30/31]: pkt_sched: Don't used locked skb_queue_purge(...
We have to have exclusive access to the given qdisc anyways, so doing even more locking is superfluous. Signed-off-by: David S. Miller <davem@davemloft.net> --- include/net/sch_generic.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/include/net/sch_generic.h b/include/net/sch_generic.h index 2902a42..0a158ff 100644 --- a/include/net/sch_generic.h +++ b/include/net/sch_generic.h @@ -374,7 +374,7 @@ static inline void __qdisc_reset_queue(struct Qdisc *sch, ...
Jul 17, 8:18 am 2008
David Miller
[PATCH 28/31]: pkt_sched: Kill netdev_queue lock.
We can simply use the qdisc->q.lock for all of the qdisc tree synchronization. Signed-off-by: David S. Miller <davem@davemloft.net> --- drivers/net/ifb.c | 20 -------------------- include/linux/netdevice.h | 1 - include/net/sch_generic.h | 7 ++++++- net/core/dev.c | 9 +++++---- net/mac80211/wme.c | 19 ++++++++++++------- net/sched/sch_generic.c | 32 +++++++++++++++----------------- net/sched/sch_teql.c | 7 +++++-- 7 files cha...
Jul 17, 8:18 am 2008
David Miller
[PATCH 27/31]: pkt_sched: Kill qdisc_lock_tree and qdisc_unl...
No longer used. Signed-off-by: David S. Miller <davem@davemloft.net> --- include/net/sch_generic.h | 3 --- net/sched/sch_generic.c | 36 +++--------------------------------- 2 files changed, 3 insertions(+), 36 deletions(-) diff --git a/include/net/sch_generic.h b/include/net/sch_generic.h index 60e1e9f..1eef8d0 100644 --- a/include/net/sch_generic.h +++ b/include/net/sch_generic.h @@ -180,9 +180,6 @@ static inline struct net_device *qdisc_dev(struct Qdisc *qdisc) return qd...
Jul 17, 8:18 am 2008
David Miller
[PATCH 26/31]: pkt_sched: Rework {sch,tbf}_tree_lock().
Make sch_tree_lock() lock the qdisc's root. All of the users hold the RTNL semaphore and the root qdisc is not changing. Implement tbf_tree_{lock,unlock}() simply in terms of sch_tree_{lock,unlock}(). Signed-off-by: David S. Miller <davem@davemloft.net> --- include/net/sch_generic.h | 16 ++++++++++++---- 1 files changed, 12 insertions(+), 4 deletions(-) diff --git a/include/net/sch_generic.h b/include/net/sch_generic.h index 3cc4b5c..60e1e9f 100644 --- a/include/net/sch_generic...
Jul 17, 8:18 am 2008
David Miller
[PATCH 24/31]: netdevice: Move qdisc_list back into net_devi...
And give it it's own lock. Signed-off-by: David S. Miller <davem@davemloft.net> --- include/linux/netdevice.h | 3 ++- net/core/dev.c | 2 ++ net/sched/sch_api.c | 31 +++++++------------------------ net/sched/sch_generic.c | 9 +++++++-- 4 files changed, 18 insertions(+), 27 deletions(-) diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index 1e839fa..3170bce 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h @@ -45...
Jul 17, 8:17 am 2008
previous daytodaynext day
July 16, 2008July 17, 2008July 18, 2008