Undocumented IPv6 options

2007-10-14 Thread Michael Kerrisk
Hello netdev, Andrew McDonald kindly fixed the description of IPV6_ROUTER_ALERT in the ipv7.7 man page. As long as we're on the topic, I'll point out that the following IPV6 options (and possibly others) are still not documented on that page: IPV6_CHECKSUM IPV6_JOIN_ANYCAST IPV6_LEAVE_ANYCAST IP

Re: [patch] ipv6.7: IPV6_ROUTER_ALERT sockopt correction

2007-10-14 Thread Michael Kerrisk
Hello Andrew, > I discovered that the current description of the IPV6_ROUTER_ALERT > sockopt in ipv6.7 is significantly wrong. A patch to fix the > description is below. I sent a version of this earlier in the year to > [EMAIL PROTECTED], but nothing happened with it at the time. Hmmm -- somehow

Re: [0/10] Remove sk_buff ** from netfilter API

2007-10-14 Thread Patrick McHardy
Herbert Xu wrote: On Sun, Sep 30, 2007 at 05:38:28PM +0200, Patrick McHardy wrote: >From a quick look it seems at least IPv4 and IPv6 don't need to change the skb anywhere else. It seems to be necessary for bridging though to unshare the skb. OTOH br_netfilter.c already unshares the skb for IPv4

Re: [patch] ipv6.7: IPV6_ROUTER_ALERT sockopt correction

2007-10-14 Thread Pekka Savola
Took off linux-man from cc:, On Sun, 14 Oct 2007, Andrew McDonald wrote: +The tapped packets are not forwarded by the kernel, it is the +user's responsibility to send them out again. This is probably incompliant (and from users' perspective, unacceptible) behaviour that IMHO should be fixed.

[NET]: Avoid copying TCP packets unnecessarily

2007-10-14 Thread Herbert Xu
On Mon, Oct 15, 2007 at 12:57:23PM +0800, Herbert Xu wrote: > > However, the fact that you're triggering this code at all tells > us that there is another bug further up the chain that's causing > us to generate partial checksums even though the NIC doesn't > support it. Can you please give me th

[patch] do not rely on OPEN_MAX

2007-10-14 Thread Mike Frysinger
the OPEN_MAX define was removed from the kernel's limits.h during the 2.6.23 development cycle, so switching to using the dynamic sysconf() func should be done -mike signature.asc Description: This is a digitally signed message part. the OPEN_MAX define has been removed in newer kernel headers

[NET]: Fix csum_start update in pskb_expand_head

2007-10-14 Thread Herbert Xu
On Sun, Oct 14, 2007 at 08:20:37PM +, Guillaume Chazarain wrote: > > Just another data point, it seems that running the standard Bittorrent > client helps triggering the bug. Doh! It was my patch a month ago which added code to update csum_start if the headroom changed that broke this. We'll

Re: [2.6 patch] __inet6_csk_dst_store(): fix check-after-use

2007-10-14 Thread Noriaki TAKAMIYA
Hi, >> Mon, 15 Oct 2007 11:45:10 +0900 >> [Subject: Re: [2.6 patch] __inet6_csk_dst_store(): fix check-after-use] >> Masahide NAKAMURA <[EMAIL PROTECTED]> wrote... > > On Sun, 14 Oct 2007 19:52:12 +0200 > Adrian Bunk <[EMAIL PROTECTED]> wrote: > > > The Coverity checker spotted that we have alr

Re: [2.6 patch] __inet6_csk_dst_store(): fix check-after-use

2007-10-14 Thread Masahide NAKAMURA
On Sun, 14 Oct 2007 19:52:12 +0200 Adrian Bunk <[EMAIL PROTECTED]> wrote: > The Coverity checker spotted that we have already oops'ed if "dst" > was NULL. > > Since "dst" being NULL doesn't seem to be possible at this point this > patch removes the NULL check. > > Signed-off-by: Adrian Bunk <[

[PATCH] netdev: convert non-obvious instances to use ARRAY_SIZE()

2007-10-14 Thread Alejandro Martinez Ruiz
This will convert remaining non-obvious or naive calculations of array sizes to use ARRAY_SIZE() macro. Signed-off-by: Alejandro Martinez Ruiz <[EMAIL PROTECTED]> --- drivers/net/cassini.c |2 +- drivers/net/irda/donauboe.c |2 +- drivers/net/ne-h8300.c |4 ++-- drivers/ne

Re: MSI interrupts and disable_irq

2007-10-14 Thread Benjamin Herrenschmidt
On Sun, 2007-10-14 at 16:15 -0700, Yinghai Lu wrote: > On 10/14/07, Benjamin Herrenschmidt <[EMAIL PROTECTED]> wrote: > > > > On Sun, 2007-10-14 at 09:15 +0200, Manfred Spraul wrote: > > > Yinghai Lu wrote: > > > > On 10/13/07, Manfred Spraul <[EMAIL PROTECTED]> wrote: > > > > > > > >> Someone aro

Re: MSI interrupts and disable_irq

2007-10-14 Thread Yinghai Lu
On 10/14/07, Benjamin Herrenschmidt <[EMAIL PROTECTED]> wrote: > > On Sun, 2007-10-14 at 09:15 +0200, Manfred Spraul wrote: > > Yinghai Lu wrote: > > > On 10/13/07, Manfred Spraul <[EMAIL PROTECTED]> wrote: > > > > > >> Someone around with a MSI capable board? The forcedeth driver does > > >> d

Re: Don't leak 'listeners' in netlink_kernel_create()

2007-10-14 Thread Eric W. Biederman
Jesper Juhl <[EMAIL PROTECTED]> writes: > From: Jesper Juhl <[EMAIL PROTECTED]> > Subject: Don't leak 'listeners' in netlink_kernel_create() > > The Coverity checker spotted that we'll leak the storage allocated > to 'listeners' in netlink_kernel_create() when the > if (!nl_table[unit].register

Re: [PATCH v3 4/4] FEC mpc52xx: phy part of the driver

2007-10-14 Thread Grant Likely
On 10/14/07, Domen Puncer <[EMAIL PROTECTED]> wrote: > PHY part of the driver for mpc5200(b) ethernet. Assuming I understand correctly, this comment is not correct and this patch just adds an MDIO bus driver. PHY drivers are in phylib and data transfer is setup via the core driver, correct? It i

Re: MSI interrupts and disable_irq

2007-10-14 Thread Benjamin Herrenschmidt
On Sun, 2007-10-14 at 09:15 +0200, Manfred Spraul wrote: > Yinghai Lu wrote: > > On 10/13/07, Manfred Spraul <[EMAIL PROTECTED]> wrote: > > > >> Someone around with a MSI capable board? The forcedeth driver does > >> dev->irq = pci_dev->irq > >> in nv_probe(), especially before pci_enable_m

Re: [PATCH v3 3/4] FEC mpc52xx: the driver

2007-10-14 Thread Grant Likely
On 10/14/07, Domen Puncer <[EMAIL PROTECTED]> wrote: > Driver for ethernet on mpc5200/mpc5200b SoCs (FEC). > > > Signed-off-by: Domen Puncer <[EMAIL PROTECTED]> Looks quite good to me. Comments below... > > --- > drivers/net/Kconfig |1 > drivers/net/Makefile |1

Re: kernel BUG at net/core/dev.c:1383 skb_checksum_help: BUG_ON(offset > (int)skb->len)

2007-10-14 Thread Guillaume Chazarain
Le Sun, 14 Oct 2007 19:26:40 +0200, Guillaume Chazarain <[EMAIL PROTECTED]> a écrit : > #0 0xc02c9d5e in skb_checksum_help (skb=0xe218dcb0) at net/core/dev.c:1372 > 1372BUG_ON(offset > (int)skb->len); Just another data point, it seems that running the standard Bittorrent client helps

Re: MSI interrupts and disable_irq

2007-10-14 Thread Yinghai Lu
On 10/14/07, Manfred Spraul <[EMAIL PROTECTED]> wrote: > Yinghai Lu wrote: > > On 10/13/07, Manfred Spraul <[EMAIL PROTECTED]> wrote: > > > >> Someone around with a MSI capable board? The forcedeth driver does > >> dev->irq = pci_dev->irq > >> in nv_probe(), especially before pci_enable_msi().

[2.6 patch] __inet6_csk_dst_store(): fix check-after-use

2007-10-14 Thread Adrian Bunk
The Coverity checker spotted that we have already oops'ed if "dst" was NULL. Since "dst" being NULL doesn't seem to be possible at this point this patch removes the NULL check. Signed-off-by: Adrian Bunk <[EMAIL PROTECTED]> --- eeb6009cf3ef5f6993ced359330d877680617a70 diff --git a/net/ipv6/ine

[2.6 patch] e1000e/ethtool.c: fix error checks

2007-10-14 Thread Adrian Bunk
You want to check for the value, not for the address. Spotted by the Coverity checker. Signed-off-by: Adrian Bunk <[EMAIL PROTECTED]> --- --- a/drivers/net/e1000e/ethtool.c +++ b/drivers/net/e1000e/ethtool.c @@ -1451,11 +1451,11 @@ static int e1000_loopback_test(struct e1000_adapter *adapter, u

drivers/net/niu.c: possible array overflows

2007-10-14 Thread Adrian Bunk
The Coverity checker spotted the following in drivers/net/niu.c: <-- snip --> ... static int __devinit niu_pci_probe_sprom(struct niu *np) { ... val = nr64(ESPC_MOD_STR_LEN); niudbg(PROBE, "SPROM: MOD_STR_LEN[%llu]\n", (unsigned long long) val); if (val >

Re: [PATCH] tc35815: remove redefinition of lp

2007-10-14 Thread Atsushi Nemoto
On Sun, 14 Oct 2007 15:35:55 +0900, Yoichi Yuasa <[EMAIL PROTECTED]> wrote: > Remove redefinition of lp in tc35815.c. > > drivers/net/tc35815.c: In function 'tc35815_interrupt': > drivers/net/tc35815.c:1464: error: redefinition of 'lp' > drivers/net/tc35815.c:1443: error: previous definition of 'l

[PATCH][MIPS] AR7 ethernet

2007-10-14 Thread Matteo Croce
New version which uses less locking and drops old API Signed-off-by: Matteo Croce <[EMAIL PROTECTED]> Signed-off-by: Eugene Konev <[EMAIL PROTECTED]> Signed-off-by: Felix Fietkau <[EMAIL PROTECTED]> diff --git a/drivers/net/Kconfig b/drivers/net/Kconfig index e412582..5ab5d5b 100644 --- a/drivers

Re: [PATCH] IB/ipoib: Bound the net device to the ipoib_neigh structue

2007-10-14 Thread Moni Shoua
Roland Dreier wrote: > > It happens only when ib interfaces are slaves of a bonding device. > > I thought before that the stuck is in napi_disable() but it's almost right. > > I put prints before and after call to napi_disable and see that it is > called twice. > > I'll try to investigate in t

Re: [PATCH 3/3] [IPV6]: Replace sk_buff ** with sk_buff * in input handlers

2007-10-14 Thread YOSHIFUJI Hideaki / 吉藤英明
Herbert, I really appreciate this work. Thank you! --yoshfuji In article <[EMAIL PROTECTED]> (at Sun, 14 Oct 2007 22:49:05 +0800), Herbert Xu <[EMAIL PROTECTED]> says: > [IPV6]: Replace sk_buff ** with sk_buff * in input handlers > > With all the users of the double pointers removed from the

[PATCH 3/3] [IPV6]: Replace sk_buff ** with sk_buff * in input handlers

2007-10-14 Thread Herbert Xu
[IPV6]: Replace sk_buff ** with sk_buff * in input handlers With all the users of the double pointers removed from the IPv6 input path, this patch converts all occurances of sk_buff ** to sk_buff * in IPv6 input handlers. Signed-off-by: Herbert Xu <[EMAIL PROTECTED]> --- include/net/ipv6.h

[PATCH 1/3] [IPV6]: Make ipv6_frag_rcv return the same packet

2007-10-14 Thread Herbert Xu
[IPV6]: Make ipv6_frag_rcv return the same packet This patch implements the same change taht was done to ip_defrag. It makes ipv6_frag_rcv return the last packet received of a train of fragments rather than the head of that sequence. This allows us to get rid of the sk_buff ** argument later. S

[PATCH 2/3] [IPV6]: Avoid skb_copy/pskb_copy/skb_realloc_headroom on input

2007-10-14 Thread Herbert Xu
[IPV6]: Avoid skb_copy/pskb_copy/skb_realloc_headroom on input This patch replaces unnecessary uses of skb_copy by pskb_expand_head on the IPv6 input path. This allows us to remove the double pointers later. Signed-off-by: Herbert Xu <[EMAIL PROTECTED]> --- net/ipv6/exthdrs.c | 23 +-

[0/3] [IPV6]: Kill sk_buff ** usage on input path

2007-10-14 Thread Herbert Xu
On Sun, Oct 14, 2007 at 05:55:41PM +0800, Herbert Xu wrote: > > [NETFILTER]: Replace sk_buff ** with sk_buff * Following on from that work, I've done the same thing to the IPv6 input path. Cheers, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmV>HI~} <[EMAIL PROTECTED]> Home

[patch] ipv6.7: IPV6_ROUTER_ALERT sockopt correction

2007-10-14 Thread Andrew McDonald
Hi, I discovered that the current description of the IPV6_ROUTER_ALERT sockopt in ipv6.7 is significantly wrong. A patch to fix the description is below. I sent a version of this earlier in the year to [EMAIL PROTECTED], but nothing happened with it at the time. The correction is based on reading

Re: Bonding support for eth1394?

2007-10-14 Thread Stefan Richter
Bill Fink wrote: > I believe the user wanted to bond an eth1394 interface with a normal > Ethernet interface, and I don't think that will work even with the > IPoIB bonding changes, since bonding of different fundamental types > of network interfaces still won't be supported, and I'm pretty sure >

Re: Bluetooth wireless mouse very sluggish when there is moderated network activity

2007-10-14 Thread Jiri Kosina
On Sat, 13 Oct 2007, Ismail Dönmez wrote: > input: Microsoft Microsoft? Wireless Notebook Presenter Mouse 8000 as > /devices/pci:00/:00:1d.1/usb3/3-1/3-1.3/3-1.3:1.0/input/input12 > input: USB HID v1.11 Mouse [Microsoft Microsoft? Wireless Notebook > Presenter Mouse 8000] on usb-:00

Re: [PATCH 5/10] [NET]: Avoid unnecessary cloning for ingress filtering

2007-10-14 Thread jamal
On Sun, 2007-14-10 at 12:27 +0800, Herbert Xu wrote: > [NET]: Avoid unnecessary cloning for ingress filtering > > As it is we always invoke pt_prev before ing_filter, even if there are no > ingress filters attached. This can cause unnecessary cloning in pt_prev. > > This patch changes it so that

Re: [2.6.20.21 review 12/35] TCP: Fix TCP handling of SACK in

2007-10-14 Thread Al Boldi
Ilpo Järvinen wrote: > Willy Tarreau wrote: > > I agree with this. The impression I got from the description of the two > > patches I merged was that the problems they fix were quite annoying. But > > maybe I should take that with a grain of salt. > > No, it's not a grain of salt. I would say its u

Re: [PATCH 1/10] [SKBUFF]: Merge common code between copy_skb_header and skb_clone

2007-10-14 Thread jamal
On Sun, 2007-14-10 at 12:27 +0800, Herbert Xu wrote: > In fact the tc_verd stuff is almost certainly a bug since it's treated > differently in skb_clone compared to the callers of copy_skb_header > (skb_copy/pskb_copy/skb_copy_expand). > > I've kept that difference in tact with a comment added a

Re: [PATCH] Update function names in /proc/net/tcp documentation

2007-10-14 Thread Herbert Xu
Jean Delvare <[EMAIL PROTECTED]> wrote: > >> inet_diag is the preferred interface. > > How does it work? Is there some documentation available? I see > net/ipv4/inet_diag.c but I have no idea how to use it. Have a look at the iproute package. It contains the ss command which provides a command-l

Re: [PATCH] Update function names in /proc/net/tcp documentation

2007-10-14 Thread Jean Delvare
Hi Herbert, On Sat, 13 Oct 2007 20:49:56 +0800, Herbert Xu wrote: > Jean Delvare <[EMAIL PROTECTED]> wrote: > > > > I didn't know that, sorry. What is the new interface to access the > > TCP information? > > inet_diag is the preferred interface. How does it work? Is there some documentation avai

Re: [PATCH 00/14] Transparent Proxying Patches, Take 5

2007-10-14 Thread KOVACS Krisztian
Hi David, On Sunday 14 October 2007, David Miller wrote: > From: KOVACS Krisztian <[EMAIL PROTECTED]> > Date: Sat, 13 Oct 2007 19:28:57 +0200 > > > This is the fifth round of transparent proxying patches following > > recent discussion on netfilter-devel [1,2]. > > > > The aim of the patchset is t

RE: [PATCH] tehuti: possible leak in bdx_probe

2007-10-14 Thread Alexander Indenbaum
> -Original Message- > From: Florin Malita [mailto:[EMAIL PROTECTED] > > If pci_enable_device fails, bdx_probe returns without freeing the > allocated pci_nic structure. > > Coverity CID 1908. > > Signed-off-by: Florin Malita <[EMAIL PROTECTED]> Looks fine to me. Acked-by: Alexander In

[PATCH v3 3/4] FEC mpc52xx: the driver

2007-10-14 Thread Domen Puncer
Driver for ethernet on mpc5200/mpc5200b SoCs (FEC). Signed-off-by: Domen Puncer <[EMAIL PROTECTED]> --- drivers/net/Kconfig |1 drivers/net/Makefile |1 drivers/net/fec_mpc52xx/Kconfig | 15 drivers/net/fec_mpc52xx/Makefile |2 drivers/net/fec_mpc52xx

[PATCH v3 2/4] FEC mpc52xx: add some bestcomm flags

2007-10-14 Thread Domen Puncer
Add masks and fix existing ones to match mpc5200b user's manual. Signed-off-by: Domen Puncer <[EMAIL PROTECTED]> --- arch/powerpc/sysdev/bestcomm/fec.h | 15 ++- 1 file changed, 14 insertions(+), 1 deletion(-) Index: linux.git/arch/powerpc/sysdev/bestcomm/fec.h =

[PATCH v3 1/4] FEC mpc52xx: device tree changes

2007-10-14 Thread Domen Puncer
Add device tree entries for lite5200b's FEC's PHY. Signed-off-by: Domen Puncer <[EMAIL PROTECTED]> --- arch/powerpc/boot/dts/lite5200b.dts | 18 +- 1 files changed, 17 insertions(+), 1 deletion(-) Index: linux.git/arch/powerpc/boot/dts/lite5200b.dts ==

[PATCH v3 4/4] FEC mpc52xx: phy part of the driver

2007-10-14 Thread Domen Puncer
PHY part of the driver for mpc5200(b) ethernet. Signed-off-by: Domen Puncer <[EMAIL PROTECTED]> --- drivers/net/fec_mpc52xx/Kconfig | 13 ++ drivers/net/fec_mpc52xx/Makefile |5 drivers/net/fec_mpc52xx/fec.c | 11 ++ drivers/net/fec_mpc52xx/fec.h |2 drivers/net/fec_mpc

[PATCH v3 0/4] FEC - fast ethernet controller for mpc52xx

2007-10-14 Thread Domen Puncer
Hello! If there are no objections, I would like to get this merged when bestcomm goes in (any time now?). It's split into four parts: 1 - device tree 2 - small bestcomm change 3 - the actual driver 4 - phy part of the driver Domen -- Domen Puncer | Research & Development .

Re: MSI interrupts and disable_irq

2007-10-14 Thread Manfred Spraul
Yinghai Lu wrote: On 10/13/07, Manfred Spraul <[EMAIL PROTECTED]> wrote: Someone around with a MSI capable board? The forcedeth driver does dev->irq = pci_dev->irq in nv_probe(), especially before pci_enable_msi(). Does pci_enable_msi() change pci_dev->irq? Then we would disable the wrong