Re: [RFC 1/2] [IPV6] ADDRCONF: Preparation for configurable address selection policy with ifindex.

2007-10-30 Thread David Miller
From: YOSHIFUJI Hideaki / 吉藤英明 [EMAIL PROTECTED] Date: Tue, 30 Oct 2007 14:52:37 +0900 (JST) Signed-off-by: YOSHIFUJI Hideaki [EMAIL PROTECTED] What is the substance of this change? Please add a description of this to the changelog entry as currently the description is far too brief and vague.

Re: [Bugme-new] [Bug 9260] New: tipc_config.h is not installed when doing make headers_install

2007-10-30 Thread David Miller
From: Andrew Morton [EMAIL PROTECTED] Date: Mon, 29 Oct 2007 12:07:16 -0700 On Mon, 29 Oct 2007 09:10:26 -0700 (PDT) [EMAIL PROTECTED] wrote: http://bugzilla.kernel.org/show_bug.cgi?id=9260 ... Problem Description: When doing make headers_install the file tipc_config.h is not

Re: [PATCH] pegasos_eth.c: Fix compile error over MV643XX_ defines

2007-10-30 Thread Luis R. Rodriguez
On 10/29/07, Dale Farnsworth [EMAIL PROTECTED] wrote: On Mon, Oct 29, 2007 at 05:27:29PM -0400, Luis R. Rodriguez wrote: This commit made an incorrect assumption: -- Author: Lennert Buytenhek [EMAIL PROTECTED] Date: Fri Oct 19 04:10:10 2007 +0200 mv643xx_eth: Move ethernet

Re: [PATCH] net: Saner thash_entries default with much memory

2007-10-30 Thread David Miller
From: Andi Kleen [EMAIL PROTECTED] Date: Fri, 26 Oct 2007 17:34:17 +0200 On Fri, Oct 26, 2007 at 05:21:31PM +0200, Jean Delvare wrote: I propose 2 millions of entries as the arbitrary high limit. This It's probably still far too large. I agree. Perhaps a better number is something on the

Re: [RFC 2/2] [IPV6] ADDRCONF: Support RFC3484 configurable address selection policy table.

2007-10-30 Thread David Miller
From: YOSHIFUJI Hideaki / 吉藤英明 [EMAIL PROTECTED] Date: Tue, 30 Oct 2007 14:52:54 +0900 (JST) diff --git a/include/linux/if_addrlabel.h b/include/linux/if_addrlabel.h new file mode 100644 index 000..66978a5 --- /dev/null +++ b/include/linux/if_addrlabel.h @@ -0,0 +1,55 @@ +/* + *

Re: [PATCH] [IPv4] SNMP: Refer correct memory location to display ICMP out-going statistics

2007-10-30 Thread David Miller
From: David Stevens [EMAIL PROTECTED] Date: Mon, 29 Oct 2007 13:54:50 -0700 Dave, I didn't see a response for this one... in case it fell through the cracks. Just want to make sure my bone-headed error doesn't hang around too long. :-) It's in my tree now, never fear :-) - To

Re: dn_route.c momentarily exiting RCU read-side critical section

2007-10-30 Thread David Miller
From: Paul E. McKenney [EMAIL PROTECTED] Date: Mon, 29 Oct 2007 14:15:40 -0700 net/decnet/dn_route.c in dn_rt_cache_get_next() is as follows: static struct dn_route *dn_rt_cache_get_next(struct seq_file *seq, struct dn_route *rt) { struct dn_rt_cache_iter_state *s =

Re: [PATCH] rpc_rdma: we need to cast u64 to unsigned long long for printing

2007-10-30 Thread David Miller
From: Stephen Rothwell [EMAIL PROTECTED] Date: Tue, 30 Oct 2007 16:12:40 +1100 as some architectures have unsigned long for u64. net/sunrpc/xprtrdma/rpc_rdma.c: In function 'rpcrdma_create_chunks': net/sunrpc/xprtrdma/rpc_rdma.c:222: warning: format '%llx' expects type 'long long unsigned

Re: [PATCH] ehea: add kexec support

2007-10-30 Thread Christoph Raisch
Michael Ellerman [EMAIL PROTECTED] wrote on 28.10.2007 23:32:17: How do you plan to support kdump? When kexec is fully supported kdump should work out of the box as for any other ethernet card (if you load the right eth driver). There's nothing specific to kdump you have to handle in

Re: kernel panic removing devices from a teql queuing discipline

2007-10-30 Thread David Miller
From: Chuck Ebbert [EMAIL PROTECTED] Date: Mon, 29 Oct 2007 14:00:01 -0400 The panic is in __teql_resolve (which has been inlined into teql_master_xmit) in net/sched/sch_teql.c at this line: if (n n-tbl == mn-tbl Specifically the dereference of n-tbl is faulting as n is not

Re: [PATCH][RFC] Add support for the RDC R6040 Fast Ethernet controller

2007-10-30 Thread Ilpo Järvinen
On Mon, 29 Oct 2007, Florian Fainelli wrote: +static int mdio_read(struct net_device *dev, int phy_id, int location); +static void mdio_write(struct net_device *dev, int phy_id, int location, int value); +static int r6040_open(struct net_device *dev); +static int r6040_start_xmit(struct

Re: [RFC 1/2] [IPV6] ADDRCONF: Preparation for configurable address selection policy with ifindex.

2007-10-30 Thread Krishna Kumar2
Hi Yoshifuji, YOSHIFUJI Hideaki wrote on 10/30/2007 11:22:37 AM: -static inline int ipv6_saddr_label(const struct in6_addr *addr, int type) +static inline int ipv6_addr_label(const struct in6_addr *addr, int type, +int ifindex) This function

[PATCH 1/1] Blackfin EMAC driver: Fix Ethernet communication bug (dupliated and lost packets)

2007-10-30 Thread Bryan Wu
From: Michael Hennerich [EMAIL PROTECTED] Fix Ethernet communication bug(dupliated and lost packets) in RMII PHY mode- dont call mac_disable and mac_enable during 10/100 REFCLK changes - mac_enable screws up the DMA descriptor chain Signed-off-by: Michael Hennerich [EMAIL PROTECTED]

Re: [PATCH 1/2] [CRYPTO] tcrypt: Move sg_init_table out of timing loops

2007-10-30 Thread Boaz Harrosh
On Mon, Oct 29 2007 at 22:16 +0200, Jens Axboe [EMAIL PROTECTED] wrote: On Fri, Oct 26 2007, Herbert Xu wrote: [CRYPTO] tcrypt: Move sg_init_table out of timing loops This patch moves the sg_init_table out of the timing loops for hash algorithms so that it doesn't impact on the speed test

Re: [PATCH 1/2] [CRYPTO] tcrypt: Move sg_init_table out of timing loops

2007-10-30 Thread Jens Axboe
On Tue, Oct 30 2007, Boaz Harrosh wrote: On Mon, Oct 29 2007 at 22:16 +0200, Jens Axboe [EMAIL PROTECTED] wrote: On Fri, Oct 26 2007, Herbert Xu wrote: [CRYPTO] tcrypt: Move sg_init_table out of timing loops This patch moves the sg_init_table out of the timing loops for hash algorithms

Re: [PATCH] pegasos_eth.c: Fix compile error over MV643XX_ defines

2007-10-30 Thread Sven Luther
On Tue, Oct 30, 2007 at 03:44:59AM -0400, Luis R. Rodriguez wrote: On 10/29/07, Dale Farnsworth [EMAIL PROTECTED] wrote: On Mon, Oct 29, 2007 at 05:27:29PM -0400, Luis R. Rodriguez wrote: This commit made an incorrect assumption: -- Author: Lennert Buytenhek [EMAIL PROTECTED] Date:

Re: [PATCH] pegasos_eth.c: Fix compile error over MV643XX_ defines

2007-10-30 Thread Dale Farnsworth
On Tue, Oct 30, 2007 at 10:36:06AM +0100, Sven Luther wrote: On Tue, Oct 30, 2007 at 03:44:59AM -0400, Luis R. Rodriguez wrote: On 10/29/07, Dale Farnsworth [EMAIL PROTECTED] wrote: On Mon, Oct 29, 2007 at 05:27:29PM -0400, Luis R. Rodriguez wrote: This commit made an incorrect

[PATCH] core: fix free_netdev when register fails during notification call chain

2007-10-30 Thread Daniel Lezcano
Point 1: The unregistering of a network device schedule a netdev_run_todo. This function calls dev-destructor when it is set and the destructor calls free_netdev. Point 2: In the case of an initialization of a network device the usual code is: * alloc_netdev * register_netdev - if this one

[PATCH][NETNS] fix net released by rcu callback

2007-10-30 Thread Daniel Lezcano
When a network namespace reference is held by a network subsystem, and when this reference is decremented in a rcu update callback, we must ensure that there is no more outstanding rcu update before trying to free the network namespace. In the normal case, the rcu_barrier is called when the

[PATCH 2.6.24] ixgb: TX hangs under heavy load

2007-10-30 Thread Andy Gospodarek
Auke, It has become clear that this patch resolves some tx-lockups on the ixgb driver. IBM did some checking and realized this hunk is in your sourceforge driver, but not anywhere else. Mind if we add it? Thanks, -andy Signed-off-by: Andy Gospodarek [EMAIL PROTECTED] --- ixgb_main.c |

[IPV6] cleanup : remove proc_net_remove called twice

2007-10-30 Thread Daniel Lezcano
The file /proc/net/if_inet6 is removed twice. First time in: inet6_exit -addrconf_cleanup And followed a few lines after by: inet6_exit - if6_proc_exit Signed-off-by: Daniel Lezcano [EMAIL PROTECTED] --- net/ipv6/addrconf.c |4 1 file changed,

[PATCH 1/2] Convert /proc/net/ipv6_route to seq_file interface

2007-10-30 Thread Alexey Dobriyan
One proc_net_create() user less. Signed-off-by: Alexey Dobriyan [EMAIL PROTECTED] --- net/ipv6/route.c | 70 +++ 1 file changed, 25 insertions(+), 45 deletions(-) --- a/net/ipv6/route.c +++ b/net/ipv6/route.c @@ -2288,71 +2288,49 @@ struct

[PATCH 2/2] Remove /proc/net/ip_vs_lblcr

2007-10-30 Thread Alexey Dobriyan
It's under CONFIG_IP_VS_LBLCR_DEBUG option which never existed. Signed-off-by: Alexey Dobriyan [EMAIL PROTECTED] --- I can convert it to seq_file if anyone is secretly using it. net/ipv4/ipvs/ip_vs_lblcr.c | 76 1 file changed, 76 deletions(-)

Re: [PATCH] net: Saner thash_entries default with much memory

2007-10-30 Thread Jean Delvare
Hi David, Le mardi 30 octobre 2007, David Miller a écrit : From: Andi Kleen [EMAIL PROTECTED] Date: Fri, 26 Oct 2007 17:34:17 +0200 On Fri, Oct 26, 2007 at 05:21:31PM +0200, Jean Delvare wrote: I propose 2 millions of entries as the arbitrary high limit. This It's probably still far

Re: [PATCH 1/2] Convert /proc/net/ipv6_route to seq_file interface

2007-10-30 Thread Benjamin Thery
Alexey Dobriyan wrote: One proc_net_create() user less. Funny, I was working on a similar patch. See comment below. Signed-off-by: Alexey Dobriyan [EMAIL PROTECTED] --- net/ipv6/route.c | 70 +++ 1 file changed, 25 insertions(+),

Re: [PATCH 1/2] Convert /proc/net/ipv6_route to seq_file interface

2007-10-30 Thread Benjamin Thery
Cosmetic comment: I forgot to say there are a few indentation errors when I apply your patch. See below. Benjamin Thery wrote: Alexey Dobriyan wrote: One proc_net_create() user less. Funny, I was working on a similar patch. See comment below. Signed-off-by: Alexey Dobriyan [EMAIL

Re: Configuring the same IP on multiple addresses

2007-10-30 Thread Vlad Yasevich
David Miller wrote: From: David Miller [EMAIL PROTECTED] Date: Mon, 29 Oct 2007 15:25:59 -0700 (PDT) Can you guys please just state upfront what virtualization issue is made more difficult by features you want to remove? Sorry, I mentioned virtualization because that's been the largest

[PATCH] DM9601: Support for ADMtek ADM8515 NIC

2007-10-30 Thread Peter Korsgaard
Add device ID for the ADMtek ADM8515 USB NIC to the DM9601 driver. Signed-off-by: Peter Korsgaard [EMAIL PROTECTED] diff --git a/drivers/net/usb/dm9601.c b/drivers/net/usb/dm9601.c index a2de32f..2c68573 100644 --- a/drivers/net/usb/dm9601.c +++ b/drivers/net/usb/dm9601.c @@ -586,6 +586,10 @@

Re: Oops in 2.6.21-rc4, 2.6.23

2007-10-30 Thread Jarek Poplawski
On Mon, Oct 29, 2007 at 01:41:47AM -0700, David Miller wrote: ... Actually, this was caused by a real bug in the SKB_WITH_OVERHEAD macro definition, which Herbert Xu quickly spotted and fixed. Which I hope you've found this by yourself by now. ...Btw, of course you have to be right, and I

Re: [PATCH] nf_nat_h323.c unneeded rcu_dereference() calls

2007-10-30 Thread Patrick McHardy
Paul E. McKenney wrote: Hello! While reviewing rcu_dereference() uses, I came across a number of cases where I couldn't see how the rcu_dereference() helped. One class of cases is where the variable is never subsequently dereferenced, so that patches like the following one would be

Re: [PATCH 1/2] [CRYPTO] tcrypt: Move sg_init_table out of timing loops

2007-10-30 Thread Herbert Xu
On Tue, Oct 30, 2007 at 06:50:58AM +0100, Jens Axboe wrote: How so? The reason you changed it to sg_init_table() + sg_set_buf() is exactly because sg_init_one() didn't properly init the entry (as they name promised). For one of the cases yes but the other one repeatedly calls sg_init_one on

Re: [PATCH 1/2] [CRYPTO] tcrypt: Move sg_init_table out of timing loops

2007-10-30 Thread Jens Axboe
On Tue, Oct 30 2007, Herbert Xu wrote: On Tue, Oct 30, 2007 at 06:50:58AM +0100, Jens Axboe wrote: How so? The reason you changed it to sg_init_table() + sg_set_buf() is exactly because sg_init_one() didn't properly init the entry (as they name promised). For one of the cases yes but

Re: [PATCH 1/2] Convert /proc/net/ipv6_route to seq_file interface

2007-10-30 Thread Stephen Hemminger
On Tue, 30 Oct 2007 16:11:47 +0300 Alexey Dobriyan [EMAIL PROTECTED] wrote: +static const struct file_operations ipv6_route_proc_fops = { + .open = ipv6_route_open, + .read = seq_read, + .llseek = seq_lseek, + .release= single_release,

Re: dn_route.c momentarily exiting RCU read-side critical section

2007-10-30 Thread Paul E. McKenney
On Tue, Oct 30, 2007 at 01:10:36AM -0700, David Miller wrote: From: Paul E. McKenney [EMAIL PROTECTED] Date: Mon, 29 Oct 2007 14:15:40 -0700 net/decnet/dn_route.c in dn_rt_cache_get_next() is as follows: static struct dn_route *dn_rt_cache_get_next(struct seq_file *seq, struct

Re: [PATCH] nf_nat_h323.c unneeded rcu_dereference() calls

2007-10-30 Thread Paul E. McKenney
On Tue, Oct 30, 2007 at 03:06:20PM +0100, Patrick McHardy wrote: Paul E. McKenney wrote: Hello! While reviewing rcu_dereference() uses, I came across a number of cases where I couldn't see how the rcu_dereference() helped. One class of cases is where the variable is never subsequently

Re: [PATCH 1/2] Convert /proc/net/ipv6_route to seq_file interface

2007-10-30 Thread Patrick McHardy
Stephen Hemminger wrote: On Tue, 30 Oct 2007 16:11:47 +0300 Alexey Dobriyan [EMAIL PROTECTED] wrote: +static const struct file_operations ipv6_route_proc_fops = { + .open = ipv6_route_open, + .read = seq_read, + .llseek = seq_lseek, +

[PATCH 32/33] nfs: fix various memory recursions possible with swap over NFS.

2007-10-30 Thread Peter Zijlstra
GFP_NOFS is not enough, since swap traffic is IO, hence fall back to GFP_NOIO. Signed-off-by: Peter Zijlstra [EMAIL PROTECTED] --- fs/nfs/pagelist.c |2 +- fs/nfs/write.c|6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) Index: linux-2.6/fs/nfs/write.c

[PATCH 05/33] mm: kmem_estimate_pages()

2007-10-30 Thread Peter Zijlstra
Provide a method to get the upper bound on the pages needed to allocate a given number of objects from a given kmem_cache. Signed-off-by: Peter Zijlstra [EMAIL PROTECTED] --- include/linux/slab.h |3 + mm/slub.c| 82 +++ 2 files

[PATCH 24/33] mm: prepare swap entry methods for use in page methods

2007-10-30 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] --- include/linux/mm.h |8 include/linux/swap.h| 48

[PATCH 16/33] netvm: network reserve infrastructure

2007-10-30 Thread Peter Zijlstra
Provide the basic infrastructure to reserve and charge/account network memory. We provide the following reserve tree: 1) total network reserve 2)network TX reserve 3) protocol TX pages 4)network RX reserve 5) SKB data reserve [1] is used to make all the network reserves a

[PATCH 08/33] mm: emergency pool

2007-10-30 Thread Peter Zijlstra
Provide means to reserve a specific amount of 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] ---

[PATCH 26/33] mm: methods for teaching filesystems about PG_swapcache pages

2007-10-30 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

[PATCH 30/33] nfs: swap vs nfs_writepage

2007-10-30 Thread Peter Zijlstra
For now just use the -writepage() path for swap traffic. Trond would like to see -swap_page() or some such additional a_op. Signed-off-by: Peter Zijlstra [EMAIL PROTECTED] --- fs/nfs/write.c | 23 +++ 1 file changed, 23 insertions(+) Index: linux-2.6/fs/nfs/write.c

[PATCH 02/33] mm: tag reseve pages

2007-10-30 Thread Peter Zijlstra
Tag pages allocated from the reserves with a non-zero page-reserve. This allows us to distinguish and account reserve pages. Signed-off-by: Peter Zijlstra [EMAIL PROTECTED] --- include/linux/mm_types.h |1 + mm/page_alloc.c |4 +++- 2 files changed, 4 insertions(+), 1

[PATCH 17/33] sysctl: propagate conv errors

2007-10-30 Thread Peter Zijlstra
Currently conv routines will only generate -EINVAL, allow for other errors to be propagetd. Signed-off-by: Peter Zijlstra [EMAIL PROTECTED] --- kernel/sysctl.c | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) Index: linux-2.6/kernel/sysctl.c

[PATCH 28/33] nfs: teach the NFS client how to treat PG_swapcache pages

2007-10-30 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] --- fs/nfs/file.c |8 fs/nfs/internal.h |7 --- fs/nfs/pagelist.c |6

[PATCH 22/33] netfilter: NF_QUEUE vs emergency skbs

2007-10-30 Thread Peter Zijlstra
Avoid memory getting stuck waiting for userspace, drop all emergency packets. This of course requires the regular storage route to not include an NF_QUEUE target ;-) Signed-off-by: Peter Zijlstra [EMAIL PROTECTED] --- net/netfilter/core.c |3 +++ 1 file changed, 3 insertions(+) Index:

[PATCH 19/33] netvm: hook skb allocation to reserves

2007-10-30 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

[PATCH 13/33] net: wrap sk-sk_backlog_rcv()

2007-10-30 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 10/33] mm: __GFP_MEMALLOC

2007-10-30 Thread Peter Zijlstra
__GFP_MEMALLOC will allow the allocation to disregard the watermarks, much like PF_MEMALLOC. Signed-off-by: Peter Zijlstra [EMAIL PROTECTED] --- include/linux/gfp.h |3 ++- mm/page_alloc.c |4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) Index:

[PATCH 01/33] mm: gfp_to_alloc_flags()

2007-10-30 Thread Peter Zijlstra
Factor out the gfp to alloc_flags mapping so it can be used in other places. Signed-off-by: Peter Zijlstra [EMAIL PROTECTED] --- mm/internal.h | 11 ++ mm/page_alloc.c | 98 2 files changed, 67 insertions(+), 42 deletions(-)

[PATCH 20/33] netvm: filter emergency skbs.

2007-10-30 Thread Peter Zijlstra
Toss all emergency packets not for a SOCK_MEMALLOC socket. This ensures our precious memory reserve doesn't get stuck waiting for user-space. The correctness of this approach relies on the fact that networks must be assumed lossy. Signed-off-by: Peter Zijlstra [EMAIL PROTECTED] ---

[PATCH 23/33] netvm: skb processing

2007-10-30 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

[PATCH 25/33] mm: add support for non block device backed swap files

2007-10-30 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_space

[PATCH 03/33] mm: slub: add knowledge of reserve pages

2007-10-30 Thread Peter Zijlstra
Restrict objects from reserve slabs (ALLOC_NO_WATERMARKS) to allocation contexts that are entitled to it. Care is taken to only touch the SLUB slow path. This is done to ensure reserve pages don't leak out and get consumed. Signed-off-by: Peter Zijlstra [EMAIL PROTECTED] ---

[PATCH 15/33] net: sk_allocation() - concentrate socket related allocations

2007-10-30 Thread Peter Zijlstra
Introduce sk_allocation(), this function allows to inject sock specific flags to each sock related allocation. Signed-off-by: Peter Zijlstra [EMAIL PROTECTED] --- include/net/sock.h|7 ++- net/ipv4/tcp_output.c | 11 ++- net/ipv6/tcp_ipv6.c | 14 +- 3 files

[PATCH 18/33] netvm: INET reserves.

2007-10-30 Thread Peter Zijlstra
Add reserves for INET. The two big users seem to be the route cache and ip-fragment cache. Reserve the route cache under generic RX reserve, its usage is bounded by the high reclaim watermark, and thus does not need further accounting. Reserve the ip-fragement caches under SKB data reserve,

[PATCH 07/33] mm: serialize access to min_free_kbytes

2007-10-30 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 11/33] mm: memory reserve management

2007-10-30 Thread Peter Zijlstra
Generic reserve management code. It provides methods to reserve and charge. Upon this, generic alloc/free style reserve pools could be build, which could fully replace mempool_t functionality. Signed-off-by: Peter Zijlstra [EMAIL PROTECTED] --- include/linux/reserve.h | 54 + mm/Makefile

[PATCH 21/33] netvm: prevent a TCP specific deadlock

2007-10-30 Thread Peter Zijlstra
It could happen that all !SOCK_MEMALLOC sockets have buffered so much data that we're over the global rmem limit. This will prevent SOCK_MEMALLOC buffers from receiving data, which will prevent userspace from running, which is needed to reduce the buffered data. Fix this by exempting the

[PATCH 14/33] net: packet split receive api

2007-10-30 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 ++--

[PATCH 00/33] Swap over NFS -v14

2007-10-30 Thread Peter Zijlstra
Hi, Another posting of the full swap over NFS series. [ I tried just posting the first part last time around, but that just gets more confusion by lack of a general picture ] [ patches against 2.6.23-mm1, also to be found online at:

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

2007-10-30 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 27/33] nfs: remove mempools

2007-10-30 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] --- fs/nfs/read.c | 15

[PATCH 31/33] nfs: enable swap on NFS

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

[PATCH 33/33] nfs: do not warn on radix tree node allocation failures

2007-10-30 Thread Peter Zijlstra
GFP_ATOMIC failures are rather common, no not warn about them. Signed-off-by: Peter Zijlstra [EMAIL PROTECTED] --- fs/nfs/inode.c |2 +- fs/nfs/write.c | 10 ++ 2 files changed, 11 insertions(+), 1 deletion(-) Index: linux-2.6/fs/nfs/inode.c

[PATCH 06/33] mm: allow PF_MEMALLOC from softirq context

2007-10-30 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] --- include/linux/sched.h |4 kernel/softirq.c |3 +++ mm/page_alloc.c

[PATCH 12/33] selinux: tag avc cache alloc as non-critical

2007-10-30 Thread Peter Zijlstra
Failing to allocate a cache entry will only harm performance not correctness. Do not consume valuable reserve pages for something like that. Signed-off-by: Peter Zijlstra [EMAIL PROTECTED] Acked-by: James Morris [EMAIL PROTECTED] --- security/selinux/avc.c |2 +- 1 file changed, 1

[PATCH 04/33] mm: allow mempool to fall back to memalloc reserves

2007-10-30 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 | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-) Index: linux-2.6/mm/mempool.c

[PATCH 09/33] mm: system wide ALLOC_NO_WATERMARK

2007-10-30 Thread Peter Zijlstra
Change ALLOC_NO_WATERMARK page allocation such that the reserves are system wide - which they are per setup_per_zone_pages_min(), when we scrape the barrel, do it properly. Signed-off-by: Peter Zijlstra [EMAIL PROTECTED] --- mm/page_alloc.c |6 ++ 1 file changed, 6 insertions(+) Index:

Re: [PATCH 2.6.24] ixgb: TX hangs under heavy load

2007-10-30 Thread Kok, Auke
Andy Gospodarek wrote: Auke, It has become clear that this patch resolves some tx-lockups on the ixgb driver. IBM did some checking and realized this hunk is in your sourceforge driver, but not anywhere else. Mind if we add it? I'll quickly double check where this came from in the first

[patch 1/1][CORE] resend - fix free_netdev on register_netdev failure

2007-10-30 Thread Daniel Lezcano
Point 1: The unregistering of a network device schedule a netdev_run_todo. This function calls dev-destructor when it is set and the destructor calls free_netdev. Point 2: In the case of an initialization of a network device the usual code is: * alloc_netdev * register_netdev - if this one

[patch 1/1][NETNS] resend: fix net released by rcu callback

2007-10-30 Thread Daniel Lezcano
When a network namespace reference is held by a network subsystem, and when this reference is decremented in a rcu update callback, we must ensure that there is no more outstanding rcu update before trying to free the network namespace. In the normal case, the rcu_barrier is called when the

[patch 1/1][IPV6] resend: remove duplicate call to proc_net_remove

2007-10-30 Thread Daniel Lezcano
The file /proc/net/if_inet6 is removed twice. First time in: inet6_exit -addrconf_cleanup And followed a few lines after by: inet6_exit - if6_proc_exit Signed-off-by: Daniel Lezcano [EMAIL PROTECTED] --- net/ipv6/addrconf.c |4 1 file changed, 4

[PATCH 1/2] NFS: change the ip_map cache code to handle IPv6 addresses

2007-10-30 Thread Aurélien Charbon
Hi, Here is the IPv6 support patch for the ip_map caching code part in nfs server. I have ported it on 2.6.24-rc1 (in which Brian Haley's ipv6_addr_v4mapped function is included) In case of bad formatting due to my mailer, you can also find the patch in attachment. Tests: tested with

[PATCH 2/2] NFS: handle IPv6 addresses in nfs ctl

2007-10-30 Thread Aurélien Charbon
Here is a second missing part of the IPv6 support in NFS server code concerning knfd syscall interface. It updates write_getfd and write_getfd to accept IPv6 addresses. Applies on a kernel including ip_map cache modifications Tests: tested with only IPv4 network and basic nfs ops (mount, file

[PATCH] ixgb: fix TX hangs under heavy load

2007-10-30 Thread Auke Kok
A merge error occurred where we merged the wrong block here in version 1.0.120. The right condition for frags is slightly different then for the skb, so account for the difference properly and trim the TSO based size right. Originally part of a fix reported by IBM to fix TSO hangs on pSeries

Re: [PATCH] pegasos_eth.c: Fix compile error over MV643XX_ defines

2007-10-30 Thread Jeff Garzik
Dale Farnsworth wrote: On Mon, Oct 29, 2007 at 05:27:29PM -0400, Luis R. Rodriguez wrote: This commit made an incorrect assumption: -- Author: Lennert Buytenhek [EMAIL PROTECTED] Date: Fri Oct 19 04:10:10 2007 +0200 mv643xx_eth: Move ethernet register definitions into private header

Re: [PATCH 4/4] ixgbe: minor sparse fixes

2007-10-30 Thread Jeff Garzik
Auke Kok wrote: From: Stephen Hemminger [EMAIL PROTECTED] Make strings const if possible, and fix includes so forward definitions are seen. Signed-off-by: Stephen Hemminger [EMAIL PROTECTED] Signed-off-by: Auke Kok [EMAIL PROTECTED] --- drivers/net/ixgbe/ixgbe.h |2 +-

Re: [PATCH] e1000e: Fix typo !

2007-10-30 Thread Jeff Garzik
Auke Kok wrote: From: Roel Kluin [EMAIL PROTECTED] Signed-off-by: Roel Kluin [EMAIL PROTECTED] Signed-off-by: Auke Kok [EMAIL PROTECTED] --- drivers/net/e1000e/82571.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/net/e1000e/82571.c

Re: [PATCH] ixgb: fix TX hangs under heavy load

2007-10-30 Thread Jeff Garzik
Auke Kok wrote: A merge error occurred where we merged the wrong block here in version 1.0.120. The right condition for frags is slightly different then for the skb, so account for the difference properly and trim the TSO based size right. Originally part of a fix reported by IBM to fix TSO

[PATCH v2] using mii-bitbang on different processor ports

2007-10-30 Thread Sergej Stepanov
The patch makes possible to have mdio and mdc pins on different physical ports also for CONFIG_PPC_CPM_NEW_BINDING. To setup it in the device tree: reg = 10d40 14 10d60 14; // mdc: 0x10d40, mdio: 0x10d60 or reg = 10d40 14; // mdc and mdio have the same offset 10d40 The approach was taken from

[git patches] net driver fixes

2007-10-30 Thread Jeff Garzik
Fixes, and a new DM9601 USB NIC id. Please pull from 'upstream-linus' branch of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/netdev-2.6.git upstream-linus to receive the following updates: drivers/net/bfin_mac.c|2 - drivers/net/e1000/e1000.h |8 +++

Re: [PATCH 1/2] NFS: change the ip_map cache code to handle IPv6 addresses

2007-10-30 Thread J. Bruce Fields
Thanks for working on this. Could you run linux/scripts/checkpatch.pl on your patch and fix the problems it complains about? On Tue, Oct 30, 2007 at 06:05:42PM +0100, Aurélien Charbon wrote: static void update(struct cache_head *cnew, struct cache_head *citem) { @@ -149,22 +157,24 @@ static

Re: [PATCH v2] using mii-bitbang on different processor ports

2007-10-30 Thread Scott Wood
Sergej Stepanov wrote: + if( !of_address_to_resource(np, 1, res[1])) { The spacing is still wrong. - iounmap(bitbang-dir); + if ( bitbang-mdio.dir != bitbang-mdc.dir) + iounmap(bitbang-mdio.dir); + iounmap(bitbang-mdc.dir); And here. -Scott - To

Re: [PATCH] DM9601: Support for ADMtek ADM8515 NIC

2007-10-30 Thread Jeff Garzik
Peter Korsgaard wrote: Add device ID for the ADMtek ADM8515 USB NIC to the DM9601 driver. Signed-off-by: Peter Korsgaard [EMAIL PROTECTED] applied - To unsubscribe from this list: send the line unsubscribe netdev in the body of a message to [EMAIL PROTECTED] More majordomo info at

Re: [PATCH 1/1] Blackfin EMAC driver: Fix Ethernet communication bug (dupliated and lost packets)

2007-10-30 Thread Jeff Garzik
Bryan Wu wrote: From: Michael Hennerich [EMAIL PROTECTED] Fix Ethernet communication bug(dupliated and lost packets) in RMII PHY mode- dont call mac_disable and mac_enable during 10/100 REFCLK changes - mac_enable screws up the DMA descriptor chain Signed-off-by: Michael Hennerich [EMAIL

Re: [PATCH 2/2] NFS: handle IPv6 addresses in nfs ctl

2007-10-30 Thread Brian Haley
Aurélien Charbon wrote: Here is a second missing part of the IPv6 support in NFS server code concerning knfd syscall interface. It updates write_getfd and write_getfd to accept IPv6 addresses. Applies on a kernel including ip_map cache modifications Both patches still have bugs, I think the

Re: [PATCH] ixgb: fix TX hangs under heavy load

2007-10-30 Thread Andy Gospodarek
On Tue, Oct 30, 2007 at 11:21:50AM -0700, Auke Kok wrote: A merge error occurred where we merged the wrong block here in version 1.0.120. The right condition for frags is slightly different then for the skb, so account for the difference properly and trim the TSO based size right.

[PATCH] remove claim balance_rr won't reorder on many to one

2007-10-30 Thread Rick Jones
Remove the text which suggests that many balance_rr links feeding into a single uplink will not experience packet reordering. More up-to-date tests, with 1G links feeding into a switch with a 10G uplink, using a 2.6.23-rc8 kernel on the system on which the 1G links were bonded with balance_rr

[2.6 patch] fix drivers/net/wan/lmc/ compilation

2007-10-30 Thread Adrian Bunk
Documentation/SubmitChecklist, point 1: -- snip -- ... CC drivers/net/wan/lmc/lmc_main.o /home/bunk/linux/kernel-2.6/git/linux-2.6/drivers/net/wan/lmc/lmc_main.c: In function ‘lmc_ioctl’: /home/bunk/linux/kernel-2.6/git/linux-2.6/drivers/net/wan/lmc/lmc_main.c:239: error: expected

Re: [PATCH] net: Saner thash_entries default with much memory

2007-10-30 Thread Andi Kleen
Next, machines that service that many sockets typically have them mostly with full transmit queues talking to a very slow receiver at the other end. Not sure -- there are likely use cases with lots of idle but connected sockets. Also the constraint here is not really how many sockets are

Re: [2.6 patch] fix drivers/net/wan/lmc/ compilation

2007-10-30 Thread Roel Kluin
Adrian Bunk wrote: Documentation/SubmitChecklist, point 1: -- snip -- ... CC drivers/net/wan/lmc/lmc_main.o /home/bunk/linux/kernel-2.6/git/linux-2.6/drivers/net/wan/lmc/lmc_main.c: In function ‘lmc_ioctl’:

Re: [patch 1/1][NETNS] resend: fix net released by rcu callback

2007-10-30 Thread Eric W. Biederman
Daniel Lezcano [EMAIL PROTECTED] writes: When a network namespace reference is held by a network subsystem, and when this reference is decremented in a rcu update callback, we must ensure that there is no more outstanding rcu update before trying to free the network namespace. In the

Re: [patch 1/1][IPV6] resend: remove duplicate call to proc_net_remove

2007-10-30 Thread Eric W. Biederman
Daniel Lezcano [EMAIL PROTECTED] writes: The file /proc/net/if_inet6 is removed twice. First time in: inet6_exit -addrconf_cleanup And followed a few lines after by: inet6_exit - if6_proc_exit Signed-off-by: Daniel Lezcano [EMAIL PROTECTED]

Re: [PATCH] remove claim balance_rr won't reorder on many to one

2007-10-30 Thread Jay Vosburgh
Rick Jones [EMAIL PROTECTED] wrote: [...] - Note that this out of order delivery occurs when both the - sending and receiving systems are utilizing a multiple - interface bond. Consider a configuration in which a - balance-rr bond feeds into a single higher capacity network -

Re: [PATCH] net: Saner thash_entries default with much memory

2007-10-30 Thread David Miller
From: Jean Delvare [EMAIL PROTECTED] Date: Tue, 30 Oct 2007 14:18:27 +0100 OK, let's go with (512 * 1024) then. Want me to send an updated patch? Why submit a patch that's already in Linus's tree :-) - To unsubscribe from this list: send the line unsubscribe netdev in the body of a message to

Re: [PATCH 23/33] netvm: skb processing

2007-10-30 Thread Stephen Hemminger
On Tue, 30 Oct 2007 17:04:24 +0100 Peter Zijlstra [EMAIL PROTECTED] wrote: 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.

Re: [PATCH 23/33] netvm: skb processing

2007-10-30 Thread Peter Zijlstra
On Tue, 2007-10-30 at 14:26 -0700, Stephen Hemminger wrote: On Tue, 30 Oct 2007 17:04:24 +0100 Peter Zijlstra [EMAIL PROTECTED] wrote: In order to make sure emergency packets receive all memory needed to proceed ensure processing of emergency SKBs happens under PF_MEMALLOC. Use the

Re: [patch 1/1][NETNS] resend: fix net released by rcu callback

2007-10-30 Thread Daniel Lezcano
Eric W. Biederman wrote: Daniel Lezcano [EMAIL PROTECTED] writes: When a network namespace reference is held by a network subsystem, and when this reference is decremented in a rcu update callback, we must ensure that there is no more outstanding rcu update before trying to free the network

  1   2   >