Re: Races in net_rx_action vs netpoll?

2007-07-19 Thread Olaf Kirch
s in poll_napi. Comments? David, should I submit an updated patch for 2.6.23, or do you prefer to yank the patch now and try again for 2.6.24? Olaf -- Olaf Kirch | --- o --- Nous sommes du soleil we love when we play [EMAIL PROTECTED] |/ | \ sol.dhoop.naytheet.ah kin.ir.samse.qurax - To

Re: Races in net_rx_action vs netpoll?

2007-07-12 Thread Olaf Kirch
the main > reason for such troublesome function as poll_napi: if it's about > performance isn't this enough to increase budget for netpoll in > net_rx_action? I think one reason is that you want to get the kernel oops out even when the machine is so hosed th

Re: Races in net_rx_action vs netpoll?

2007-07-11 Thread Olaf Kirch
the RX_SCHED bit is that the RX_SCHED bit and the poll_list change must happen atomically wrt interrupts from the NIC, right? Olaf -- Olaf Kirch | --- o --- Nous sommes du soleil we love when we play [EMAIL PROTECTED] |/ | \ sol.dhoop.naytheet.ah kin.ir.samse.qurax - To unsubscribe from t

Re: Races in net_rx_action vs netpoll?

2007-07-10 Thread Olaf Kirch
starting > a NAPI poll. Understood. How about the patch below? It takes a similar approach, but it puts the onus on the netpoll code path rather than the general NAPI case. Olaf ------ From: Olaf Kirch <[EMAIL PROTECTED]> Keep netpoll/poll_napi from messing with the poll_l

Races in net_rx_action vs netpoll?

2007-07-04 Thread Olaf Kirch
poll_list. Only net_rx_action should be allowed to do so. A possible patch is given below (beware, it's untested so far) Olaf -- Olaf Kirch | --- o --- Nous sommes du soleil we love when we play [EMAIL PROTECTED] |/ | \ sol.dhoop.naytheet.ah kin.ir.samse.qurax - From:

Re: [RFD] First draft of RDNSS-in-RA support for IPv6 DNS autoconfiguration

2007-06-24 Thread Olaf Kirch
an integrated network autoconfiguration daemon capable of doing DHCP, DHCP6, RDNSS, mDNS, you-name-it would be a nice thing. Olaf -- Olaf Kirch | --- o --- Nous sommes du soleil we love when we play [EMAIL PROTECTED] |/ | \ sol.dhoop.naytheet.ah kin.ir.samse.qurax - To unsubscribe from th

[PATCH] net: Make skb_seq_read unmap the last fragment

2007-06-19 Thread Olaf Kirch
From: Olaf Kirch <[EMAIL PROTECTED]> Make skb_seq_read unmap the last fragment Having walked through the entire skbuff, skb_seq_read would leave the last fragment mapped. As a consequence, the unwary caller would leak kmaps, and proceed with preempt_count off by one. The only (kind

Re: very strange inet_sock corruption with rpc

2007-04-25 Thread Olaf Kirch
g TIME_WAIT will be replaced by an inet_timewait_sock, which is a kind of truncated inet_sock. Olaf -- Olaf Kirch | --- o --- Nous sommes du soleil we love when we play [EMAIL PROTECTED] |/ | \ sol.dhoop.naytheet.ah kin.ir.samse.qurax - To unsubscribe from this list: send the line "unsubscrib

Re: [PATCH 1/2] avoid OPEN_MAX in SCM_MAX_FD

2007-03-14 Thread Olaf Kirch
find a piece of code that still uses it, it's most likely something that hasn't seen a compiler in years - and will likely continue to do so. Olaf -- Olaf Kirch | --- o --- Nous sommes du soleil we love when we play [EMAIL PROTECTED] |/ | \ sol.dhoop.naytheet.ah kin.ir.samse.q

Fix for ipv6_setsockopt NULL dereference

2007-03-09 Thread Olaf Kirch
I came across this bug in http://bugzilla.kernel.org/show_bug.cgi?id=8155 Here's a potential fix. Olaf -- Olaf Kirch | --- o --- Nous sommes du soleil we love when we play [EMAIL PROTECTED] |/ | \ sol.dhoop.naytheet.ah kin.ir.samse.qurax -- Fix NULL pointer derefence in ipv6_setso

Re: [NFS] [PATCH 001 of 3] knfsd: Use recv_msg to get peer address for NFSD instead of code-copying

2007-03-05 Thread Olaf Kirch
ther PKTINFO cmsg when sending the reply. So it would be much easier to just store the raw control message in the svc_rqst, without looking at its contents, and send it out along with the reply, unchanged. Olaf -- Olaf Kirch | --- o --- Nous sommes du soleil we love when we play [EMAI

Re: [NFS] [PATCH 001 of 3] knfsd: Use recv_msg to get peer address for NFSD instead of code-copying

2007-03-05 Thread Olaf Kirch
at the addresses a little awkward too. And I think to be on the safe side, you should check that you're really looking at a PKTINFO cmsg rather than something else. Olaf -- Olaf Kirch | --- o --- Nous sommes du soleil we love when we play [EMAIL PROTECTED] |/ | \ sol.dhoop.naythee

Re: Question on IOAT

2007-02-05 Thread Olaf Kirch
just not there now, but it can be added easily, it's one bit in > the descriptor and a register read in the interrupt handler to see > which channel(s) need attention. Hm, okay. Olaf -- Olaf Kirch | --- o --- Nous sommes du soleil we love when we play [EMAIL PROTECTED] |/ | \ sol.dho

Question on IOAT

2007-02-05 Thread Olaf Kirch
cpying? I also checked the code in ioatdma.c - I would have expected there to be some kind of interrupt handler that kicks the upper layers when a DMA operation completes. But the interrupt handler seems to be for error reporting exclusively... Olaf -- Olaf Kirch | --- o --- Nous somme

[RFC] natsemi cable length woes

2007-01-04 Thread Olaf Kirch
Here's a proposed patch that addresses a problem with natsemi NICs and long cables we've been chasing (*sigh*). I'm interested in feedback on how to fix this sanely. Olaf ------ From: Olaf Kirch <[EMAIL PROTECTED]

Re: 2.6.19-rc1: Volanomark slowdown

2006-11-09 Thread Olaf Kirch
On Wed, Nov 08, 2006 at 02:07:32PM -0800, Tim Chen wrote: > In my testing, the CPU utilization is at 100%. So > increase in ACKs will cost CPU to devote more > time to process those ACKs and reduce throughput. Oh, I see. I would test on a real network with real clients. I doubt you would observe

Re: 2.6.19-rc1: Volanomark slowdown

2006-11-08 Thread Olaf Kirch
On Wed, Nov 08, 2006 at 10:38:52AM -0800, Tim Chen wrote: > The patch in question affects purely TCP and not the scheduler. I don't I know. > think the scheduler has anything to do with the slowdown seen after > the patch is applied. In fixing performance issues, the most obvious explanation is

Re: 2.6.19-rc1: Volanomark slowdown

2006-11-08 Thread Olaf Kirch
On Wed, Nov 08, 2006 at 04:55:18PM +0100, Arjan van de Ven wrote: > I wonder if it's an option to use low priority QoS fields for these acks > (heck I don't even know if ACKs have such fields in their packet) so > that they can get dropped if there are more packets then there is > bandwidth I

[PATCH] Fix order in inet_init failure path.

2006-09-26 Thread Olaf Kirch
This is just a minor buglet I came across by accident - when inet_init fails to register raw_prot, it jumps to out_unregister_udp_proto which should unregister UDP _and_ TCP. Signed-off-by: Olaf Kirch <[EMAIL PROTECTED]> net/ipv4/af_inet.c |4 ++-- 1 files changed, 2 insertions

Re: [RFC IPv6] Disabling IPv6 autoconf

2006-08-29 Thread Olaf Kirch
s not a > new problem at all. Okay, fine with me - maybe we can convince them to use that instead. Thanks for the feedback, Olaf -- Olaf Kirch | --- o --- Nous sommes du soleil we love when we play [EMAIL PROTECTED] |/ | \ sol.dhoop.naytheet.ah kin.ir.samse.qurax - To unsubscribe from

Re: [RFC IPv6] Disabling IPv6 autoconf

2006-08-29 Thread Olaf Kirch
ort with the bogus link-layer address. I tend to agree that it's incorrect to assign an address at all in this case. Olaf -- Olaf Kirch | --- o --- Nous sommes du soleil we love when we play [EMAIL PROTECTED] |/ | \ sol.dhoop.naytheet.ah kin.ir.samse.qurax - To unsubscribe from thi

Re: [RFC IPv6] Disabling IPv6 autoconf

2006-08-29 Thread Olaf Kirch
ULTICAST). That should work just as well. Do you want me to submit an updated patch? Thanks, Olaf -- Olaf Kirch | --- o --- Nous sommes du soleil we love when we play [EMAIL PROTECTED] |/ | \ sol.dhoop.naytheet.ah kin.ir.samse.qurax - To unsubscribe from this list: send the line &qu

Re: [RFC IPv6] Disabling IPv6 autoconf

2006-08-29 Thread Olaf Kirch
netloop device in which case they won't have to disable multicasting > on the bridge device anymore. I agree, this would be the right long-term fix. Olaf -- Olaf Kirch | --- o --- Nous sommes du soleil we love when we play [EMAIL PROTECTED] |/ | \ sol.dhoop.naytheet.ah kin.ir.samse.qu

[PATCH IPv6] Fix race condition in ipv6_add_addr

2006-08-29 Thread Olaf Kirch
patch fixes the problem. Thanks, Olaf -- Olaf Kirch | --- o --- Nous sommes du soleil we love when we play [EMAIL PROTECTED] |/ | \ sol.dhoop.naytheet.ah kin.ir.samse.qurax From: Keir Fraser <[EMAIL PROTECTED]> Subject: ipv6_add_addr should install dstentry earlier ipv6_add_ad

[RFC IPv6] Disabling IPv6 autoconf

2006-08-29 Thread Olaf Kirch
p the device first (and thereby triggering DAD). The attached tentative patch makes IPv6 autoconf depend on the availability of IFF_MULTICAST. This is admittedly a bit of a hack, but it makes sense, since DAD and router solicitation do rely on multicast. Any comments? Thanks, Olaf -- Olaf

Re: [PATCH netdev-2.6 00/19] e1000: driver update (fixes for 2.6.16)

2006-03-03 Thread Olaf Kirch
long as they're bugfix only. Major driver updates at this point would invalidate the QA that has happened on these already. > I'll push it into netdev-2.6.git#upstream (and into meta-branch #ALL), > which means it is queued for 2.6.17 [2.6.16-git1, really]. Once that Fine with

Re: Strange IPsec freeze/partial fix

2006-02-08 Thread Olaf Kirch
then do the retry again. Yes, that is simpler, and should work as well. > Signed-off-by: Herbert Xu <[EMAIL PROTECTED]> Acked-by: Olaf Kirch <[EMAIL PROTECTED]> Olaf -- Olaf Kirch | --- o --- Nous sommes du soleil we love when we play [EMAIL PROTECTED] |/

Strange IPsec freeze/partial fix

2006-02-07 Thread Olaf Kirch
te loop in xfrm_lookup It seems that the route xfrm_lookup is given on input can go away when we sleep. Signed-off-by: Olaf Kirch <[EMAIL PROTECTED]> net/ipv4/route.c | 25 - net/xfrm/xfrm_policy.c | 16 2 files changed, 32 insert

Re: e100 oops on resume

2006-01-26 Thread Olaf Kirch
On Thu, Jan 26, 2006 at 08:02:37PM +0100, Stefan Seyfried wrote: > Will be in the next SUSE betas, so if anything breaks, we'll notice > it. I doubt it. As Jesse mentioned, e100_hw_init is called from e100_up, so the call from e100_resume was really superfluous. Olaf -- Olaf Kirch

Re: e100 oops on resume

2006-01-25 Thread Olaf Kirch
ect, but its taking me a while to set up a system with > the ability to resume. I'll ask the folks here to give it a try tomorrow. But I suspect at least some of it will be needed. For instance I assume you'll have to reload to ucode when bringing the NIC back from sleep. Olaf -- Olaf

Re: e100 oops on resume

2006-01-25 Thread Olaf Kirch
On Wed, Jan 25, 2006 at 10:02:40AM +0100, Olaf Kirch wrote: > I'm not sure what the right fix would be. e100_resume would probably > have to call e100_alloc_cbs early on, while e100_up should avoid > calling it a second time if nic->cbs_avail != 0. A tentative patch > for

Re: e100 oops on resume

2006-01-25 Thread Olaf Kirch
re what the right fix would be. e100_resume would probably have to call e100_alloc_cbs early on, while e100_up should avoid calling it a second time if nic->cbs_avail != 0. A tentative patch for testing is attached. Olaf -- Olaf Kirch | --- o --- Nous sommes du soleil we love when we play

[PATCH] ipw2200 - do not sleep in ipw_request_direct_scan

2006-01-09 Thread Olaf Kirch
an ioctl - so return EAGAIN and let wpa_supplicant handle the problem. Signed-off-by: Olaf Kirch <[EMAIL PROTECTED]> drivers/net/wireless/ipw2200.c | 14 ++ 1 files changed, 6 insertions(+), 8 deletions(-) Index: linux

[PATCH] rt2x00core: fix mismatched rwsem calls

2006-01-09 Thread Olaf Kirch
th an up_write call. Signed-off-by: Olaf Kirch <[EMAIL PROTECTED]> rt2x00core.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) Index: rt2x00-2.0.0-b3/rt2x00core.c === --- rt2x00-2.0.0-b3.orig/rt2x00core.c +++ rt2x

Re: Fw: [Fwd: [Bug 5644] New: NFS v3 TCP 3-way handshake incorrect, iptables blocks access]

2005-11-24 Thread Olaf Kirch
n; I just did the initial debugging. But it seems the first patch went into 2.6.10, the other into 2.6.11-rc1. Olaf -- Olaf Kirch | --- o --- Nous sommes du soleil we love when we play [EMAIL PROTECTED] |/ | \ sol.dhoop.naytheet.ah kin.ir.samse.qurax - To unsubscribe from this list: send the l

Re: [Fwd: [Bug 5644] New: NFS v3 TCP 3-way handshake incorrect, iptables blocks access]

2005-11-23 Thread Olaf Kirch
On Wed, Nov 23, 2005 at 07:01:59PM +0100, Olaf Kirch wrote: > We've seen this previously, and submitted a fix to netfilter which > supposedly went into mainline at some point. It seems to be gone > from 2.6.14 though. And here are the two patches that came out of the netfilter disc

Re: [Fwd: [Bug 5644] New: NFS v3 TCP 3-way handshake incorrect, iptables blocks access]

2005-11-23 Thread Olaf Kirch
n it picks a new port, and succeeds (maybe). Olaf -- Olaf Kirch | --- o --- Nous sommes du soleil we love when we play [EMAIL PROTECTED] |/ | \ sol.dhoop.naytheet.ah kin.ir.samse.qurax - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message

Re: [PATCH] Fix oops in r8169 driver

2005-11-17 Thread Olaf Kirch
On Thu, Nov 17, 2005 at 08:31:07PM +0100, Francois Romieu wrote: > Olaf Kirch <[EMAIL PROTECTED]> : > [...] > > When rtl8169_init_board didn't find the PCI power state > > capability, it would bail out but return 0 (success). > > rtl8169_init_one wo

[PATCH] Fix oops in r8169 driver

2005-11-17 Thread Olaf Kirch
Subject: Fix oops in r8169 driver When rtl8169_init_board didn't find the PCI power state capability, it would bail out but return 0 (success). rtl8169_init_one would then oops trying to dereference the dev pointer which is NULL. Signed-off-by: Olaf Kirch <[EMAIL PROTECTED]

Re: Small af_inet6 fix

2005-11-14 Thread Olaf Kirch
le once you unload the ipv6 > module. So I'll leave this alone for now. > > So putting your patch and the sock_register() check together > we end up with the following. Looks good to me. Thanks, Olaf -- Olaf Kirch | --- o --- Nous sommes du solei

Small af_inet6 fix

2005-11-11 Thread Olaf Kirch
ject: inet6_init: cleanup after failed initialization When initialization fails in inet6_init(), we should unregister the PF_INET6 socket ops. Signed-off-by: Olaf Kirch <[EMAIL PROTECTED]> Index: linux-2.6.14/net/ipv6/

[PATCH] Prevent oops when printing martian source

2005-07-11 Thread Olaf Kirch
etup/teardown. Olaf -- Olaf Kirch | --- o --- Nous sommes du soleil we love when we play [EMAIL PROTECTED] |/ | \ sol.dhoop.naytheet.ah kin.ir.samse.qurax From: Olaf Kirch <[EMAIL PROTECTED]> Subject: [IPv4] Prevent oops when printing martian source In some cases, we may be genera