Re: [BUG][PATCH] Fix race condition about network device name allocation

2007-05-11 Thread Stephen Hemminger
On Fri, 11 May 2007 14:40:45 +0900 Kenji Kaneshige [EMAIL PROTECTED] wrote: Hi, I encountered the following error when I was hot-plugging network card using pci hotplug driver. kobject_add failed for eth8 with -EEXIST, don't try to register things with the same name in the same

Re: [BUG][PATCH] Fix race condition about network device name allocation

2007-05-11 Thread Stephen Hemminger
On Fri, 11 May 2007 14:40:45 +0900 Kenji Kaneshige [EMAIL PROTECTED] wrote: Hi, I encountered the following error when I was hot-plugging network card using pci hotplug driver. kobject_add failed for eth8 with -EEXIST, don't try to register things with the same name in the same

[PATCH 0/4] sky2/skge bug fix patches for 2.6.22

2007-05-11 Thread Stephen Hemminger
These are all bug fixes for 2.6.22. I'll spin a set for the 2.6.21 stable kernel after that. -- Stephen Hemminger [EMAIL PROTECTED] - 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

[PATCH 1/4] sky2: fix oops on shutdown

2007-05-11 Thread Stephen Hemminger
If the device is fails during module startup for some reason like unsupported chip version then the driver would crash dereferencing a null pointer, on shutdown or suspend/resume. Signed-off-by: Stephen Hemminger [EMAIL PROTECTED] --- drivers/net/sky2.c | 10 ++ 1 file changed, 10

[PATCH 4/4] sky2: only disable 88e8056 on some boards

2007-05-11 Thread Stephen Hemminger
Use DMI to add a blacklist of broken boards (so far only one). Hopefully, the problems will be solved later, and the the whole blacklist can disappear. Signed-off-by: Stephen Hemminger [EMAIL PROTECTED] --- drivers/net/sky2.c | 41 ++--- 1 file changed, 30

[PATCH 3/4] sky2: 88e8071 support not ready

2007-05-11 Thread Stephen Hemminger
The driver is not ready to support 88e8071 chip. If this chip is present, system will hang on boot. So remove it from PCI device id's for now. Signed-off-by: Stephen Hemminger [EMAIL PROTECTED] --- drivers/net/sky2.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- sky2-2.6.21

[PATCH 2/4] skge: crash on shutdown/suspend

2007-05-11 Thread Stephen Hemminger
If device is not fails during module startup (like unsupported chip version) then driver would crash dereferencing a null pointer, on shutdown or suspend/resume. Signed-off-by: Stephen Hemminger [EMAIL PROTECTED] --- drivers/net/skge.c |9 + 1 file changed, 9 insertions(+) --- sky2

Re: [PATCH] tbf scheduler: TSO support (updated)

2007-05-13 Thread Stephen Hemminger
On Sun, 13 May 2007 21:42:36 +0900 (JST) Hirokazu Takahashi [EMAIL PROTECTED] wrote: Hi, I'm now thinking I can make it just hold a TSO packet until p-tokens reaches the size of the packet. I think it is straightforward implementation. I'll try this. I re-implemented the patch, which

Re: [BUG][PATCH] Fix race condition about network device name allocation

2007-05-14 Thread Stephen Hemminger
On Mon, 14 May 2007 10:33:01 +0900 Kenji Kaneshige [EMAIL PROTECTED] wrote: Hi Stephen, Thank you for comments. I'll try your patch. I have one concern about your patch, though I don't know very much about netdev codes. @@ -3411,6 +3410,9 @@ void unregister_netdevice(struct net_dev

[PATCH] Fix race condition about network device name allocation

2007-05-14 Thread Stephen Hemminger
order slightly. It hold a removes the sysfs entries earlier (on unregister_netdevice), but holds a kobject reference. Then when todo runs the actual last put free happens. Signed-off-by: Stephen Hemminger [EMAIL PROTECTED] --- net/core/dev.c | 10 ++ net/core/net-sysfs.c |8

Re: skge vs sk98lin

2007-05-14 Thread Stephen Hemminger
On Mon, 14 May 2007 10:20:26 -0400 Michael Stone [EMAIL PROTECTED] wrote: On Tue, May 08, 2007 at 10:15:18AM -0700, Stephen Hemminger wrote: On Tue, 08 May 2007 08:00:36 -0400 Michael Stone [EMAIL PROTECTED] wrote: 2.6.21 seems to have fixed the stability issues I was seeing when using

Re: [PATCH] sky2: re-enable 88E8056 for most motherboards

2007-05-14 Thread Stephen Hemminger
On Sun, 13 May 2007 11:55:29 -0400 Daniel Drake [EMAIL PROTECTED] wrote: Stephen Hemminger wrote: I can use DMI to narrow down to one motherboard. Or just let everything through and let user's discover what's unstable, it fails relatively quickly. Could you please get full PCI

[PATCH 5/6] sky2: remove dual port workaround

2007-05-14 Thread Stephen Hemminger
This workaround was added to deal with NAPI core and how it affected dual port shared polling. It turned out not to be necessary. Stopping device 0 only doesn't stop NAPI from working completely after that. Signed-off-by: Stephen Hemminger [EMAIL PROTECTED] --- drivers/net/sky2.c |7

[PATCH 4/6] sky2: MIB counter overflow handling

2007-05-14 Thread Stephen Hemminger
Make sure that if we ever get a MIB counter overflow interrupt (normally masked off), that the IRQ is cleared. Signed-off-by: Stephen Hemminger [EMAIL PROTECTED] --- drivers/net/sky2.c |6 ++ 1 file changed, 6 insertions(+) --- 2.6.21-rc1.orig/drivers/net/sky2.c 2007-05-14 12:10

[PATCH 3/6] sky2: keep track of receive alloc failures

2007-05-14 Thread Stephen Hemminger
When driver can't allocate receive buffer it drops incoming packet. Keep a counter. Signed-off-by: Stephen Hemminger [EMAIL PROTECTED] --- drivers/net/sky2.c |4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) --- 2.6.21-rc1.orig/drivers/net/sky2.c 2007-05-14 12:10:13.0 -0700

[PATCH 1/6] sky2: remove Gigabyte 88e8056 restriction

2007-05-14 Thread Stephen Hemminger
The problems with Gigabyte motherboards are system configuration dependent. Since it works fine for some users, it doesn't make sense to deprive them. Signed-off-by: Stephen Hemminger [EMAIL PROTECTED] --- drivers/net/sky2.c | 30 -- 1 file changed, 30 deletions

[PATCH 0/6] more sky2 patches for 2.6.22

2007-05-14 Thread Stephen Hemminger
These are less serious than the last group, and are mostly one liners. I decided to give up blacklisting the 88e8056 problem in the driver, if the driver can't identify what configuration is good/bad, then it has no business trying to enforce the policy. -- Stephen Hemminger [EMAIL PROTECTED

[PATCH 6/6] sky2: memory barriers change

2007-05-14 Thread Stephen Hemminger
); + /* end of interrupt, re-enables also acts as I/O synchronization */ sky2_read32(hw, B0_Y2_SP_LISR); return 0; } else { -- Stephen Hemminger [EMAIL PROTECTED] - To unsubscribe from this list: send the line unsubscribe netdev in the body of a message

[PATCH 2/6] sky2: PHY register settings

2007-05-14 Thread Stephen Hemminger
only) version. Signed-off-by: Stephen Hemminger [EMAIL PROTECTED] --- drivers/net/sky2.c |7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) --- 2.6.21-rc1.orig/drivers/net/sky2.c 2007-05-14 12:06:25.0 -0700 +++ 2.6.21-rc1/drivers/net/sky2.c 2007-05-14 12:10:13.0

Re: [PATCH 15/17] sky2: only disable 88e8056 on some boards

2007-05-14 Thread Stephen Hemminger
On Mon, 14 May 2007 00:53:42 -0400 Florin Malita [EMAIL PROTECTED] wrote: Hi Stephen, Stephen Hemminger wrote: Use DMI to add a blacklist of broken board. For now only one is known bad. Gentoo users report driver works on other motherboards (strange). [snip] + .ident

Re: [PATCH 15/17] sky2: only disable 88e8056 on some boards

2007-05-15 Thread Stephen Hemminger
On Tue, 15 May 2007 15:43:39 -0400 [EMAIL PROTECTED] wrote: Hello, Stephen, RE: sky2 88e8056 Gigabyte GA-965GM-S2 uATX motherboard A couple days ago I posted my observations that this was a hardware problem. My boards are now working! I used the GIGABYTE MOTHERBOARD webpage for

[PATCH 0/6] skge/sky2 patches for 2.6.21.2

2007-05-15 Thread Stephen Hemminger
This is a backport of all the bugfixes in 2.6.22-rc1 (or later) to 2.6.21.y -- Stephen Hemminger [EMAIL PROTECTED] - 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/6] sky2: 88e8071 support not ready

2007-05-15 Thread Stephen Hemminger
The driver is not ready to support 88e8071 chip, it requires several more changes (not done yet). If this chip is present, system will hang on boot. Signed-off-by: Stephen Hemminger [EMAIL PROTECTED] --- drivers/net/sky2.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- linux

[PATCH 1/6] skge: allow WOL except for known broken chips

2007-05-15 Thread Stephen Hemminger
Wake On Lan works correctly on Yukon-FE and other variants. Signed-off-by: Stephen Hemminger [EMAIL PROTECTED]a --- drivers/net/skge.c |9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) --- linux-2.6.21.y.orig/drivers/net/skge.c 2007-05-10 12:10:38.0 -0700

[PATCH 3/6] sky2: allow 88E8056

2007-05-15 Thread Stephen Hemminger
It looks like the problems of Gigabyte 88E8056 are unique to that chip motherboard and maybe fixable by EEPROM update. Signed-off-by: Stephen Hemminger [EMAIL PROTECTED] --- drivers/net/sky2.c |3 --- 1 file changed, 3 deletions(-) --- linux-2.6.21.y.orig/drivers/net/sky2.c 2007-05-15

[PATCH 6/6] sky2: fix oops on shutdown

2007-05-15 Thread Stephen Hemminger
If the device fails during module startup for some reason like unsupported chip version then the driver would crash dereferencing a null pointer, on shutdown or suspend/resume. Signed-off-by: Stephen Hemminger [EMAIL PROTECTED] --- drivers/net/sky2.c | 10 ++ 1 file changed, 10

[PATCH 5/6] skge: crash on shutdown/suspend

2007-05-15 Thread Stephen Hemminger
If device fails during module startup for some reason (like unsupported chip version) then driver would crash dereferencing a null pointer, on shutdown or suspend/resume. Signed-off-by: Stephen Hemminger [EMAIL PROTECTED] --- drivers/net/skge.c |9 + 1 file changed, 9 insertions

[PATCH 2/6] skge: default WOL should be magic only

2007-05-15 Thread Stephen Hemminger
By default, the skge driver now enables wake on magic and wake on PHY. This is a bad default (bug), wake on PHY means machine will never shutdown if connected to a switch. Signed-off-by: Stephen Hemminger [EMAIL PROTECTED]a --- drivers/net/skge.c |4 +++- 1 file changed, 3 insertions(+), 1

[PATCH] TCP slow start: comments and cleanup

2007-05-16 Thread Stephen Hemminger
Add more comments to describe our version of tcp_slow_start(). Signed-off-by: Stephen Hemminger [EMAIL PROTECTED] --- net/ipv4/tcp_cong.c | 40 ++-- 1 files changed, 22 insertions(+), 18 deletions(-) diff --git a/net/ipv4/tcp_cong.c b/net/ipv4/tcp_cong.c

[RFC] netdevice ops

2007-05-17 Thread Stephen Hemminger
I want to take all the function pointers of 'struct net_device' and move them to 'struct net_device_ops'. This will save memory for the case of lots of devices, as well as reduce initialization code. Rough plan: 1. Introduce inline accessors so protocols don't dereference dev-XXX directly. 2. Fix

Re: [RFC] netdevice ops

2007-05-17 Thread Stephen Hemminger
On Thu, 17 May 2007 22:05:29 -0700 (PDT) David Miller [EMAIL PROTECTED] wrote: From: Jeff Garzik [EMAIL PROTECTED] Date: Fri, 18 May 2007 00:54:13 -0400 Stephen Hemminger wrote: I want to take all the function pointers of 'struct net_device' and move them to 'struct net_device_ops

Re: [PATCH] libertas: skb dereferenced after netif_rx

2007-05-18 Thread Stephen Hemminger
On Fri, 18 May 2007 14:09:03 -0400 John W. Linville [EMAIL PROTECTED] wrote: On Wed, May 16, 2007 at 05:01:27PM -0400, Florin Malita wrote: In libertas_process_rxed_packet() and process_rxed_802_11_packet() the skb is dereferenced after being passed to netif_rx (called from

Re: [5/5] 2.6.22-rc2: known regressions

2007-05-19 Thread Stephen Hemminger
of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Looks more like the IPV6 SNMP6 OOPS, I saw and fixed with: commit 5632c5152aa621885d87ea0b8fdd5a6bb9f69c6f Author: Stephen Hemminger [EMAIL PROTECTED] Date: Sat Apr 28 21:16:39 2007 -0700 [IPV6

Re: [PATCH] libertas: skb dereferenced after netif_rx

2007-05-19 Thread Stephen Hemminger
the the return value is informational only. -- Stephen Hemminger [EMAIL PROTECTED] - 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

Re: [PATCH] [TCP] tcp_probe: a trivial fix for mismatched number of printl arguments.

2007-05-21 Thread Stephen Hemminger
(inet-saddr), ntohs(inet-sport), NIPQUAD(inet-daddr), ntohs(inet-dport), skb-len, tp-snd_nxt, tp-snd_una, Looks good thanks -- Stephen Hemminger [EMAIL PROTECTED] - To unsubscribe from this list: send the line unsubscribe netdev in the body of a message

Re: [PATCH] tcp_probe: use GCC printf attribute

2007-05-21 Thread Stephen Hemminger
The function in tcp_probe is printf like, use GCC to check the args. Sighed-off-by: Stephen Hemminger [EMAIL PROTECTED] --- net/ipv4/tcp_probe.c |3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- a/net/ipv4/tcp_probe.c 2007-05-21 08:48:29.0 -0700 +++ b/net/ipv4

Re: [PATCH 3/4] [Net] Support Xen accelerated network plugin modules

2007-05-21 Thread Stephen Hemminger
); +} + +if ( (--accelerator-hooks_usecount) == 0 ) +accelerator_remove_hooks(accelerator); +spin_unlock_irqrestore(accelerators_lock, flags); Your mailer is word wrapping the patch so it won't apply as is. -- Stephen Hemminger

Re: [PATCH 3/4] [Net] Support Xen accelerated network plugin modules

2007-05-21 Thread Stephen Hemminger
to be. If you just used RCU for access, and depended on the existing RT netlink mutex (a.k.a big network lock), for setup; then you wouldn't need to do any of your own locking. -- Stephen Hemminger [EMAIL PROTECTED] - To unsubscribe from this list: send the line unsubscribe netdev in the body

Re: [PATCH 3/4] [Net] Support Xen accelerated network plugin modules

2007-05-21 Thread Stephen Hemminger
a macro... See earlier comments about suing RCU and eliminating the refcount and locking overhead. -- Stephen Hemminger [EMAIL PROTECTED] - 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

Re: [Xen-devel] Re: [PATCH 3/4] [Net] Support Xen accelerated network plugin modules

2007-05-22 Thread Stephen Hemminger
* in rcu callback you do last step like drop module refcount and free. -- Stephen Hemminger [EMAIL PROTECTED] - 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

Re: UDP checksum broken since 2.6.18?

2007-05-22 Thread Stephen Hemminger
On Tue, 22 May 2007 21:47:22 + Thomas B. Rücker [EMAIL PROTECTED] wrote: hi, a friend of mine recently contacted me about what he at first thought were IPv6 issues with some java software. As it turns out it probably is a general IP issue with the Linux kernel: He wrote this piece

Re: sky2 hangs without any messages

2007-05-23 Thread Stephen Hemminger
. -- Stephen Hemminger [EMAIL PROTECTED] - 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

Re: sky2 hangs without any messages

2007-05-23 Thread Stephen Hemminger
. Actual usage varies with chip type, and we don't need to mess with them (yet). Signed-off-by: Stephen Hemminger [EMAIL PROTECTED] --- a/drivers/net/sky2.c2007-05-23 08:44:09.0 -0700 +++ b/drivers/net/sky2.c2007-05-23 08:47:11.0 -0700 @@ -658,7 +658,7 @@ static void

Re: Running multiple concurrent TCP stacks

2007-05-23 Thread Stephen Hemminger
On Wed, 23 May 2007 16:59:02 -0500 Tony Petz [EMAIL PROTECTED] wrote: I'm working on a research project that requires two simultaneously running but independent TCP implementations. Searching the archives I was only able to come up with this:

[PATCH 0/7] sky2: patches for 2.6.22

2007-05-24 Thread Stephen Hemminger
The following are non-critical fixes found during review of code. I don't expect them to fix the outstanding bugzilla or mailing list problem reports. Mostly they are of the form, don't touch bits that aren't used on that chip. -- Stephen Hemminger [EMAIL PROTECTED] - To unsubscribe from

[PATCH 5/7] sky2: enable IRQ on duplex renegotiation

2007-05-24 Thread Stephen Hemminger
Don't want IRQ on FIFO error because there is nothing useful to do with it. But do want IRQ on duplex change. Signed-off-by: Stephen Hemminger [EMAIL PROTECTED] --- a/drivers/net/sky2.h2007-05-22 10:42:36.0 -0700 +++ b/drivers/net/sky2.h2007-05-22 10:44:35.0 -0700

[PATCH 6/7] sky2: enable clocks before probe

2007-05-24 Thread Stephen Hemminger
Some chips need to have internal clocks enabled (via PCI config) before the PCI space is readable. Signed-off-by: Stephen Hemminger [EMAIL PROTECTED] --- drivers/net/sky2.c | 102 ++--- drivers/net/sky2.h | 19 + 2 files changed, 92

[PATCH 2/7] sky2: checksum offload plus vlan bug

2007-05-24 Thread Stephen Hemminger
Driver was not correctly setting up transmit descriptor when doing VLAN tag insertion with checksum offload. Signed-off-by: Stephen Hemminger [EMAIL PROTECTED] --- a/drivers/net/sky2.c2007-05-22 10:42:36.0 -0700 +++ b/drivers/net/sky2.c2007-05-22 10:43:12.0 -0700

[PATCH 4/7] sky2: PHY page register fixes

2007-05-24 Thread Stephen Hemminger
Several of the PHY registers are multiplexed; access to register must be proceeded by setting page register. The driver setup is safer if this is done before the access rather than depending on the last value. Signed-off-by: Stephen Hemminger [EMAIL PROTECTED] --- drivers/net/sky2.c | 25

[PATCH 1/7] sky2: dont set bogus bit in PHY register

2007-05-24 Thread Stephen Hemminger
This code inherited from the sk98lin driver is incorrect on the Yukon2. The GPHY_CTRL register values are specific to the internal PHY of the chip and the values used were leftovers. Driver was setting bit 13 which is now the INT polarity for the PHY! Signed-off-by: Stephen Hemminger [EMAIL

[PATCH 7/7] sky2: version 1.15

2007-05-24 Thread Stephen Hemminger
Why? Most bug reports on vendor kernels with backported drivers. Signed-off-by: Stephen Hemminger [EMAIL PROTECTED] --- drivers/net/sky2.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/net/sky2.c2007-05-24 11:20:26.0 -0700 +++ b/drivers/net/sky2.c

[PATCH 3/7] sky2: program proper register for fiber PHY

2007-05-24 Thread Stephen Hemminger
Driver was reading value from one register, setting bit and then writing the wrong register. Signed-off-by: Stephen Hemminger [EMAIL PROTECTED] --- a/drivers/net/sky2.c2007-05-22 10:43:12.0 -0700 +++ b/drivers/net/sky2.c2007-05-22 10:44:32.0 -0700 @@ -364,7 +364,7

b44: regression in 2.6.22

2007-05-25 Thread Stephen Hemminger
that depend on local variables are evil!! -- Stephen Hemminger [EMAIL PROTECTED] - 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

Re: [PATCH-2.4] Fix divide by 0 in vegas_cong_avoid()

2007-05-29 Thread Stephen Hemminger
-info.html -- Stephen Hemminger [EMAIL PROTECTED] - 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

Re: [2/4] 2.6.22-rc3: known regressions

2007-05-29 Thread Stephen Hemminger
). There is a regression since 2.6.22-rc1 where the b44 driver has receive performance/interrupt lockup issues. -- Stephen Hemminger [EMAIL PROTECTED] - To unsubscribe from this list: send the line unsubscribe netdev in the body of a message to [EMAIL PROTECTED] More majordomo info at http

Re: [PATCH 0/9]: tcp-2.6 patchset

2007-05-29 Thread Stephen Hemminger
. It is not very clear how SYN segments should be handled, so I choose to follow the previous implementation in this respect. Since we don't invoke congestion control modules until after the SYN handshake this is not a problem. -- Stephen Hemminger [EMAIL PROTECTED] - To unsubscribe from this list: send

Re: [SKY2]: Fix VLAN unregistration

2007-05-29 Thread Stephen Hemminger
and not NETIF_F_HW_VLAN_FILTER is set, so this patch keeps an empty function. This seems to be a bug though, vlan_rx_add_vid is only required with NETIF_F_HW_VLAN_FILTER. Ben? I put it in the next sky2 patch set. Still waiting for Jeff to take the last one. -- Stephen Hemminger [EMAIL PROTECTED] - To unsubscribe

Re: [PATCH 0/9]: tcp-2.6 patchset

2007-05-29 Thread Stephen Hemminger
On Tue, 29 May 2007 23:07:00 +0300 (EEST) Ilpo Järvinen [EMAIL PROTECTED] wrote: On Tue, 29 May 2007, Stephen Hemminger wrote: On Mon, 28 May 2007 13:27:03 +0300 (EEST) Ilpo Järvinen [EMAIL PROTECTED] wrote: On Sun, 27 May 2007, Ilpo Järvinen wrote: [PATCH] [TCP]: Fix GSO

Re: [PATCH-2.4] Fix divide by 0 in vegas_cong_avoid()

2007-05-29 Thread Stephen Hemminger
; if(sacked TCPCB_SACKED_ACKED) - The proposed fix for TSO and packets acked callback will fix this as well. Your fix makes sense for kernels 2.6.22, but with 2.6.22 this would fix it: http://article.gmane.org/gmane.linux.network/63101 -- Stephen Hemminger [EMAIL

Definition and usage of NETIF_F_HW_SUM?

2007-05-29 Thread Stephen Hemminger
it seems moot. IMHO the correct solution would be to get rid if NETIF_F_HW_SUM and make a new flag NETIF_F_IPV6_SUM. Devices that can checksum both could do NETIF_F_IPV4_SUM|NETI_F_IPV6_SUM. -- Stephen Hemminger [EMAIL PROTECTED] - To unsubscribe from this list: send the line unsubscribe netdev

Re: b44: regression in 2.6.22 (resend)

2007-05-29 Thread Stephen Hemminger
I am busy bisecting the real cause. Unfortunately, oprofile doesn't work on the laptop, and build time sucks... This how I think the IRQ should work: --- a/drivers/net/b44.c 2007-05-29 09:47:53.0 -0700 +++ b/drivers/net/b44.c 2007-05-29 09:49:50.0 -0700 @@ -908,9 +908,11 @@

Re: [PATCH] b44: netpoll locking fix

2007-05-29 Thread Stephen Hemminger
On Tue, 29 May 2007 23:14:58 +0200 Francois Romieu [EMAIL PROTECTED] wrote: The irq handling thread (b44_interrupt) uses the same lock as the NAPI thread. This change should prevent a deadlock if something interrupts the b44 NAPI thread and tries to printk through netconsole. Signed-off-by:

Re: Definition and usage of NETIF_F_HW_SUM?

2007-05-29 Thread Stephen Hemminger
On Wed, 30 May 2007 07:36:18 +1000 Herbert Xu [EMAIL PROTECTED] wrote: On Tue, May 29, 2007 at 01:58:13PM -0700, Stephen Hemminger wrote: The flag NETIF_F_HW_SUM is being misused. The definition says that the device is capable of checksumming any packet. When in fact from usage it seems

Re: [PATCH-2.4] Fix divide by 0 in vegas_cong_avoid()

2007-05-29 Thread Stephen Hemminger
as signed? On 5/29/07, Stephen Hemminger [EMAIL PROTECTED] wrote: On Tue, 29 May 2007 12:18:19 +0300 Lior Dotan [EMAIL PROTECTED] wrote: Hi, I had a divide by zero on kernel 2.4.33 running with Vegas enabled. I don't think anyone has backported the other vegas fixes from 2.6.21 to 2.4

Re: [PATCH] b44: netpoll locking fix

2007-05-29 Thread Stephen Hemminger
On Wed, 30 May 2007 00:20:41 +0200 Francois Romieu [EMAIL PROTECTED] wrote: Stephen Hemminger [EMAIL PROTECTED] : ⅜...] Better to just get rid of using the lock as a transmit lock and use netif_tx_lock instead. --- a/drivers/net/b44.c 2007-05-29 09:51:43.0 -0700 +++ b

Re: Definition and usage of NETIF_F_HW_SUM?

2007-05-29 Thread Stephen Hemminger
to trouble of computing all the offsets and they are already there in skb... -- Stephen Hemminger [EMAIL PROTECTED] - 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] spidernet: checksum and ethtool

2007-05-29 Thread Stephen Hemminger
It doesn't look like spidernet hardware can really checksum all protocols, the code looks like it does IPV4 only. If so, it should use NETIF_F_IP_CSUM instead of NETIF_F_HW_CSUM. The driver doesn't need it's own get/set for ethtool tx csum, and it should use the standard ethtool_op_get_link.

[PATCH] netpoll: tx lock deadlock fix

2007-05-29 Thread Stephen Hemminger
problems than it causes already. So change the code to drop lock before calling poll handler. Signed-off-by: Stephen Hemminger [EMAIL PROTECTED] --- a/net/core/netpoll.c2007-05-08 14:19:32.0 -0700 +++ b/net/core/netpoll.c2007-05-29 15:28:22.0 -0700 @@ -250,22 +250,23

Re: [PATCH 6/7] sky2: enable clocks before probe

2007-05-30 Thread Stephen Hemminger
Jeff Garzik wrote: Stephen Hemminger wrote: Some chips need to have internal clocks enabled (via PCI config) before the PCI space is readable. Signed-off-by: Stephen Hemminger [EMAIL PROTECTED] --- drivers/net/sky2.c | 102 ++--- drivers/net

[RFC] IPV6 checksum offloading in network devices

2007-05-30 Thread Stephen Hemminger
Here is a proposed change to address hardware that can do IPV6 checksum offload, but doesn't truly do generic hw checksumming. The bnx2 and tg3 are like this for some revisions, and upcoming Marvell 88e8071 is similar. --- a/drivers/net/bnx2.c2007-05-30 08:26:18.0 -0700 +++

[RFC] qdisc_run de inline.

2007-05-30 Thread Stephen Hemminger
It isn't worth inlining qdisc_run, into two parts. The code is cleaner (and smaller) to just have it as one routine. --- a/include/net/pkt_sched.h 2007-05-02 12:26:34.0 -0700 +++ b/include/net/pkt_sched.h 2007-05-30 09:12:22.0 -0700 @@ -80,14 +80,7 @@ extern struct

Re: bond_compute_features() does not handle devices with different CSUM

2007-05-30 Thread Stephen Hemminger
- 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 The bridge code already has a more complete/complex recompute routine to handle this. -- Stephen Hemminger [EMAIL

Re: [PATCH-2.4] Fix divide by 0 in vegas_cong_avoid()

2007-05-30 Thread Stephen Hemminger
On Wed, 30 May 2007 10:49:54 +0300 (EEST) Ilpo Järvinen [EMAIL PROTECTED] wrote: On Tue, 29 May 2007, Stephen Hemminger wrote: On Tue, 29 May 2007 20:23:45 +0200 Lior Dotan [EMAIL PROTECTED] wrote: NTP was not running. I'm not sure what do you mean by fixing the -1. The trace

Re: bond_compute_features() does not handle devices with different CSUM

2007-05-30 Thread Stephen Hemminger
On Wed, 30 May 2007 09:58:38 -0700 Laurent Chavey [EMAIL PROTECTED] wrote: should we then move/integrate that code as part of the bonding driver ? On 5/30/07, Stephen Hemminger [EMAIL PROTECTED] wrote: On Tue, 29 May 2007 17:41:45 -0700 Laurent Chavey [EMAIL PROTECTED] wrote

Re: [patch 5/7] CAN: Add virtual CAN netdevice driver

2007-05-30 Thread Stephen Hemminger
the line unsubscribe netdev in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html -- Stephen Hemminger [EMAIL PROTECTED] - To unsubscribe from this list: send the line unsubscribe netdev in the body of a message to [EMAIL PROTECTED

Re: [PATCH 6/7] sky2: enable clocks before probe

2007-05-30 Thread Stephen Hemminger
On Wed, 30 May 2007 09:56:18 -0400 Jeff Garzik [EMAIL PROTECTED] wrote: Stephen Hemminger wrote: Some chips need to have internal clocks enabled (via PCI config) before the PCI space is readable. Signed-off-by: Stephen Hemminger [EMAIL PROTECTED] --- drivers/net/sky2.c | 102

Re: [PATCH 3/4] Make net watchdog timers 1 sec jiffy aligned

2007-05-30 Thread Stephen Hemminger
2.0 which is pretty significant, too. Alternatively, we could change to a timer that is pushed forward after each TX, maybe using hrtimer and hrtimer_forward(). That way the timer would never run in normal case. -- Stephen Hemminger [EMAIL PROTECTED] - To unsubscribe from this list: send

Re: [patch 5/7] CAN: Add virtual CAN netdevice driver

2007-05-30 Thread Stephen Hemminger
On Wed, 30 May 2007 20:57:33 +0200 Oliver Hartkopp [EMAIL PROTECTED] wrote: Does 'unneeded' belong to always the last line of the quoted code snippet? They are all places where you assign zero (or NULL) to something that is already initialized to zero by alloc_netdev. -- Stephen

[PATCH 1/2] bridge: reduce frequency of forwarding cleanup timer in bridge

2007-05-30 Thread Stephen Hemminger
Even [EMAIL PROTECTED] Signed-off-by: Stephen Hemminger [EMAIL PROTECTED] --- 2.6.22-rc2/net/bridge/br_fdb.c 2007-05-20 00:51:11.0 +0300 +++ 2.6-rc2/net/bridge/br_fdb.c 2007-05-20 00:50:31.0 +0300 @@ -121,6 +121,7 @@ { struct net_bridge *br = (struct net_bridge

[PATCH 2/2] bridge: round off STP perodic timers

2007-05-30 Thread Stephen Hemminger
Peroidic STP timers don't have to be exact. The hold timer runs at 1HZ, and the hello timer normally runs at 2HZ; save power by aligning it them to next second. Signed-off-by: Stephen Hemminger [EMAIL PROTECTED] --- net/bridge/br_stp.c |3 ++- net/bridge/br_stp_timer.c |2 +- 2

Re: [PATCH 3/4] Make net watchdog timers 1 sec jiffy aligned

2007-05-30 Thread Stephen Hemminger
On Wed, 30 May 2007 12:55:51 -0700 (PDT) David Miller [EMAIL PROTECTED] wrote: From: Patrick McHardy [EMAIL PROTECTED] Date: Wed, 30 May 2007 20:42:32 +0200 Stephen Hemminger wrote: Index: linux-2.6.22-rc-mm/net/sched/sch_generic.c

Re: [RFC] IPV6 checksum offloading in network devices

2007-05-30 Thread Stephen Hemminger
This is better. There is still a possiblity when a device allows IPV6 and not IPV4 checksumming, that the checksum will be done in the fixup code in dev_queue_xmit. The existing model for checksum offload does not correctly handle devices that can offload IPV4 and IPV6 only. The NETIF_F_HW_CSUM

[PATCH 0/3] qla3xxx checksum related patches

2007-05-30 Thread Stephen Hemminger
Found while looking at drivers that are doing NETIF_F_HW_CSUM incorrectly. The first is a bug fix. Second is cleanup, Third is an enhancement. -- Stephen Hemminger [EMAIL PROTECTED] - To unsubscribe from this list: send the line unsubscribe netdev in the body of a message to [EMAIL PROTECTED

[PATCH 2/3] qla3xxx: cleanup checksum offload code

2007-05-30 Thread Stephen Hemminger
The code for checksum is more complex than needed when dealing with VLAN's; the higher layers already pass down the location of the IP header. Compile tested only, no hardware available. Signed-off-by: Stephen Hemminger [EMAIL PROTECTED] --- drivers/net/qla3xxx.c | 37

[PATCH 1/3] qla3xxx: device doesnt do hardware checksumming.

2007-05-30 Thread Stephen Hemminger
Reading the code for ql_hw_csum_setup(), it is obvious that this driver is broken for IPV6. The driver sets the NETIF_F_HW_SUM flag, but the code for checksum setup only deals with IPV4. Compile tested only, no hardware available. Signed-off-by: Stephen Hemminger [EMAIL PROTECTED] --- drivers

[PATCH 3/3] qla3xxx: ethtool ops for controlling checksum

2007-05-30 Thread Stephen Hemminger
Add the ability to control scatter/gather and checksumming via ethtool. Compile tested only, no hardware available. Signed-off-by: Stephen Hemminger [EMAIL PROTECTED] --- drivers/net/qla3xxx.c | 33 + 1 file changed, 33 insertions(+) --- a/drivers/net

Re: [PATCH 2/2] ehea: Receive SKB Aggregation

2007-05-31 Thread Stephen Hemminger
; +} + This code seems to be duplicating a lot (but not all) of the TCP/IP input path validation checks. This is a security problem if nothing else... Also, how do you prevent DoS attacks from hostile TCP senders that send huge number of back to back frames? -- Stephen Hemminger [EMAIL PROTECTED

[PATCH]: sky2: Fix VLAN unregistration

2007-05-31 Thread Stephen Hemminger
and not NETIF_F_HW_VLAN_FILTER is set, so this patch keeps an empty function. This seems to be a bug though, vlan_rx_add_vid is only required with NETIF_F_HW_VLAN_FILTER. Ben? Reading other drivers, it looks like a better patch would be to handle mode change in both set and kill. Signed-off-by: Stephen Hemminger

Re: [PATCH]: sky2: Fix VLAN unregistration

2007-05-31 Thread Stephen Hemminger
On Thu, 31 May 2007 19:37:07 +0200 Patrick McHardy [EMAIL PROTECTED] wrote: Stephen Hemminger wrote: On Sun, 27 May 2007 20:44:04 +0200 Patrick McHardy [EMAIL PROTECTED] wrote: Fix sky2 disabling VLAN completely when the first vid is unregistered. For some reason the VLAN code

Re: [PATCH]: sky2: Fix VLAN unregistration

2007-06-01 Thread Stephen Hemminger
I am working on a multi-driver cleanup patch right now... - 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 0/5] VLAN driver API fixes

2007-06-01 Thread Stephen Hemminger
Patrick's fix for sky2 VLAN unregister, started me looking at other drivers. Many drivers had bogus kill_vid hooks, and the whole interface for kill_vid is only useful for devices that do receive filtering, so fix the interface and the drivers. -- Stephen Hemminger [EMAIL PROTECTED

[PATCH 1/5] VLAN: kill_vid is only useful for VLAN filtering devices

2007-06-01 Thread Stephen Hemminger
kill_vid routine that called vlan_group_set_device, with NULL, but that is done already. Signed-off-by: Stephen Hemminger [EMAIL PROTECTED] --- a/net/8021q/vlan.c 2007-06-01 08:18:32.0 -0700 +++ b/net/8021q/vlan.c 2007-06-01 08:28:02.0 -0700 @@ -240,10 +240,8 @@ static int

[PATCH 3/5] 8139cp: fix VLAN unregistration

2007-06-01 Thread Stephen Hemminger
The 8139cp driver did VLAN unregistration incorrectly. It disables VLAN completely when the first VID is unregistered. It should instead disable VLAN when the group is unregistered by calling cp_vlan_rx_register with a NULL grp. Signed-off-by: Stephen Hemminger [EMAIL PROTECTED] --- drivers

[PATCH 5/5] network drivers: eliminate unneeded kill_vid code

2007-06-01 Thread Stephen Hemminger
Many drivers had code that did kill_vid, but they weren't doing vlan filtering. With new API the stub is unneeded unless device sets NETIF_F_HW_VLAN_FILTER. Bad habit: I couldn't resist fixing a couple of nearby style things in acenic, and forcedeth. Signed-off-by: Stephen Hemminger [EMAIL

[PATCH 2/5] sky2: Fix VLAN unregistration

2007-06-01 Thread Stephen Hemminger
] Signed-off-by: Stephen Hemminger [EMAIL PROTECTED] drivers/net/sky2.c | 25 + 1 file changed, 13 insertions(+), 12 deletions(-) --- a/drivers/net/sky2.c2007-06-01 08:20:39.0 -0700 +++ b/drivers/net/sky2.c2007-06-01 08:29:05.0 -0700

[PATCH 4/5] atl1: eliminate unneeded kill_vid code

2007-06-01 Thread Stephen Hemminger
This driver has unneeded stubs for VLAN filtering. Signed-off-by: Stephen Hemminger [EMAIL PROTECTED] --- drivers/net/atl1/atl1_main.c | 25 + --- drivers/net/atl1/atl1_main.c | 33 + 1 file changed, 1 insertion(+), 32 deletions

Re: Mixing tagged and untagged vlans using via-velocity driver

2007-06-01 Thread Stephen Hemminger
On Fri, 25 May 2007 09:37:09 +0200 Nicklas Bondesson [EMAIL PROTECTED] wrote: I am trying to setup two vlans (one tagged and one untagged) using the native via-velocity driver in kernel 2.6.21.1 on a single nic. I can set it up tagged or untagged without any problems, but not both at the

Re: doubt about qla3xxx checksum fix

2007-06-03 Thread Stephen Hemminger
it really wants CHECKSUM_PARTIAL skb's to work on. And CHECKSUM_PARTIAL skbs are only setup for paths that advertise the NETIF_F_HW_CSUM capability. CHECKSUM_PARTIAL is used on xmit for both NETIF_F_HWCSUM and NETIF_F_IPCSUM See acenic, 3c59x, ... -- Stephen Hemminger [EMAIL PROTECTED

Re: b44: regression in 2.6.22 (resend)

2007-06-04 Thread Stephen Hemminger
({1180973757, 172797}, NULL) = 0 gettimeofday({1180973757, 172817}, NULL) = 0 nanosleep({0, 0}, NULL) = 0 nanosleep({0, 0}, NULL) = 0 close(4) = 0 futex(0x8055d04, 0x5 /* FUTEX_??? */, 1) = 1 futex(0x8055d30, FUTEX_WAKE, 1) = 0 _exit(0) -- Stephen Hemminger [EMAIL

iperf: performance regression (was b44 driver problem?)

2007-06-04 Thread Stephen Hemminger
On Mon, 04 Jun 2007 18:35:58 +0200 Thomas Gleixner [EMAIL PROTECTED] wrote: On Mon, 2007-06-04 at 09:09 -0700, Stephen Hemminger wrote: I did the test with an 2.6.22-rc3-git4 kernel and the p54 driver built external as module. Can you look at iperf to figure out, whether it does

  1   2   3   4   5   6   7   8   9   10   >