[PATCH wireless-dev] d80211: Fix issues with QOS bitwise ops

2006-08-04 Thread Michael Wu
d80211: Fix issues with QOS ops This patch fixes various bitwise ops dealing with QOS that didn't get converted properly during the transition to IEEE80211_ style names. Thanks to Jouni Malinen for pointing this out. Signed-off-by: Michael Wu <[EMAIL PROTECTED]> --- net/d80211/ieee80211.c |

Re: [PATCH 9/9] [NET]: Move netlink interface bits to linux/if.h

2006-08-04 Thread David Miller
From: Stephen Hemminger <[EMAIL PROTECTED]> Date: Sat, 05 Aug 2006 22:42:18 -0700 > Thomas Graf wrote: > > -/* The struct should be in sync with struct net_device_stats */ > > -struct rtnl_link_stats > > -{ > > - __u32 rx_packets; /* total packets received */ > > - __u32

Re: [PATCHSET] Begin of transformations to new netlink api

2006-08-04 Thread David Miller
From: Thomas Graf <[EMAIL PROTECTED]> Date: Sat, 05 Aug 2006 02:34:52 +0200 > First batch of patches converting existing netlink code to use > the new api. Fixing lots of unvalidated accesses to attributes. Looks very nice, all applied to net-2.6.19, thanks Thomas. I've also rebased the net-2.6.

Re: [PATCH 9/9] [NET]: Move netlink interface bits to linux/if.h

2006-08-04 Thread Stephen Hemminger
Thomas Graf wrote: Signed-off-by: Thomas Graf <[EMAIL PROTECTED]> Index: net-2.6.19/include/linux/if.h === --- net-2.6.19.orig/include/linux/if.h +++ net-2.6.19/include/linux/if.h @@ -212,5 +212,134 @@ struct ifconf #define ifc_bu

Re: IPV6 possible recursive locking

2006-08-04 Thread Herbert Xu
Arjan van de Ven <[EMAIL PROTECTED]> wrote: > > Hmm I remember fixing sk_clone before.. or was that skb_clone, I'd have ot > check. > Anyway I'll check this out either later today or tomorrow in more detail > and will send a patch. I vaguely recall you fixing it too. I just couldn't find anythi

Re: IPV6 possible recursive locking

2006-08-04 Thread Arjan van de Ven
Herbert Xu wrote: [] sk_clone+0xd4/0x350 [] inet_csk_clone+0x11/0x70 [] tcp_create_openreq_child+0x24/0x480 [] tcp_v6_syn_recv_sock+0x2c2/0x6f0 [] tcp_check_req+0x229/0x3a0 [] tcp_v6_do_rcv+0x17d/0x400 [] tcp_v6_rcv+0x7e5/0x850 Yes this is a known problem. The lock validator needs to le

[PATCH 9/9] [NET]: Move netlink interface bits to linux/if.h

2006-08-04 Thread Thomas Graf
Signed-off-by: Thomas Graf <[EMAIL PROTECTED]> Index: net-2.6.19/include/linux/if.h === --- net-2.6.19.orig/include/linux/if.h +++ net-2.6.19/include/linux/if.h @@ -212,5 +212,134 @@ struct ifconf #defineifc_buf ifc_ifcu.ifc

[PATCH 8/9] [NET]: Convert link dumping to new netlink api

2006-08-04 Thread Thomas Graf
Transforms netlink code to dump link tables to use the new netlink api. Makes rtnl_getlink() available regardless of the availability of the wireless extensions. Adding copy_rtnl_link_stats() avoids the structural dependency of struct rtnl_link_stats on struct net_device_stats and thus avoids trou

[PATCH 5/9] [IPV4]: Convert address dumping to new netlink api

2006-08-04 Thread Thomas Graf
Signed-off-by: Thomas Graf <[EMAIL PROTECTED]> Index: net-2.6.19/net/ipv4/devinet.c === --- net-2.6.19.orig/net/ipv4/devinet.c +++ net-2.6.19/net/ipv4/devinet.c @@ -1112,32 +1112,37 @@ static int inet_fill_ifaddr(struct sk_bu {

[PATCH 2/9] [NETLINK]: Convert core netlink handling to new netlink api

2006-08-04 Thread Thomas Graf
Fixes a theoretical memory and locking leak when the size of the netlink header would exceed the skb tailroom. Signed-off-by: Thomas Graf <[EMAIL PROTECTED]> Index: net-2.6.19/net/netlink/af_netlink.c === --- net-2.6.19.orig/net/netl

[PATCH 3/9] [IPV4]: Convert address addition to new netlink api

2006-08-04 Thread Thomas Graf
Adds rtm_to_ifaddr() transforming a netlink message to a struct in_ifaddr. Fixes various unvalidated netlink attributes causing memory corruptions when left empty by userspace applications. Signed-off-by: Thomas Graf <[EMAIL PROTECTED]> Index: net-2.6.19/net/ipv4/devinet.c ===

[PATCH 7/9] [NET]: Convert link modification to new netlink api

2006-08-04 Thread Thomas Graf
Transforms do_setlink() into rtnl_setlink() using the new netlink api. A warning message printed to the console is added in the event that a change request fails while part of the change request has been comitted already. The ioctl() based nature of net devices makes it almost impossible to move on

[PATCH 4/9] [IPV4]: Convert address deletion to new netlink api

2006-08-04 Thread Thomas Graf
Fixes various unvalidated netlink attributes causing memory corruptions when left empty by userspace. Signed-off-by: Thomas Graf <[EMAIL PROTECTED]> Index: net-2.6.19/net/ipv4/devinet.c === --- net-2.6.19.orig/net/ipv4/devinet.c +++

[PATCH 6/9] [IPv4]: Move interface address bits to linux/if_addr.h

2006-08-04 Thread Thomas Graf
Signed-off-by: Thomas Graf <[EMAIL PROTECTED]> Index: net-2.6.19/include/linux/if_addr.h === --- /dev/null +++ net-2.6.19/include/linux/if_addr.h @@ -0,0 +1,53 @@ +#ifndef __LINUX_IF_ADDR_H +#define __LINUX_IF_ADDR_H + +#include + +s

[PATCHSET] Begin of transformations to new netlink api

2006-08-04 Thread Thomas Graf
First batch of patches converting existing netlink code to use the new api. Fixing lots of unvalidated accesses to attributes. - 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-

[PATCH 1/9] [NETLINK]: Extend netlink messaging interface

2006-08-04 Thread Thomas Graf
Adds: nlmsg_get_pos() return current position in message nlmsg_trim()trim part of message nla_reserve_nohdr(skb, len) reserve room for an attribute w/o hdr nla_put_nohdr(skb, len, data) add attribute w/o hdr nla_find_nested() find attribu

Re: IPV6 possible recursive locking

2006-08-04 Thread Herbert Xu
Petr Vandrovec <[EMAIL PROTECTED]> wrote: > > java_vm/7892 is trying to acquire lock: > (slock-AF_INET6){-+..}, at: [] sk_clone+0xd4/0x350 > > but task is already holding lock: > (slock-AF_INET6){-+..}, at: [] tcp_v6_rcv+0x323/0x850 > > other info that might help us debug this: > 1 lock held by

Re: [PATCH] fix memory leak in net/ipv4/tcp_probe.c::tcpprobe_read()

2006-08-04 Thread David Miller
From: "Jesper Juhl" <[EMAIL PROTECTED]> Date: Sat, 5 Aug 2006 01:30:49 +0200 > On 31/07/06, David Miller <[EMAIL PROTECTED]> wrote: > > From: "Jesper Juhl" <[EMAIL PROTECTED]> > > Date: Sun, 30 Jul 2006 23:51:20 +0200 > > > > > Looks ok to me. > > > > I've applied James's version of the fix, thank

Re: [PATCH] [TCP]: Fixes IW > 2 cases when TCP is application limited

2006-08-04 Thread David Miller
From: Ilpo Järvinen <[EMAIL PROTECTED]> Date: Fri, 04 Aug 2006 00:32:36 +0300 > Whenever a transfer is application limited, we are allowed at least > initial window worth of data per window unless cwnd is previously > less than that. > > Signed-off-by: Ilpo Järvinen <[EMAIL PROTECTED]> Looks go

Re: [PATCH v2] [PKT_SCHED] RED: Fix overflow in calculation of queue average

2006-08-04 Thread David Miller
From: "Ilpo Järvinen" <[EMAIL PROTECTED]> Date: Fri, 4 Aug 2006 18:44:20 +0300 (EEST) > Overflow can occur very easily with 32 bits, e.g., with 1 second > us_idle is approx. 2^20, which leaves only 11-Wlog bits for queue > length. Since the EWMA exponent is typically around 9, queue > lengths larg

Re: [PATCH] fix memory leak in net/ipv4/tcp_probe.c::tcpprobe_read()

2006-08-04 Thread Jesper Juhl
On 31/07/06, David Miller <[EMAIL PROTECTED]> wrote: From: "Jesper Juhl" <[EMAIL PROTECTED]> Date: Sun, 30 Jul 2006 23:51:20 +0200 > Looks ok to me. I've applied James's version of the fix, thanks everyone. Hmm, if you are refering to commit 118075b3cdc90e0815362365f3fc64d672ace0d6 - http://w

Re: [PATCH] [e1000]: Remove unnecessary tx_lock

2006-08-04 Thread David Miller
From: Stephen Hemminger <[EMAIL PROTECTED]> Date: Fri, 4 Aug 2006 11:08:29 -0700 > On Fri, 04 Aug 2006 10:28:52 -0700 > "Michael Chan" <[EMAIL PROTECTED]> wrote: > > > May be David can explain why it is undesirable to wake up the queue when > > it is full? Why does Michael ask all the difficult

Re: [PATCH 4/5] d80211: Switch d80211 to IEEE80211_ style names

2006-08-04 Thread Michael Wu
On Friday 04 August 2006 12:20, Jouni Malinen wrote: > On Tue, Aug 01, 2006 at 09:16:59PM +0200, Jiri Benc wrote: > This kind of change is more than just search-and-replace since frame > type and subtype macros were using different style (not shifted left in > WLAN_FC_{TYPE,STYPE}_* and shifted lef

Re: [RFC] irqbalance: Mark in-kernel irqbalance as obsolete, set to N by default

2006-08-04 Thread Bodo Eggert
Arjan van de Ven <[EMAIL PROTECTED]> wrote: > to some degree the in kernel balancer cannot really make the level of > decisions that a userspace balancer can make, at least not without making all > kernel developers vomit ;) If you make the drivers set a flag if they know their interrupts should

Re: [RFC] driver adjusts qlen, increases CPU

2006-08-04 Thread Rick Jones
Out of curiousity, how does the UDP socket's SO_SNDBUF compare to the queue depth? forgive my ignorance, how do i measure that? getsockopt(SO_SNDBUF)? I was just casting about on the possiblity that interactions between the depth of that queue and how much can be kept in the SO_SNDBUF migh

802.11/crypto questions

2006-08-04 Thread Johannes Berg
Hi, Since there's been lots of talk about multi-STA or multi-BSSID devices (more than one client, more than one AP on the same PHY) and I was just looking into some crypto stuff on bcm43xx, it got me wondering. The bcm43xx has an elaborate group key matching thingie which will be useful if it's a

Re: [RFC] driver adjusts qlen, increases CPU

2006-08-04 Thread Jesse Brandeburg
On 8/4/06, Rick Jones <[EMAIL PROTECTED]> wrote: > Problem we've seen is that setting this shorter queue causes a large spike > in cpu when transmitting using UDP: > > 100Mb/s link > txqueuelen: 1000 Throughput: 92.44 CPU: 5.00 > txqueuelen: 100 Throughput: 93.80 CPU: 61.59 > > Is this expected?

Re: problems with e1000 and jumboframes

2006-08-04 Thread Jesse Brandeburg
On 8/4/06, Evgeniy Polyakov <[EMAIL PROTECTED]> wrote: On Fri, Aug 04, 2006 at 08:34:46AM -0700, Chris Leech ([EMAIL PROTECTED]) wrote: > So how many skb allocation schemes do you code into a single driver? > Kmalloc everything, page alloc everything, combination of kmalloc and > page buffers for

Please pull 'upstream-fixes' branch of wireless-2.6

2006-08-04 Thread John W. Linville
The following changes since commit efe78cda3596f8a6d1c2d4a6b1a221bafa3e1a48: Linus Torvalds: Merge branch 'upstream-linus' of master.kernel.org:/.../jgarzik/libata-dev are found in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-2.6.git upstrea

IPV6 possible recursive locking

2006-08-04 Thread Petr Vandrovec
Hello, I'm not sure whether this was reported already, but just in case... Box has only link scope IPv6 addresses assigned. java_vm was running some webex conferencing applet. Thanks, Petr

Re: problems with e1000 and jumboframes

2006-08-04 Thread Evgeniy Polyakov
On Fri, Aug 04, 2006 at 08:34:46AM -0700, Chris Leech ([EMAIL PROTECTED]) wrote: > So how many skb allocation schemes do you code into a single driver? > Kmalloc everything, page alloc everything, combination of kmalloc and > page buffers for hardware that does header split? That's three > version

Re: [PATCH 4/5] d80211: Switch d80211 to IEEE80211_ style names

2006-08-04 Thread Jouni Malinen
On Tue, Aug 01, 2006 at 09:16:59PM +0200, Jiri Benc wrote: > From: Michael Wu <[EMAIL PROTECTED]> > This patch switches the WLAN_ definitions in d80211.h to IEEE80211_ style > definitions found in ieee80211.h. It also switches to MAC_ARG and MAC_FMT. This kind of change is more than just search-an

Re: [IPROUTE]: Add support for multipath route realms

2006-08-04 Thread Patrick McHardy
Stephen Hemminger wrote: > applied Have you had a chance to look at the time cleanup patches and the increased number of routing rule patch? Please let me know if you want me to resend. - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTE

Re: [RFC] driver adjusts qlen, increases CPU

2006-08-04 Thread Rick Jones
Jesse Brandeburg wrote: So we've recently put a bit of code in our e1000 driver to decrease the qlen based on the speed of the link. On the surface it seems like a great idea. A driver knows when the link speed changed, and having a 1000 packet deep queue (the default for most kernels now) o

Re: [PATCHSET] Multiple IPV6 Routing Tables & Policy Routing

2006-08-04 Thread YOSHIFUJI Hideaki / 吉藤英明
In article <[EMAIL PROTECTED]> (at Fri, 4 Aug 2006 19:41:20 +0200), Thomas Graf <[EMAIL PROTECTED]> says: > The patches are against the net-2.6.19 tree. Oh sorry, you're absolutely right... --yoshfuji - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a messa

Re: [PATCH] [e1000]: Remove unnecessary tx_lock

2006-08-04 Thread Stephen Hemminger
On Fri, 04 Aug 2006 10:28:52 -0700 "Michael Chan" <[EMAIL PROTECTED]> wrote: > On Fri, 2006-08-04 at 20:10 +1000, Herbert Xu wrote: > > > 1) netif_wake_queue is about to occur. In this case it doesn't really > > matter what we do as netif_wake_queue will always wake the queue for us. > > In the

Re: [IPROUTE]: Add support for multipath route realms

2006-08-04 Thread Stephen Hemminger
On Tue, 25 Jul 2006 05:58:36 +0200 Patrick McHardy <[EMAIL PROTECTED]> wrote: applied -- Stephen Hemminger <[EMAIL PROTECTED]> "And in the Packet there writ down that doome" - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More maj

Re: [IPROUTE2]: documentation bug fix on mirred

2006-08-04 Thread Stephen Hemminger
On Wed, 26 Jul 2006 07:52:09 -0400 Jamal Hadi Salim <[EMAIL PROTECTED]> wrote: > > Stephen, > > Heres another on top of the others i sent. If you get the time, can > update your git tree with these patches? > If you are planning to make a release soon, please ping me - I have at > least one more

Re: [IPROUTE2]: update documentation on mirred and IFB

2006-08-04 Thread Stephen Hemminger
On Tue, 18 Jul 2006 08:56:40 -0400 jamal <[EMAIL PROTECTED]> wrote: > About two more or so to complete these.. > > cheers, > jamal > > applied, go ahead and fix Andy's comment with another patch if you want. -- Stephen Hemminger <[EMAIL PROTECTED]> "And in the Packet there writ down that doom

Re: [PATCHSET] Multiple IPV6 Routing Tables & Policy Routing

2006-08-04 Thread Thomas Graf
* YOSHIFUJI Hideaki / ?$B5HF#1QL@ <[EMAIL PROTECTED]> 2006-08-05 00:58 > In article <[EMAIL PROTECTED]> (at Fri, 04 Aug 2006 12:23:08 +0200), Thomas > Graf <[EMAIL PROTECTED]> says: > > > This patchset implements multiple IPv6 routing tables and > > policy routing. Even though the code is almost

Re: [PATCH] [e1000]: Remove unnecessary tx_lock

2006-08-04 Thread Michael Chan
On Fri, 2006-08-04 at 20:10 +1000, Herbert Xu wrote: > 1) netif_wake_queue is about to occur. In this case it doesn't really > matter what we do as netif_wake_queue will always wake the queue for us. > In the worst case, it'll wake up the queue with too little room but that's > really uncommon an

Re: [PATCH] [e1000]: Remove unnecessary tx_lock

2006-08-04 Thread Stephen Hemminger
On Fri, 4 Aug 2006 20:10:17 +1000 Herbert Xu <[EMAIL PROTECTED]> wrote: > On Fri, Aug 04, 2006 at 06:37:34PM +1000, herbert wrote: > > > > [NETDRV] e1000: Fix potential tx wake up race > > Oops, I completely looked through netpoll_trap. Hmm, someone should > really move the ifdef into netpoll_t

[PATCH] pcnet32: break in 2.6.18-rc1 identified (corrected)

2006-08-04 Thread Don Fry
I noticed this morning that I had the polarity wrong in my patch yesterday for older chips in the pcnet32_suspend routine. Here is the correct patch to test. > A change I made for 2.6.17 and another for 2.6.18 do not work on older > pcnet32 chips which I do not have access to. Please test this p

Re: [PATCHSET] Multiple IPV6 Routing Tables & Policy Routing

2006-08-04 Thread YOSHIFUJI Hideaki / 吉藤英明
In article <[EMAIL PROTECTED]> (at Fri, 04 Aug 2006 12:23:08 +0200), Thomas Graf <[EMAIL PROTECTED]> says: > This patchset implements multiple IPv6 routing tables and > policy routing. Even though the code is almost rewritten : Thomas, there are some coflicts with current net-2.6 tree. Would you

[RFC] driver adjusts qlen, increases CPU

2006-08-04 Thread Jesse Brandeburg
So we've recently put a bit of code in our e1000 driver to decrease the qlen based on the speed of the link. On the surface it seems like a great idea. A driver knows when the link speed changed, and having a 1000 packet deep queue (the default for most kernels now) on top of a 100Mb/s link (o

[PATCH v2] [PKT_SCHED] RED: Fix overflow in calculation of queue average

2006-08-04 Thread Ilpo Järvinen
Overflow can occur very easily with 32 bits, e.g., with 1 second us_idle is approx. 2^20, which leaves only 11-Wlog bits for queue length. Since the EWMA exponent is typically around 9, queue lengths larger than 2^2 cause overflow. Whether the affected branch is taken when us_idle is as high as 1 s

Re: Private driver support emails should be avoided.

2006-08-04 Thread Erik Mouw
On Fri, Aug 04, 2006 at 10:46:03AM -0400, Jes Sorensen wrote: > > "Jeff" == Jeff Garzik <[EMAIL PROTECTED]> writes: > > Jeff> Just a reminder to folks out there... Don't send private driver > Jeff> support emails. > > Jeff> I receive a lot of email. A lot. Not as much as Linus or > Jeff> A

Re: problems with e1000 and jumboframes

2006-08-04 Thread Chris Leech
On 8/3/06, Evgeniy Polyakov <[EMAIL PROTECTED]> wrote: On Fri, Aug 04, 2006 at 03:59:37PM +1000, Herbert Xu ([EMAIL PROTECTED]) wrote: > Interesting. Could you guys post figures on alloc_page speed vs. kmalloc? They probalby measured kmalloc cache access, which only falls to alloc_pages when ca

Re: problems with e1000 and jumboframes

2006-08-04 Thread Chris Leech
On 8/3/06, Evgeniy Polyakov <[EMAIL PROTECTED]> wrote: > You're changing the size of the buffer without telling the hardware. > In the interrupt context e1000 knows the size of what was DMAed into > the skb, but that's after the fact. So e1000 could detect that memory > was corrupted, but not pr

Re: [RFC] irqbalance: Mark in-kernel irqbalance as obsolete, set to N by default

2006-08-04 Thread Arjan van de Ven
Andrew Morton wrote: On Mon, 31 Jul 2006 10:35:26 -0700 Auke Kok <[EMAIL PROTECTED]> wrote: We've recently seen a number of user bug reports against e1000 that the in-kernel irqbalance code is detrimental to network latency. The algorithm keeps swapping irq's for NICs from cpu to cpu causing e

Re: Private driver support emails should be avoided.

2006-08-04 Thread Jes Sorensen
> "Jeff" == Jeff Garzik <[EMAIL PROTECTED]> writes: Jeff> Just a reminder to folks out there... Don't send private driver Jeff> support emails. Jeff> I receive a lot of email. A lot. Not as much as Linus or Jeff> Andrew probably, but still sizable. And quite regularly, I will Jeff> receiv

Re: [RFC] irqbalance: Mark in-kernel irqbalance as obsolete, set to N by default

2006-08-04 Thread Auke Kok
Andrew Morton wrote: On Mon, 31 Jul 2006 10:35:26 -0700 Auke Kok <[EMAIL PROTECTED]> wrote: We've recently seen a number of user bug reports against e1000 that the in-kernel irqbalance code is detrimental to network latency. The algorithm keeps swapping irq's for NICs from cpu to cpu causing e

[6/6] [CRYPTO] s390: Added missing driver name and priority

2006-08-04 Thread Herbert Xu
Hi: Doh! I can't count. This is the last one for now. [CRYPTO] s390: Added missing driver name and priority Accelerated versions of crypto algorithms must carry a distinct driver name and priority in order to distinguish themselves from their generic counter- part. Signed-off-by: Herbert Xu <[

[5/7] [CRYPTO] api: Added asynchronous flag

2006-08-04 Thread Herbert Xu
Hi: [CRYPTO] api: Added asynchronous flag This patch adds the asynchronous flag and changes all existing users to only look up algorithms that are synchronous. Signed-off-by: Herbert Xu <[EMAIL PROTECTED]> Cheers, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmV>HI~} <[EMA

[3/7] [CRYPTO] api: Split out low-level API

2006-08-04 Thread Herbert Xu
Hi: [CRYPTO] api: Split out low-level API The crypto API is made up of the part facing users such as IPsec and the low-level part which is used by cryptographic entities such as algorithms. This patch splits out the latter so that the two APIs are more clearly delineated. As a bonus the low-leve

[1/7] [IPSEC]: Move linux/crypto.h inclusion out of net/xfrm.h

2006-08-04 Thread Herbert Xu
Hi: Here is a collection of patches before I introduce the new block cipher type. The first patch is because I got tired of recompiling net/ipv4/route.o whenever I change crypto.h :) [IPSEC]: Move linux/crypto.h inclusion out of net/xfrm.h The header file linux/crypto.h is only needed by a few

Re: [XFRM]: Improve MTU estimation

2006-08-04 Thread Herbert Xu
On Fri, Aug 04, 2006 at 01:51:24PM +0200, Patrick McHardy wrote: > > + if (!x->props.mode) > + mtu -= blksize - 4; You probably want to check for overflows here since mtu is unsigned. Cheers, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmV>HI~} <[EMAIL PROTE

Re: [XFRM]: Improve MTU estimation

2006-08-04 Thread Herbert Xu
On Fri, Aug 04, 2006 at 01:50:15PM +0200, Patrick McHardy wrote: > > Now I get it, thanks :) I missed that the IP header isn't part of the > length when it is aligned. So the worst-case increases by block-size > - 4 (- 8 for IPv6). How does this look? That should work. If you want to be fancy yo

Re: [XFRM]: Improve MTU estimation

2006-08-04 Thread Patrick McHardy
Patrick McHardy wrote: > Now I get it, thanks :) I missed that the IP header isn't part of the > length when it is aligned. So the worst-case increases by block-size > - 4 (- 8 for IPv6). How does this look? Forgot the patch .. diff --git a/include/net/xfrm.h b/include/net/xfrm.h index 9c5ee9f

Re: [XFRM]: Improve MTU estimation

2006-08-04 Thread Patrick McHardy
Herbert Xu wrote: > I've reread your patches and your handling of ESP padding is spot on. > It's anyone's guess whether the current code gets it right or not :) > > However, I believe that the transport mode handling does run into > problems with IP options. Basically, your calculation returns a

[PATCH] Fix LAPB windowsize check

2006-08-04 Thread Diego Calleja
In bug #6954, Norbert Reinartz reported the following issue: "Function lapb_setparms() in file net/lapb/lapb_iface.c checks if the given parameters are valid. If the given window size is in the range of 8 .. 127, lapb_setparms() fails and returns an error value of LAPB_INVALUE, even if bit LAPB_EX

Re: e100: checksum mismatch on 82551ER rev10

2006-08-04 Thread David Miller
From: David Miller <[EMAIL PROTECTED]> Date: Fri, 04 Aug 2006 04:20:24 -0700 (PDT) > I totally agree, Intel driver maintainers generally act like complete > idiots in these kinds of situations. > > If the EEPROM has a broken checksum, the user should have an option > that allows him to try and us

Re: [XFRM]: Improve MTU estimation

2006-08-04 Thread Herbert Xu
On Fri, Aug 04, 2006 at 09:16:04PM +1000, herbert wrote: > > Are you talking about the ESP padding case, or transport mode in > general? I've reread your patches and your handling of ESP padding is spot on. It's anyone's guess whether the current code gets it right or not :) However, I believe th

Re: [XFRM]: Improve MTU estimation

2006-08-04 Thread Patrick McHardy
Herbert Xu wrote: > On Fri, Aug 04, 2006 at 01:11:19PM +0200, Patrick McHardy wrote: > >>>Of course it gets hairier if you have ESP padding. I'm not even sure >>>if the current code gets that right. >> >>Unless I'm missing something, the padding caused by IP options >>is always less than the wors

Re: [PATCH] SNMPv2 tcpOutSegs counter error

2006-08-04 Thread David Miller
From: Wei Yongjun <[EMAIL PROTECTED]> Date: Fri, 04 Aug 2006 08:46:13 -0400 > This always correct except when do active open in tcp client, which will > send a SYN, that segment will not be counted, even if it is not > restrained. Maybe I can do following to fix this: > > int tcp_connect(struct s

Re: e100: checksum mismatch on 82551ER rev10

2006-08-04 Thread David Miller
From: "Molle Bestefich" <[EMAIL PROTECTED]> Date: Fri, 4 Aug 2006 13:04:07 +0200 > You're trying to pull Linux end users into a war between Intel and > it's vendors, so you can make end users scream at the vendors when > they forget to run the checksum tool. I totally agree, Intel driver maintain

Re: [XFRM]: Improve MTU estimation

2006-08-04 Thread Herbert Xu
On Fri, Aug 04, 2006 at 01:11:19PM +0200, Patrick McHardy wrote: > > > Of course it gets hairier if you have ESP padding. I'm not even sure > > if the current code gets that right. > > Unless I'm missing something, the padding caused by IP options > is always less than the worst case that can hap

Re: [XFRM]: Improve MTU estimation

2006-08-04 Thread Patrick McHardy
Herbert Xu wrote: > On Fri, Aug 04, 2006 at 12:09:18PM +0200, Patrick McHardy wrote: > >>I was wondering why the old code distinguished between transport mode >>and tunnel mode, I couldn't spot anything that would be affected. I'll >>look into the transport mode case again. > > > The problem is

Re: e100: checksum mismatch on 82551ER rev10

2006-08-04 Thread Molle Bestefich
Auke Kok wrote: Charlie Brady wrote: > Let's assume that these things are all true, and the NIC currently does > not work perfectly, just imperfectly, but acceptably. With the recent > driver change, it now does not work at all. That's surely a bug in the > driver. There is no logic in that sent

Re: [PATCH] SNMPv2 tcpOutSegs counter error

2006-08-04 Thread Wei Yongjun
This always correct except when do active open in tcp client, which will send a SYN, that segment will not be counted, even if it is not restrained. Maybe I can do following to fix this: int tcp_connect(struct sock *sk) ... + tp->snd_nxt = tp->write_seq; TCP_SKB_CB(buff)->seq = tp->w

Re: [PATCH] [e1000]: Remove unnecessary tx_lock

2006-08-04 Thread jamal
On Fri, 2006-04-08 at 20:25 +1000, Herbert Xu wrote: > Well it's not that good since the current code only takes the > lock in exceptional circumstances while my patch does the atomic > op unconditionally. yes, it would be nice to fix that. However, from a selfish angle, my worries are more about

Re: [PATCHSET] Multiple IPV6 Routing Tables & Policy Routing

2006-08-04 Thread David Miller
From: Thomas Graf <[EMAIL PROTECTED]> Date: Fri, 04 Aug 2006 12:23:08 +0200 > This patchset implements multiple IPv6 routing tables and > policy routing. Even though the code is almost rewritten > entirely the work is based on the MIPL patch found on > mobile-ipv6.org which is being jointly develo

[PATCH 2/5] [IPV6]: Multiple Routing Tables

2006-08-04 Thread Thomas Graf
Adds the framework to support multiple IPv6 routing tables. Currently all automatically generated routes are put into the same table. This could be changed at a later point after considering the produced locking overhead. Signed-off-by: Thomas Graf <[EMAIL PROTECTED]> Index: net-2.6.19/include/ne

[PATCH 5/5] [IPV4]: Use Protocol Independant Policy Routing Rules Framework

2006-08-04 Thread Thomas Graf
Signed-off-by: Thomas Graf <[EMAIL PROTECTED]> Index: net-2.6.19/include/net/ip_fib.h === --- net-2.6.19.orig/include/net/ip_fib.h +++ net-2.6.19/include/net/ip_fib.h @@ -18,6 +18,7 @@ #include #include +#include /* WARNING:

[PATCH 4/5] [IPV6]: Policy Routing Rules

2006-08-04 Thread Thomas Graf
Adds support for policy routing rules including a new local table for routes with a local destination. Signed-off-by: Thomas Graf <[EMAIL PROTECTED]> Index: net-2.6.19/net/ipv6/fib6_rules.c === --- /dev/null +++ net-2.6.19/net/ipv6/f

[PATCH 3/5] [NET]: Protocol Independant Policy Routing Rules Framework

2006-08-04 Thread Thomas Graf
Derived from net/ipv/fib_rules.c Signed-off-by: Thomas Graf <[EMAIL PROTECTED]> Index: net-2.6.19/include/linux/fib_rules.h === --- /dev/null +++ net-2.6.19/include/linux/fib_rules.h @@ -0,0 +1,60 @@ +#ifndef __LINUX_FIB_RULES_H +#de

[PATCHSET] Multiple IPV6 Routing Tables & Policy Routing

2006-08-04 Thread Thomas Graf
Hello, This patchset implements multiple IPv6 routing tables and policy routing. Even though the code is almost rewritten entirely the work is based on the MIPL patch found on mobile-ipv6.org which is being jointly developed by Helsinki University of Technology (HUT) and the USAGI/WIDE Project. R

[PATCH 1/5] [IPV6]: Remove ndiscs rt6_lock dependency

2006-08-04 Thread Thomas Graf
(Ab)using rt6_lock wouldn't work anymore if rt6_lock is converted into a per table lock. Signed-off-by: Thomas Graf <[EMAIL PROTECTED]> Index: net-2.6.19/net/ipv6/route.c === --- net-2.6.19.orig/net/ipv6/route.c +++ net-2.6.19/net/ip

Re: [PATCH] [e1000]: Remove unnecessary tx_lock

2006-08-04 Thread Herbert Xu
On Fri, Aug 04, 2006 at 06:16:03AM -0400, jamal wrote: > > I still have my setup intact, so i will give this a whirl in about 3-4 > hours. It does look promising - an atomic should be a lot cheaper than a > lock. Thanks Herbert. Well it's not that good since the current code only takes the lock i

Re: [PATCH] [e1000]: Remove unnecessary tx_lock

2006-08-04 Thread jamal
On Fri, 2006-04-08 at 20:10 +1000, Herbert Xu wrote: > On Fri, Aug 04, 2006 at 06:37:34PM +1000, herbert wrote: > > > > [NETDRV] e1000: Fix potential tx wake up race > > Oops, I completely looked through netpoll_trap. Hmm, someone should > really move the ifdef into netpoll_trap. Stephen? > >

Re: [XFRM]: Improve MTU estimation

2006-08-04 Thread Herbert Xu
On Fri, Aug 04, 2006 at 12:09:18PM +0200, Patrick McHardy wrote: > > I was wondering why the old code distinguished between transport mode > and tunnel mode, I couldn't spot anything that would be affected. I'll > look into the transport mode case again. The problem is basically you don't know a

Re: [XFRM]: Improve MTU estimation

2006-08-04 Thread Patrick McHardy
Herbert Xu wrote: > On Fri, Aug 04, 2006 at 11:27:11AM +0200, Patrick McHardy wrote: > >>-static u32 esp4_get_max_size(struct xfrm_state *x, int mtu) >>+static u32 esp4_get_mtu(struct xfrm_state *x, int mtu) >> { >> struct esp_data *esp = x->data; >>- u32 blksize = ALIGN(crypto_tfm_alg_bl

Re: [PATCH] [e1000]: Remove unnecessary tx_lock

2006-08-04 Thread Herbert Xu
On Fri, Aug 04, 2006 at 06:37:34PM +1000, herbert wrote: > > [NETDRV] e1000: Fix potential tx wake up race Oops, I completely looked through netpoll_trap. Hmm, someone should really move the ifdef into netpoll_trap. Stephen? BTW, who uses netpoll_set_trap anyway? There seems to be no user in t

Re: [patch] RFC: matching interface groups

2006-08-04 Thread Patrick McHardy
Balazs Scheidler wrote: > The use-case is as follows: > > * I have two different subsystems creating interfaces dynamically (for > example pptpd and serial pppd lines, each creating dynamic pppX > interfaces), > * I would like to assign a different set of iptables rules for these > clients, > * I

Re: [XFRM]: Improve MTU estimation

2006-08-04 Thread Herbert Xu
On Fri, Aug 04, 2006 at 11:27:11AM +0200, Patrick McHardy wrote: > > [XFRM]: Improve MTU estimation > > Replace the probing based MTU estimation, which usually takes 2-3 > iterations to find a fitting value and may underestimate the MTU, > by an exact calculation. Thanks Patrick, this is definite

Re: [XFRM]: Improve MTU estimation

2006-08-04 Thread Patrick McHardy
Patrick McHardy wrote: > int xfrm_state_mtu(struct xfrm_state *x, int mtu) > { > - int res = mtu; > - > - res -= x->props.header_len; > - > - for (;;) { > - int m = res; > - > - if (m < 68) > - return 68; > - > - spin_lock_bh(&x-

[XFRM]: Improve MTU estimation

2006-08-04 Thread Patrick McHardy
While trying to track down a PMTUD problem with IPsec, I misread the current MTU estimation code and initially thought it would overestimate the MTU. I then noticed that this was wrong, but by that time had already replaced it by an exact calculation. It fixes the common underestimation of the MTU

Re: [PATCH] [e1000]: Remove unnecessary tx_lock

2006-08-04 Thread Herbert Xu
On Fri, Aug 04, 2006 at 11:10:27AM +1000, herbert wrote: > > So we need to fix e1000 anyway. Here is a fix that also gets rid of the tx_lock on the wake up side. Please scrutinise this as much as you can. Jamal, please run this through your performance test to see if it has a similar effect as y

Re: [RFC] gre: transparent ethernet bridging

2006-08-04 Thread Lennert Buytenhek
On Fri, Aug 04, 2006 at 11:00:55AM +1000, Philip Craig wrote: > >>> So now you _need_ bridging in the middle to send ethernet traffic over > >>> a GRE tunnel? Ugh. > >> Agreed that would not be nice. What is the usage scenario for this? > >> At least one end of the tunnel will be bridged? > > >