[XFRM]: esp: fix skb_tail_pointer conversion bug

2007-04-07 Thread Patrick McHardy
[XFRM]: esp: fix skb_tail_pointer conversion bug Fix incorrect switch of "trailer" skb by "skb" during skb_tail_pointer conversion: - *(u8*)(trailer->tail - 1) = top_iph->protocol; + *(skb_tail_pointer(skb) - 1) = top_iph->protocol; - *(u8 *)(trailer->tail - 1) = *skb_network_h

Re: [kvm-devel] QEMU PIC indirection patch for in-kernel APIC work

2007-04-07 Thread Avi Kivity
Rusty Russell wrote: On Thu, 2007-04-05 at 10:17 +0300, Avi Kivity wrote: Rusty Russell wrote: You didn't quote Anthony's point about "it's more about there not being good enough userspace interfaces to do network IO." It's easier to write a kernel-space network driver, but it's not ob

two gateways with one NIC

2007-04-07 Thread W Agtail
Hope you can help. I have the following setup using LVS (Linux Virtual Servers): LAN192.168.0.0/24- <= CLIENTS | | | | LVS1LVS2 vip1: 192.1

garbage of TCP sock mem in sockstat?

2007-04-07 Thread Kumiko Ono
Hi all, I tried to find out why some amount of memory remains allocated for TCP socket buffers after an application completes to read the buffers. Although I looked for similar topics in this ML, I couldn't find it. While a client create hundreds of new TCP connections to a server and sends 5

[XFRM]: beet: fix worst case header_len calculation

2007-04-07 Thread Patrick McHardy
The pskb_copy_expand crash I was seeing was triggered by BEET mode not calculating the SA's header_len value for the worst case, causing skb headroom expansions. This patch uses the worst case value by including the maximum length of the pseudo header. The patch applies on top of the MTU optimizat

[SK_BUFF]: Fix missing offset adjustment in pskb_expand_head

2007-04-07 Thread Patrick McHardy
These patches fix two crashes I was getting with net-2.6.22 on 64 bit caused by missing skb header offset adjustments when changing the headroom length. [SK_BUFF]: Fix missing offset adjustment in pskb_expand_head Since we're increasing the headroom, the header offsets need to be increased by the

[SK_BUFF]: Fix missing offset adjustment in skb_copy_expand

2007-04-07 Thread Patrick McHardy
[SK_BUFF]: Fix missing offset adjustment in skb_copy_expand skb_copy_expand changes the headroom, so it needs to adjust the header offsets by the difference between the old and the new value. Signed-off-by: Patrick McHardy <[EMAIL PROTECTED]> --- commit 9cb76fae709a9303777286998baa457b0730a225 t

[PATCH 1/4] skge: turn carrier off when down

2007-04-07 Thread Stephen Hemminger
Driver needs to turn off carrier when down, otherwise it can confuse bonding and bridging and looks like carrier is on immediately when it is brought back up. Signed-off-by: Stephen Hemminger <[EMAIL PROTECTED]> --- linux-2.6.20.y.orig/drivers/net/skge.c 2007-04-07 15:36:05.0 -0700

[PATCH 2/4] sky2: turn carrier off when down

2007-04-07 Thread Stephen Hemminger
Driver needs to turn off carrier when down. Signed-off-by: Stephen Hemminger <[EMAIL PROTECTED]> --- linux-2.6.20.y.orig/drivers/net/sky2.c 2007-04-07 15:36:05.0 -0700 +++ linux-2.6.20.y/drivers/net/sky2.c 2007-04-07 15:54:42.0 -0700 @@ -1506,6 +1506,7 @@ /* Stop

[PATCH 3/4] sky2: turn on clocks when doing resume

2007-04-07 Thread Stephen Hemminger
Some of these chips are disabled until clock is enabled. This fixes: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=404107 Signed-off-by: Stephen Hemminger <[EMAIL PROTECTED]> --- linux-2.6.20.y.orig/drivers/net/sky2.c 2007-04-07 15:54:42.0 -0700 +++ linux-2.6.20.y/drivers/n

[PATCH 1/4] skge: turn carrier off when down

2007-04-07 Thread Stephen Hemminger
Driver needs to turn off carrier when down, otherwise it can confuse bonding and bridging and looks like carrier is on immediately when it is brought back up. Signed-off-by: Stephen Hemminger <[EMAIL PROTECTED]> --- netdev-2.6.orig/drivers/net/skge.c 2007-04-07 15:09:13.0 -0700 +++ netde

[PATCH 2/4] sky2: turn carrier off when down

2007-04-07 Thread Stephen Hemminger
Driver needs to turn off carrier when down. Signed-off-by: Stephen Hemminger <[EMAIL PROTECTED]> --- netdev-2.6.orig/drivers/net/sky2.c 2007-04-07 15:11:02.0 -0700 +++ netdev-2.6/drivers/net/sky2.c 2007-04-07 15:11:21.0 -0700 @@ -1561,6 +1561,7 @@ /* Stop more pac

[PATCH 3/4] sky2: turn on clocks when doing resume

2007-04-07 Thread Stephen Hemminger
Some of these chips are disabled until clock is enabled. This fixes: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=404107 Signed-off-by: Stephen Hemminger <[EMAIL PROTECTED]> --- netdev-2.6.orig/drivers/net/sky2.c 2007-04-07 15:11:48.0 -0700 +++ netdev-2.6/drivers/net/sky2.c

[PATCH 0/4] skge and sky2 patches

2007-04-07 Thread Stephen Hemminger
These match the recent patches submitted for 2.6.21 -- - 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/majordomo-info.html

[PATCH 4/4] sky2: phy workarounds for Yukon EC-U A1

2007-04-07 Thread Stephen Hemminger
The workaround Yukon EC-U wasn't comparing with correct version and wasn't doing correct setup. Without it, 88e8056 throws all sorts of errors. Signed-off-by: Stephen Hemminger <[EMAIL PROTECTED]> --- linux-2.6.20.y.orig/drivers/net/sky2.c 2007-04-07 15:56:37.0 -0700 +++ linux-2.6.2

[PATCH 0/4] skge/sky2 patches for 2.6.21

2007-04-07 Thread Stephen Hemminger
These are little bug fixes found on skge/sky2 driver. I based these on netdev-2.6#upstream-fixes -- - 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/majordomo-info.html

[PATCH 4/4] sky2: phy workarounds for Yukon EC-U A1

2007-04-07 Thread Stephen Hemminger
The workaround Yukon EC-U wasn't comparing with correct version and wasn't doing correct setup. Without it, 88e8056 throws all sorts of errors. Signed-off-by: Stephen Hemminger <[EMAIL PROTECTED]> --- netdev-2.6.orig/drivers/net/sky2.c 2007-04-07 15:12:55.0 -0700 +++ netdev-2.6/drivers/n

Re: mm snapshot broken-out-2007-04-07-03-27.tar.gz uploaded

2007-04-07 Thread Andrew Morton
On Sat, 07 Apr 2007 21:43:17 +0200 Michal Piotrowski <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] napisał(a): > > The mm snapshot broken-out-2007-04-07-03-27.tar.gz has been uploaded to > > > > > > ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/mm/broken-out-2007-04-07-03-27.tar.gz > >

Re: mm snapshot broken-out-2007-04-07-03-27.tar.gz uploaded

2007-04-07 Thread Michal Piotrowski
[EMAIL PROTECTED] napisał(a): > The mm snapshot broken-out-2007-04-07-03-27.tar.gz has been uploaded to > > > ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/mm/broken-out-2007-04-07-03-27.tar.gz > > It contains the following patches against 2.6.21-rc6: suspend-to-disk doesn't work when pk

[PATCH] zd1211rw: rework band edge patching

2007-04-07 Thread Daniel Drake
This change allows RF drivers to provide their own 6M band edge patching implementation, while providing a generic implementation shared by most currently supported RF's. The upcoming ZD1211B/AL7230B code will use this to define its own patching function, which is different from the other RF confi

[PATCH] zd1211rw: Add AL7230B RF support for ZD1211B

2007-04-07 Thread Daniel Drake
This patch adds support for some new ZD1211B devices which ship with the AL7230B RF. Signed-off-by: Daniel Drake <[EMAIL PROTECTED]> --- zd_rf_al7230b.c | 317 ++- 1 files changed, 267 insertions(+), 50 deletions(-) Index: linux/drivers/net/wi

[PATCH] zd1211rw: Add ID for ZyXEL AG-220

2007-04-07 Thread Daniel Drake
Tested by Christoph Sager and Tomas Klas zd1211b chip 0586:3412 v4810 high 00-13-49 AL7230B_RF pa0 g Signed-off-by: Daniel Drake <[EMAIL PROTECTED]> --- zd_usb.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) Index: linux/drivers/net/wireless/zd1211rw/zd_usb.c ==

[PATCH] zd1211rw-mac80211: Add ID for ZyXEL AG-220

2007-04-07 Thread Daniel Drake
Tested by Christoph Sager and Tomas Klas zd1211b chip 0586:3412 v4810 high 00-13-49 AL7230B_RF pa0 g Signed-off-by: Daniel Drake <[EMAIL PROTECTED]> --- drivers/net/wireless/mac80211/zd1211rw/zd_usb.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers/net/wirele

[PATCH] zd1211rw-mac80211: Add AL7230B RF support for ZD1211B

2007-04-07 Thread Daniel Drake
This patch adds support for some new ZD1211B devices which ship with the AL7230B RF. Signed-off-by: Daniel Drake <[EMAIL PROTECTED]> --- .../net/wireless/mac80211/zd1211rw/zd_rf_al7230b.c | 317 --- 1 files changed, 267 insertions(+), 50 deletions(-) diff --git a/drivers/net/wir

[PATCH] zd1211rw-mac80211: rework band edge patching

2007-04-07 Thread Daniel Drake
This change allows RF drivers to provide their own 6M band edge patching implementation, while providing a generic implementation shared by most currently supported RF's. The upcoming ZD1211B/AL7230B code will use this to define its own patching function, which is different from the other RF confi

Re: [PATCH] net: Add etun driver

2007-04-07 Thread Ben Greear
Eric W. Biederman wrote: Ben Greear <[EMAIL PROTECTED]> writes: I guess that will do, but then if you ever change the strings, any user-space that is depending on this will break or have to be modified with additional cruft. It seems cleaner to me to have an ioctl or a specific place in /pr