Re: [GIT PULL] IPv6 Updates for 2.6.21-rc1

2007-02-21 Thread YOSHIFUJI Hideaki / 吉藤英明
In article <[EMAIL PROTECTED]> (at Wed, 21 Feb 2007 23:27:35 -0800 (PST)), David Miller <[EMAIL PROTECTED]> says: > From: David Miller <[EMAIL PROTECTED]> > Date: Wed, 21 Feb 2007 23:23:06 -0800 (PST) > > > From: YOSHIFUJI Hideaki / 吉藤英明 <[EMAIL PROTECTED]> > > Date: Thu, 22 Feb 2007 16:05:15 +0

Re: [GIT PULL] IPv6 Updates for 2.6.21-rc1

2007-02-21 Thread David Miller
From: David Miller <[EMAIL PROTECTED]> Date: Wed, 21 Feb 2007 23:23:06 -0800 (PST) > From: YOSHIFUJI Hideaki / 吉藤英明 <[EMAIL PROTECTED]> > Date: Thu, 22 Feb 2007 16:05:15 +0900 (JST) > > > fixed. Please pull from new 2.6.21-rc1-inet6-20070222c branch: > > git pull git://git.linux-ipv6.org/g

Re: [GIT PULL] IPv6 Updates for 2.6.21-rc1

2007-02-21 Thread David Miller
From: YOSHIFUJI Hideaki / 吉藤英明 <[EMAIL PROTECTED]> Date: Thu, 22 Feb 2007 16:05:15 +0900 (JST) > fixed. Please pull from new 2.6.21-rc1-inet6-20070222c branch: > git pull git://git.linux-ipv6.org/gitroot/yoshfuji/linux-2.6-fix.git > 2.6.21-rc1-inet6-20070222c Thank you, it looks much bett

Re: [GIT PULL] IPv6 Updates for 2.6.21-rc1

2007-02-21 Thread YOSHIFUJI Hideaki / 吉藤英明
In article <[EMAIL PROTECTED]> (at Wed, 21 Feb 2007 22:24:00 -0800 (PST)), David Miller <[EMAIL PROTECTED]> says: > File net/ipv6/addrconf_core.c is still missing even in this > updated pull, please fix this. > > I ran: > > git pull git://git.linux-ipv6.org/gitroot/yoshfuji/linux-2.6-fix.git >

Re: [Bug 8013] New: select for write hangs on a socket after write returned ECONNRESET

2007-02-21 Thread David Miller
From: Evgeniy Polyakov <[EMAIL PROTECTED]> Date: Sat, 17 Feb 2007 19:25:33 +0300 > On Fri, Feb 16, 2007 at 09:34:27PM +0300, Evgeniy Polyakov ([EMAIL > PROTECTED]) wrote: > > Otherwise we can extend select output mask to include hungup too > > (getting into account that hungup is actually output

Re: [Bug 8013] New: select for write hangs on a socket after write returned ECONNRESET

2007-02-21 Thread David Miller
From: Evgeniy Polyakov <[EMAIL PROTECTED]> Date: Fri, 16 Feb 2007 21:34:27 +0300 > Otherwise we can extend select output mask to include hungup too > (getting into account that hungup is actually output event). POLLHUP is non-maskable and this is very clearly defined in just about every Unix defi

Re: [GIT PULL] IPv6 Updates for 2.6.21-rc1

2007-02-21 Thread David Miller
From: YOSHIFUJI Hideaki / 吉藤英明 <[EMAIL PROTECTED]> Date: Thu, 22 Feb 2007 13:32:12 +0900 (JST) > Hello. > > In article <[EMAIL PROTECTED]> (at Thu, 22 Feb 2007 13:13:54 +0900 (JST)), > YOSHIFUJI Hideaki / 吉藤英明 <[EMAIL PROTECTED]> says: > > > In article <[EMAIL PROTECTED]> (at Thu, 22 Feb 2007 1

Re: Extensible hashing and RCU

2007-02-21 Thread Eric Dumazet
Robert Olsson a écrit : David Miller writes: > But what about if tree lookup were free :-) > > This is why I consider Robert Olsson's trash work the most promising, > if we stick sockets into his full flow identified routing cache trie > entries, we can eliminate lookup altogether. > >

[GIT PULL] IPv6 Updates for 2.6.21-rc1

2007-02-21 Thread YOSHIFUJI Hideaki / 吉藤英明
Hello. Here's several fixes on top of 2.6.21-rc1. Changesets are available on the 2.6.21-rc1-inet6-20070222 branch at . Regards, --- HEADLINES - [IPV6] ADDRCONF: Statically link __ipv6_addr_type() for sunrpc subsystem. [IPV6] IP6TUNNEL: Use update_pmtu() of dst

Re: [PATCH] Correct links in net/ipv4/Kconfig

2007-02-21 Thread David Miller
From: Baruch Even <[EMAIL PROTECTED]> Date: Wed, 21 Feb 2007 20:23:35 +0200 > Correct dead/indirect links in net/ipv4/Kconfig > > Signed-Off-By: Baruch Even <[EMAIL PROTECTED]> Applied, thank you. - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EM

RE: Linux 2.6 HTB does only work with existing connections

2007-02-21 Thread Hua Zhong
Correction: it's TSO, not TOE. By googling I found that specifying a big MTU (like 16500) on the "tc class" command avoids the "giant" packets. No idea where they come from. Any better idea on a proper fix? > -Original Message- > From: Hua Zhong [mailto:[EMAIL PROTECTED] > Sent: Wednesda

RE: Linux 2.6 HTB does only work with existing connections

2007-02-21 Thread Hua Zhong
Just add more info: this machine has TOE. And if that's turned off, everything seems to work fine. Does it mean that traffic control doesn't play well with TOE? Or there are some tricks to make them work together? Thanks for any pointers. BTW: it's x86_64 but I guess it doesn't matter much. > -

Linux 2.6 HTB does only work with existing connections

2007-02-21 Thread Hua Zhong
Hi all, I tried to use HTB on a 2.6.12 based kernel. It seems that if I issue the tc commands, existing connections adjust bandwidth immediately, but any new connections won't be filtered correctly. The tc version is 3.17. The commands are very simple (only eth1 is active): tc qdisc del dev

Re: [Bugme-new] [Bug 8053] New: net/ieee80211/ieee80211_crypt_tkip.c spams kernel message buffer

2007-02-21 Thread Andrew Morton
On Wed, 21 Feb 2007 16:57:59 -0800 [EMAIL PROTECTED] wrote: > http://bugzilla.kernel.org/show_bug.cgi?id=8053 > >Summary: net/ieee80211/ieee80211_crypt_tkip.c spams kernel > message buffer > Kernel Version: 2.6.20.1 > Status: NEW > Severit

[PATCH 2/2] sky2: dual-port pci-x checksum fix

2007-02-21 Thread Stephen Hemminger
Add a workaround for dual port PCI-X card that returns status out of order sometimes because of split transactions. Signed-off-by: Stephen Hemminger <[EMAIL PROTECTED]> --- linux-2.6.16.40.orig/drivers/net/sky2.c 2007-02-14 16:45:23.0 -0800 +++ linux-2.6.16.40/drivers/net/sky2.c 20

[PATCH 1/2] sky2: fix for NAPI with dual port boards

2007-02-21 Thread Stephen Hemminger
This driver uses port 0 to handle receives on both ports. So the netif_poll_disable call in dev_close would end up stopping the second port on dual port cards. Signed-off-by: Stephen Hemminger <[EMAIL PROTECTED]> --- drivers/net/sky2.c |7 +++ 1 file changed, 7 insertions(+) --- linux-2

[PATCH 0/2] sky2: patches for 2.6.16 -stable

2007-02-21 Thread Stephen Hemminger
I compared the current sky2 driver against the version in 2.6.16.40. These were the only two patches that should be added. They both relate to dual port boards, and not to many people have them. -- Stephen Hemminger <[EMAIL PROTECTED]> - To unsubscribe from this list: send the line "unsubscribe n

Re: [Bridge] [PATCH 1/4] bridge: get rid of miscdevice include

2007-02-21 Thread Marc . Obbad
How to get those fixes for testing ? Thanks, -Marc. Stephen Hemminger

Re: [RFC] split NAPI from network device.

2007-02-21 Thread Benjamin Herrenschmidt
> Actually, Ben did you determine if this scheme works for your device > which has a single interrupt source yet multiple queues? There is one > driver that, during the conversion, I noticed has a similar issue. > One driver, netxen, has multiple channels, so it just passes in > "bugdet / NUM_CHA

Re: Extensible hashing and RCU

2007-02-21 Thread Robert Olsson
David Miller writes: > But what about if tree lookup were free :-) > > This is why I consider Robert Olsson's trash work the most promising, > if we stick sockets into his full flow identified routing cache trie > entries, we can eliminate lookup altogether. > > Just like how he already

[PATCH 3/4] bridge: make path cost setting persistent

2007-02-21 Thread Stephen Hemminger
This is to keep an STP port path cost which was set by a user from replaced by the link-speed based path cost whenever the link goes down and comes back up. An admin_cost field is added to struct net_bridge_port to indicate whether there is a user specified path cost. Signed-Off-By: Srinivas Aji

[PATCH 2/4] bridge: eliminate workqueue for carrier check

2007-02-21 Thread Stephen Hemminger
Having a work queue for checking carrier leads to lots of race issues. Simpler to just get the cost when data structure is created and update on change. Signed-off-by: StephenHemminger <[EMAIL PROTECTED]> --- net/bridge/br_if.c | 30 +- net/bridge/br_notify.c

[PATCH 4/4] bridge: add flush attribute

2007-02-21 Thread Stephen Hemminger
Add a flush attribute to sysfs to allow flushing forwarding table. This can be used by user level spanning tree protocol to clear state. --- net/bridge/br_fdb.c | 11 --- net/bridge/br_sysfs_br.c | 14 ++ net/bridge/br_sysfs_if.c |8 3 files changed, 30 i

[PATCH 1/4] bridge: get rid of miscdevice include

2007-02-21 Thread Stephen Hemminger
The bridge hasn't used miscdevice for a long long time. Signed-off-by: StephenHemminger <[EMAIL PROTECTED]> --- net/bridge/br_private.h |1 - 1 file changed, 1 deletion(-) --- bridge.orig/net/bridge/br_private.h 2007-02-21 10:57:26.0 -0800 +++ bridge/net/bridge/br_private.h 200

[PATCH 0/4] bridge patches

2007-02-21 Thread Stephen Hemminger
Several patches to bridge. #1 is a nit, #2 is a bug fix, #3 and #4 are manageability enhancements (they can wait for 2.6.22 if needed). -- Stephen Hemminger <[EMAIL PROTECTED]> - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More m

Re: [RFT] bridge: eliminate port_check workqueue

2007-02-21 Thread Oleg Nesterov
On 02/21, Stephen Hemminger wrote: > > I would rather put it in a bugfix patchset for 2.6.21 and 2.6.20-stable OK. Even better. Could you also remove br_private.h:BR_PORT_DEBOUNCE then? Oleg. - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL P

Re: [RFT] bridge: eliminate port_check workqueue

2007-02-21 Thread Stephen Hemminger
On Wed, 21 Feb 2007 23:09:16 +0300 Oleg Nesterov <[EMAIL PROTECTED]> wrote: > On 02/21, Stephen Hemminger wrote: > > > > This is what I was suggesting by getting rid of the work queue completely. > > Can't comment this patch, but if we can get rid of the work_struct - good! > > > -static void po

Re: [TIPC] Missing null check in the socket code.

2007-02-21 Thread Max Krasnyansky
Hi Jon, Acknowledged. We'll deliver it along with some other patches ASAP. Thanx Did you get a chance to look at my other patch for the header packing ? Max - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at

Re: Extensible hashing and RCU

2007-02-21 Thread Michael K. Edwards
Look, Evgeniy. Eric and I may be morons but davem is not. He's telling you, again and again, that DoS attacks do happen, that to survive them you need for the distribution of tuples within hash buckets to vary unpredictably from system to system and boot to boot, and that XOR hash does not accom

[PATCH 2.6.21] iw_cxgb3: Stop the EP Timer on BAD CLOSE.

2007-02-21 Thread Steve Wise
Stop the ep timer in ec_status() if the status indicates a bad close. Signed-off-by: Steve Wise <[EMAIL PROTECTED]> --- drivers/infiniband/hw/cxgb3/iwch_cm.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers/infiniband/hw/cxgb3/iwch_cm.c b/drivers/infiniband/hw/cx

[PATCH] ucc_geth: use of_get_mac_address()

2007-02-21 Thread Timur Tabi
Update ucc_geth_probe() to use function of_get_mac_address() to obtain the MAC address. Signed-off-by: Timur Tabi <[EMAIL PROTECTED]> --- drivers/net/ucc_geth.c |4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) diff --git a/drivers/net/ucc_geth.c b/drivers/net/ucc_geth.c index a2fc2b

Re: [RFT] bridge: eliminate port_check workqueue

2007-02-21 Thread Oleg Nesterov
On 02/21, Stephen Hemminger wrote: > > This is what I was suggesting by getting rid of the work queue completely. Can't comment this patch, but if we can get rid of the work_struct - good! > -static void port_carrier_check(struct work_struct *work) > +void br_port_carrier_check(struct net_bridge_

Re: iwlwifi warnings

2007-02-21 Thread Pavel Machek
Hi! > BUilding with sparse shows lots of warnings. You seem to be the lucky one, able to actually compile the beast. Could you run diff against vanilla and post it somewhere? "Normal" installation procedure has too many steps in my eyes, and combined git tree is not available, so I was waiting f

[RFT] bridge: eliminate port_check workqueue

2007-02-21 Thread Stephen Hemminger
This is what I was suggesting by getting rid of the work queue completely. --- net/bridge/br_if.c | 34 -- net/bridge/br_notify.c | 25 +++-- net/bridge/br_private.h |5 ++--- 3 files changed, 21 insertions(+), 43 deletions(-) ---

[PATCH] Correct links in net/ipv4/Kconfig

2007-02-21 Thread Baruch Even
Correct dead/indirect links in net/ipv4/Kconfig Signed-Off-By: Baruch Even <[EMAIL PROTECTED]> Index: 2.6-gt/net/ipv4/Kconfig === --- 2.6-gt.orig/net/ipv4/Kconfig2007-02-17 15:47:41.0 +0200 +++ 2.6-gt/net/ipv4/Kconfig

[PATCH 2/2] myri10ge: large receive offload

2007-02-21 Thread Brice Goglin
Add Large Receive Offload implemented in software. Signed-off-by: Brice Goglin <[EMAIL PROTECTED]> --- drivers/net/myri10ge/myri10ge.c | 422 1 file changed, 422 insertions(+) Index: linux-rc/drivers/net/myri10ge/myri10ge.c ==

[PATCH 1/2] myri10ge: workaround buggy adopted firmwares

2007-02-21 Thread Brice Goglin
Work around a bug which occurs when adopting firmware versions 1.4.4 though 1.4.11 where broadcasts are filtered as if they were multicasts. Signed-off-by: Brice Goglin <[EMAIL PROTECTED]> --- drivers/net/myri10ge/myri10ge.c | 27 +++ 1 file changed, 23 insertions(+), 4

[PATCH 0/2] myri10ge updates

2007-02-21 Thread Brice Goglin
Hi Jeff, No big change in myri10ge these days, mainly just a workaround for boards that were shipped with a bug in their firmware (patch #1, for 2.6.21). Since things are pretty calm here, I am also resending the Large Receive Offload patch for inclusion (patch #2, maybe only for 2.6.22?). I didn

Re: [PATCH] ehea: dynamic add / remove port

2007-02-21 Thread John Rose
On Wed, 2007-02-21 at 10:06, Jan-Bernd Themann wrote: > This patch introduces functionality to dynamically add / remove > ehea ports via an userspace DLPAR tool. It creates a subnode for > each logical port in the sysfs. Looks great! Signed-off-by: Jan-Bernd Themann <[EMAIL PROTECTED]> Acked-by:

RE: [TIPC] Missing null check in the socket code.

2007-02-21 Thread Jon Maloy \(QB/EMC\)
Acknowledged. We'll deliver it along with some other patches ASAP. ///jon -Original Message- From: Max Krasnyansky [mailto:[EMAIL PROTECTED] Sent: Tue 2/20/2007 1:48 PM To: [EMAIL PROTECTED] Cc: netdev@vger.kernel.org; Jon Maloy (QB/EMC); [EMAIL PROTECTED] Subject: Re: [TIPC] Missing nu

Re: all syscalls initially taking 4usec on a P4? Re: nonblocking UDPv4 recvfrom() taking 4usec @ 3GHz?

2007-02-21 Thread Chuck Ebbert
Arjan van de Ven wrote: > also.. running "vmstat 3" and looking at the "cs" column is interesting; > it shouldn't be above 50 or so in idle (well not above 10 but our > userland stinks too much for that) I average 6 or so with my normal configuration. Chuck "kill the daemons" Ebbert - To unsubsc

[PATCH] ehea: dynamic add / remove port

2007-02-21 Thread Jan-Bernd Themann
This patch introduces functionality to dynamically add / remove ehea ports via an userspace DLPAR tool. It creates a subnode for each logical port in the sysfs. This subnode contains the following attributes: - link to ethX that represents the port - logical port number - path in the OFDT (devspe

Re: [PATCH 03/29] mm: allow PF_MEMALLOC from softirq context

2007-02-21 Thread Arjan van de Ven
> Index: linux-2.6-git/kernel/softirq.c > === > --- linux-2.6-git.orig/kernel/softirq.c 2006-12-14 10:02:18.0 > +0100 > +++ linux-2.6-git/kernel/softirq.c2006-12-14 10:02:52.0 +0100 > @@ -209,6 +209,8 @@ asm

Re: [PATCH 08/29] mm: kmem_cache_objs_to_pages()

2007-02-21 Thread Pekka Enberg
Hi Peter, On 2/21/07, Peter Zijlstra <[EMAIL PROTECTED]> wrote: Provide a method to calculate the number of pages needed to store a given number of slab objects (upper bound when considering possible partial and free slabs). So how does this work? You ask the slab allocator how many pages you

Slow connection with RTL8168b/8111b

2007-02-21 Thread Dirk
Hello, I'm experiencing very slow and fluctuating networkspeeds with my onboard Realtek network card with certain applications. Situation description: Host A is my new file server and has 1 physical network interface (Onboard RTL8168b/8111b nic) with 3 vlans defined (Internet, Internal networ

Re: [PATCH 02/29] mm: slab allocation fairness

2007-02-21 Thread Pekka Enberg
On 2/21/07, Peter Zijlstra <[EMAIL PROTECTED]> wrote: [AIM9 results go here] Yes please. I would really like to know what we gain by making the slab even more complex. - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordom

[PATCH 14/29] netvm: INET reserves.

2007-02-21 Thread Peter Zijlstra
Add reserves for INET. The two big users seem to be the route cache and ip-fragment cache. Account the route cache to the auxillary reserve. Account the fragments to the skb reserve so that one can at least overflow the fragment cache (avoids fragment deadlocks). Signed-off-by: Peter Zijlstra <[

[PATCH 15/29] netvm: hook skb allocation to reserves

2007-02-21 Thread Peter Zijlstra
Change the skb allocation api to indicate RX usage and use this to fall back to the reserve when needed. Skbs allocated from the reserve are tagged in skb->emergency. Teach all other skb ops about emergency skbs and the reserve accounting. Use the (new) packet split API to allocate and track frag

[PATCH 13/29] netvm: link network to vm layer

2007-02-21 Thread Peter Zijlstra
Hook up networking to the memory reserve. There are two kinds of reserves: skb and aux. - skb reserves are used for incomming packets, - aux reserves are used for processing these packets. The consumers for these reserves are sockets marked with: SOCK_VMIO Such sockets are to be used to ser

[PATCH 01/29] mm: page allocation rank

2007-02-21 Thread Peter Zijlstra
Introduce page allocation rank. This allocation rank is an measure of the 'hardness' of the page allocation. Where hardness refers to how deep we have to reach (and thereby if reclaim was activated) to obtain the page. It basically is a mapping from the ALLOC_/gfp flags into a scalar quantity, w

[PATCH 22/29] mm: add support for non block device backed swap files

2007-02-21 Thread Peter Zijlstra
A new addres_space_operations method is added: int swapfile(struct address_space *, int) When during sys_swapon() this method is found and returns no error the swapper_space.a_ops will proxy to sis->swap_file->f_mapping->a_ops. The swapfile method will be used to communicate to the address_spa

[PATCH 28/29] nfs: enable swap on NFS

2007-02-21 Thread Peter Zijlstra
Provide an ops->swapfile() implementation for NFS. This will set the NFS socket to SOCK_VMIO and run socket reconnect under PF_MEMALLOC as well as reset SOCK_VMIO before engaging the protocol ->connect() method. PF_MEMALLOC should allow the allocation of struct socket and related objects and the e

[PATCH 11/29] net: packet split receive api

2007-02-21 Thread Peter Zijlstra
Add some packet-split receive hooks. For one this allows to do NUMA node affine page allocs. Later on these hooks will be extended to do emergency reserve allocations for fragments. Signed-off-by: Peter Zijlstra <[EMAIL PROTECTED]> --- drivers/net/e1000/e1000_main.c |8 ++-- drivers/net

[PATCH 27/29] nfs: disable data cache revalidation for swapfiles

2007-02-21 Thread Peter Zijlstra
Do as Trond suggested: http://lkml.org/lkml/2006/8/25/348 Disable NFS data cache revalidation on swap files since it doesn't really make sense to have other clients change the file while you are using it. Thereby we can stop setting PG_private on swap pages, since there ought to be no further

[PATCH 12/29] net: remove alloc_skb_from_cache

2007-02-21 Thread Peter Zijlstra
Lets get rid of the unused alloc_skb_from_cache() thing. Signed-off-by: Peter Zijlstra <[EMAIL PROTECTED]> --- include/linux/skbuff.h |3 -- net/core/dev.c |1 net/core/skbuff.c | 71 ++--- 3 files changed, 11 insertions(+), 64 d

[PATCH 06/29] mm: __GFP_EMERGENCY

2007-02-21 Thread Peter Zijlstra
__GFP_EMERGENCY will allow the allocation to disregard the watermarks, much like PF_MEMALLOC. Signed-off-by: Peter Zijlstra <[EMAIL PROTECTED]> --- include/linux/gfp.h |7 ++- mm/internal.h | 10 +++--- 2 files changed, 13 insertions(+), 4 deletions(-) Index: linux-2.6-git/i

[PATCH 23/29] mm: methods for teaching filesystems about PG_swapcache pages

2007-02-21 Thread Peter Zijlstra
In order to teach filesystems to handle swap cache pages, two new page functions are introduced: pgoff_t page_file_index(struct page *); struct address_space *page_file_mapping(struct page *); page_file_index - gives the offset of this page in the file in PAGE_CACHE_SIZE blocks. Like page->in

[PATCH 17/29] netvm: prevent a TCP specific deadlock

2007-02-21 Thread Peter Zijlstra
It could happen that all !SOCK_VMIO sockets have buffered so much data that we're over the global rmem limit. This will prevent SOCK_VMIO buffers from receiving data, which will prevent userspace from running, which is needed to reduce the buffered data. Signed-off-by: Peter Zijlstra <[EMAIL PROTE

[PATCH 03/29] mm: allow PF_MEMALLOC from softirq context

2007-02-21 Thread Peter Zijlstra
Allow PF_MEMALLOC to be set in softirq context. When running softirqs from a borrowed context save current->flags, ksoftirqd will have its own task_struct. Signed-off-by: Peter Zijlstra <[EMAIL PROTECTED]> --- kernel/softirq.c |3 +++ mm/internal.h| 14 -- 2 files changed,

[PATCH 00/29] swap over networked storage -v11

2007-02-21 Thread Peter Zijlstra
(patches against 2.6.20-mm1) There is a fundamental deadlock associated with paging; when writing out a page to free memory requires free memory to complete. The usually solution is to keep a small amount of memory available at all times so we can overcome this problem. This however assumes the am

[PATCH 04/29] mm: serialize access to min_free_kbytes

2007-02-21 Thread Peter Zijlstra
There is a small race between the procfs caller and the memory hotplug caller of setup_per_zone_pages_min(). Not a big deal, but the next patch will add yet another caller. Time to close the gap. Signed-off-by: Peter Zijlstra <[EMAIL PROTECTED]> --- mm/page_alloc.c | 16 +--- 1 file

[PATCH 08/29] mm: kmem_cache_objs_to_pages()

2007-02-21 Thread Peter Zijlstra
Provide a method to calculate the number of pages needed to store a given number of slab objects (upper bound when considering possible partial and free slabs). Signed-off-by: Peter Zijlstra <[EMAIL PROTECTED]> --- include/linux/slab.h |1 + mm/slab.c|6 ++ 2 files changed

[PATCH 20/29] uml: rename arch/um remove_mapping()

2007-02-21 Thread Peter Zijlstra
When 'include/linux/mm.h' includes 'include/linux/swap.h', the global remove_mapping() definition clashes with the arch/um one. Rename the arch/um one. Signed-off-by: Peter Zijlstra <[EMAIL PROTECTED]> Acked-by: Jeff Dike <[EMAIL PROTECTED]> --- arch/um/kernel/physmem.c |6 +++--- 1 file cha

[PATCH 07/29] mm: allow mempool to fall back to memalloc reserves

2007-02-21 Thread Peter Zijlstra
Allow the mempool to use the memalloc reserves when all else fails and the allocation context would otherwise allow it. Signed-off-by: Peter Zijlstra <[EMAIL PROTECTED]> --- mm/mempool.c | 10 ++ 1 file changed, 10 insertions(+) Index: linux-2.6-git/mm/mempool.c ===

[PATCH 18/29] netfilter: notify about NF_QUEUE vs emergency skbs

2007-02-21 Thread Peter Zijlstra
Emergency skbs should never touch user-space, however NF_QUEUE is fully user configurable. Notify the user of his mistake and try to continue. Signed-off-by: Peter Zijlstra <[EMAIL PROTECTED]> --- net/netfilter/core.c |5 + 1 file changed, 5 insertions(+) Index: linux-2.6-git/net/netfilt

[PATCH 16/29] netvm: filter emergency skbs.

2007-02-21 Thread Peter Zijlstra
Toss all emergency packets not for a SOCK_VMIO socket. This ensures our precious memory reserve doesn't get stuck waiting for user-space. Signed-off-by: Peter Zijlstra <[EMAIL PROTECTED]> --- include/net/sock.h |3 +++ 1 file changed, 3 insertions(+) Index: linux-2.6-git/include/net/sock.h =

Re: [PATCH 09/29] selinux: tag avc cache alloc as non-critical

2007-02-21 Thread James Morris
On Wed, 21 Feb 2007, Peter Zijlstra wrote: > Failing to allocate a cache entry will only harm performance. > > Signed-off-by: Peter Zijlstra <[EMAIL PROTECTED]> > --- > security/selinux/avc.c |2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Acked-by: James Morris <[EMAIL PROTECTED]>

[PATCH 26/29] nfs: teach the NFS client how to treat PG_swapcache pages

2007-02-21 Thread Peter Zijlstra
Replace all relevant occurences of page->index and page->mapping in the NFS client with the new page_file_index() and page_file_mapping() functions. Signed-off-by: Peter Zijlstra <[EMAIL PROTECTED]> Cc: Trond Myklebust <[EMAIL PROTECTED]> --- fs/nfs/file.c |4 ++-- fs/nfs/internal.h |

[PATCH 19/29] netvm: skb processing

2007-02-21 Thread Peter Zijlstra
In order to make sure emergency packets receive all memory needed to proceed ensure processing of emergency skbs happens under PF_MEMALLOC. Use the (new) sk_backlog_rcv() wrapper to ensure this for backlog processing. Skip taps, since those are user-space again. Signed-off-by: Peter Zijlstra <[E

[PATCH 10/29] net: wrap sk->sk_backlog_rcv()

2007-02-21 Thread Peter Zijlstra
Wrap calling sk->sk_backlog_rcv() in a function. This will allow extending the generic sk_backlog_rcv behaviour. Signed-off-by: Peter Zijlstra <[EMAIL PROTECTED]> --- include/net/sock.h |5 + net/core/sock.c |4 ++-- net/ipv4/tcp.c |2 +- net/ipv4/tcp_timer.c |2 +

[PATCH 05/29] mm: emergency pool

2007-02-21 Thread Peter Zijlstra
Provide means to reserve a specific amount pages. The emergency pool is separated from the min watermark because ALLOC_HARDER and ALLOC_HIGH modify the watermark in a relative way and thus do not ensure a strict minimum. Signed-off-by: Peter Zijlstra <[EMAIL PROTECTED]> --- include/linux/mmzone.

[PATCH 24/29] nfs: remove mempools

2007-02-21 Thread Peter Zijlstra
With the introduction of the shared dirty page accounting in .19, NFS should not be able to surpise the VM with all dirty pages. Thus it should always be able to free some memory. Hence no more need for mempools. Signed-off-by: Peter Zijlstra <[EMAIL PROTECTED]> Cc: Trond Myklebust <[EMAIL PROTECT

[PATCH 21/29] mm: prepare swap entry methods for use in page methods

2007-02-21 Thread Peter Zijlstra
Move around the swap entry methods in preparation for use from page methods. Also provide a function to obtain the swap_info_struct backing a swap cache page. Signed-off-by: Peter Zijlstra <[EMAIL PROTECTED]> CC: Trond Myklebust <[EMAIL PROTECTED]> --- include/linux/mm.h |8 in

[PATCH 29/29] balance_dirty_pages() vs throttle_vm_writeout() deadlock

2007-02-21 Thread Peter Zijlstra
If we have a lot of dirty memory and hit the throttle in balance_dirty_pages() we (potentially) generate a lot of writeback and unstable pages, if however during this writeback we need to reclaim a bit, we might hit throttle_vm_writeout(), which might delay us until the combined total of NR_UNSTABL

[PATCH 02/29] mm: slab allocation fairness

2007-02-21 Thread Peter Zijlstra
The slab allocator has some unfairness wrt gfp flags; when the slab cache is grown the gfp flags are used to allocate more memory, however when there is slab cache available (in partial or free slabs, per cpu caches or otherwise) gfp flags are ignored. Thus it is possible for less critical slab a

[PATCH 25/29] nfs: only use stable storage for swap

2007-02-21 Thread Peter Zijlstra
unstable writes don't make sense for swap pages. Signed-off-by: Peter Zijlstra <[EMAIL PROTECTED]> Cc: Trond Myklebust <[EMAIL PROTECTED]> --- fs/nfs/write.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Index: linux-2.6-git/fs/nfs/write.c =

[PATCH 09/29] selinux: tag avc cache alloc as non-critical

2007-02-21 Thread Peter Zijlstra
Failing to allocate a cache entry will only harm performance. Signed-off-by: Peter Zijlstra <[EMAIL PROTECTED]> --- security/selinux/avc.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Index: linux-2.6-git/security/selinux/avc.c

[PATCH 2/2] NetXen: Driver ifconfig fix

2007-02-21 Thread Amit S. Kale
Signed-off-by: Amit S. Kale <[EMAIL PROTECTED]> --- netxen_nic_main.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/netxen/netxen_nic_main.c b/drivers/net/netxen/netxen_nic_main.c index b2fc2bc..1bf3d49 100644 --- a/drivers/net/netxen/netxen_nic_main.c

[PATCH 1/2] NetXen: Driver unload fixes

2007-02-21 Thread Amit S. Kale
Signed-off-by: Amit S. Kale <[EMAIL PROTECTED]> --- My apologizes for sending patch with wrong order/number of patches in subject line. Now I am resending both the patches with correct line. Thanks, --Amit netxen_nic_hw.c |9 + netxen_nic_main.c |2 +- 2 files changed, 6 ins

[PATCH 0/1] NetXen: Driver unload fixes

2007-02-21 Thread Amit S. Kale
Signed-off-by: Amit S. Kale <[EMAIL PROTECTED]> --- netxen_nic_hw.c |9 + netxen_nic_main.c |2 +- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/drivers/net/netxen/netxen_nic_hw.c b/drivers/net/netxen/netxen_nic_hw.c index 7195af3..deec796 100644 --- a/drivers

[PATCH 0/2] NetXen: 1G/10G Ethernet Driver updates

2007-02-21 Thread Amit S. Kale
I will be sending NetXen: 1G/10G Ethernet Driver updates with respect to netdev #upstream in the subsequent emails. Thanks, --Amit - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/major

Re: [PATCH] net/bridge/br_if.c: fix possible use-after-free in port_carrier_check()

2007-02-21 Thread Oleg Nesterov
On 02/21, Jarek Poplawski wrote: > > > On Wed, 21 Feb 2007 01:19:41 +0300 > > Oleg Nesterov <[EMAIL PROTECTED]> wrote: > > > > > + p = container_of(work, struct net_bridge_port, carrier_check.work); > > > > > > rtnl_lock(); > > > - p = dev->br_port; > > > - if (!p) > > > - goto done; >

Re: [PATCH] net/bridge/br_if.c: fix possible use-after-free in port_carrier_check()

2007-02-21 Thread Oleg Nesterov
On 02/20, Stephen Hemminger wrote: > > On Wed, 21 Feb 2007 01:19:41 +0300 > Oleg Nesterov <[EMAIL PROTECTED]> wrote: > > > static void release_nbp(struct kobject *kobj) > > { > > struct net_bridge_port *p > > = container_of(kobj, struct net_bridge_port, kobj); > > + > > + dev_p

Re: [git patches] net driver updates

2007-02-21 Thread John W. Linville
On Wed, Feb 21, 2007 at 12:46:46PM +0100, Roger While wrote: > > > > >Dan Williams (1): > > prism54: correct assignment of DOT1XENABLE in WE-19 codepaths > > Where did this spring from ? > I see no posting of this patch let alone > an ACK. > The patch is also doing rather more than the descr

Re: [PATCH] IPv6: Implement RFC 4429 Optimistic Duplicate Address Detection

2007-02-21 Thread Neil Horman
On Wed, Feb 21, 2007 at 01:30:31AM -0800, David Miller wrote: > From: YOSHIFUJI Hideaki <[EMAIL PROTECTED]> > Date: Wed, 21 Feb 2007 17:15:45 +0900 (JST) > > > In article <[EMAIL PROTECTED]> (at Wed, 21 Feb 2007 00:02:22 -0800 (PST)), > > David Miller <[EMAIL PROTECTED]> says: > > > > > > So, I

Re: Extensible hashing and RCU

2007-02-21 Thread David Miller
From: Eric Dumazet <[EMAIL PROTECTED]> Date: Wed, 21 Feb 2007 14:19:30 +0100 > Now, when the rate of lookups/inserts/delete is high, with totally random > endpoints and cache *always* cold , 'tree structures' are not welcome (not > cache friendly) But what about if tree lookup were free :-) Th

Re: Extensible hashing and RCU

2007-02-21 Thread Eric Dumazet
On Wednesday 21 February 2007 13:41, Andi Kleen wrote: > Eric Dumazet <[EMAIL PROTECTED]> writes: > > For example, sock_wfree() uses 1.6612 % of cpu because of false sharing > > of sk_flags (dirtied each time SOCK_QUEUE_SHRUNK is set :( > > Might be easily fixable by moving the fields around a bit?

Re: [git patches] net driver updates

2007-02-21 Thread Johannes Berg
On Wed, 2007-02-21 at 12:46 +0100, Roger While wrote: > > > >Dan Williams (1): > > prism54: correct assignment of DOT1XENABLE in WE-19 codepaths > > Where did this spring from ? wireless > I see no posting of this patch let alone > an ACK. > The patch is also doing rather more than the des

Re: all syscalls initially taking 4usec on a P4? Re: nonblocking UDPv4 recvfrom() taking 4usec @ 3GHz?

2007-02-21 Thread Andi Kleen
On Wed, Feb 21, 2007 at 02:06:34PM +0300, Evgeniy Polyakov wrote: > Here is data for 50 bytes reading for essentially idle machine > (core duo 2.4 ghz): > > delta for syscall: 3326961404-3326969261: 7857 cycles = 3.273750 us Can you oprofile it too? -Andi - To unsubscribe from this list: send t

[git patches] net driver updates

2007-02-21 Thread Roger While
Dan Williams (1): prism54: correct assignment of DOT1XENABLE in WE-19 codepaths Where did this spring from ? I see no posting of this patch let alone an ACK. The patch is also doing rather more than the description - It is inserting extra breaks into a switch statement with no comment a

Re: Extensible hashing and RCU

2007-02-21 Thread Andi Kleen
Eric Dumazet <[EMAIL PROTECTED]> writes: > > For example, sock_wfree() uses 1.6612 % of cpu because of false sharing of > sk_flags (dirtied each time SOCK_QUEUE_SHRUNK is set :( Might be easily fixable by moving the fields around a bit? > If we want to optimize tcp, we should reorder fields to

Re: all syscalls initially taking 4usec on a P4? Re: nonblocking UDPv4 recvfrom() taking 4usec @ 3GHz?

2007-02-21 Thread Evgeniy Polyakov
Here is data for 50 bytes reading for essentially idle machine (core duo 2.4 ghz): delta for syscall: 3326961404-3326969261: 7857 cycles = 3.273750 us delta for syscall: 3326975687-3326980979: 5292 cycles = 2.205000 us delta for syscall: 3327199967-3327205583: 5616 cycles = 2.34 us delta for

Re: PATCH: Update mailing list info for 802.1q vlans

2007-02-21 Thread David Miller
From: Ben Greear <[EMAIL PROTECTED]> Date: Fri, 16 Feb 2007 15:56:44 -0800 > Dave, could you apply this please? The old mailing > list is dead and gone. Ben, please don't send me white-space damaged patches like this. If in doubt, send the patch to yourself and try to apply it. Thanks. - To un

Re: [PATCH] Correct links in net/ipv4/Kconfig

2007-02-21 Thread David Miller
From: Baruch Even <[EMAIL PROTECTED]> Date: Sat, 17 Feb 2007 15:57:38 +0200 > Fix bug #6216, update the link for CONFIG_IP_MCAST help message. The bug with > the proposed fix was submitted by [EMAIL PROTECTED] > > Correct other dead/indirect links in the same file. > > Signed-Off-By: Baruch Even

Re: [PATCH 1/5][SCTP]: Implement SCTP_FRAGMENT_INTERLEAVE socket option.

2007-02-21 Thread David Miller
From: Sridhar Samudrala <[EMAIL PROTECTED]> Date: Wed, 21 Feb 2007 00:20:44 -0800 > David Miller wrote: > > From: Sridhar Samudrala <[EMAIL PROTECTED]> > > Date: Fri, 16 Feb 2007 19:39:43 -0800 > > > > > >> [SCTP]: Implement SCTP_FRAGMENT_INTERLEAVE socket option. > >> > > > > Sorry, these

Re: Extensible hashing and RCU

2007-02-21 Thread David Miller
From: Evgeniy Polyakov <[EMAIL PROTECTED]> Date: Wed, 21 Feb 2007 12:51:09 +0300 > Linux route cache does not change $c (third parameter), and it _seems_ > that distribution for the random $a and $b is fair, while when $c is > formed over attacker's data, random per-boot $initval does not help. I

Re: Extensible hashing and RCU

2007-02-21 Thread Evgeniy Polyakov
On Wed, Feb 21, 2007 at 10:38:22AM +0100, Eric Dumazet ([EMAIL PROTECTED]) wrote: > On Wednesday 21 February 2007 10:27, Evgeniy Polyakov wrote: > > On Wed, Feb 21, 2007 at 10:15:11AM +0100, Eric Dumazet ([EMAIL PROTECTED]) > wrote: > > > On Wednesday 21 February 2007 09:54, Evgeniy Polyakov wrot

Re: Extensible hashing and RCU

2007-02-21 Thread Evgeniy Polyakov
On Wed, Feb 21, 2007 at 01:34:40AM -0800, David Miller ([EMAIL PROTECTED]) wrote: > > I repeat again - add your salt into jenkins hash and I will show you > > that it has the same problems. > > So, I'm waiting for your patch for jhash_*_words(). > > The problem is that whilst XOR, with arbitrary

Re: Extensible hashing and RCU

2007-02-21 Thread Eric Dumazet
On Wednesday 21 February 2007 10:27, Evgeniy Polyakov wrote: > On Wed, Feb 21, 2007 at 10:15:11AM +0100, Eric Dumazet ([EMAIL PROTECTED]) wrote: > > On Wednesday 21 February 2007 09:54, Evgeniy Polyakov wrote: > > > I shown that numbers 4 times already, do you read mails and links? > > > Did you s

Re: Extensible hashing and RCU

2007-02-21 Thread David Miller
From: Evgeniy Polyakov <[EMAIL PROTECTED]> Date: Wed, 21 Feb 2007 11:56:08 +0300 > On Tue, Feb 20, 2007 at 12:09:59PM -0800, Michael K. Edwards ([EMAIL > PROTECTED]) wrote: > > On 2/20/07, Michael K. Edwards <[EMAIL PROTECTED]> wrote: > > >Correct. That's called a "weak hash", and Jenkins is kno

  1   2   >