[PATCH][NET_SCHED] sch_htb: turn intermediate classes into leaves

2006-11-26 Thread Jarek Poplawski
Here is a trial to do something suggested by Patrick McHardy. [NET_SCHED] sch_htb: - turn intermediate classes into leaves again when their last child is deleted (qdisc of deleted class is reused; struct htb_class changed) - sch_tree_lock added in htb_put before htb_destroy_class (for con

[PATCH][NET_SCHED] sch_cbq: deactivating when grafting, purging etc.

2006-11-26 Thread Jarek Poplawski
Here are some fixes proposals suggested by Patrick McHardy. [NET_SCHED] sch_cbq: - deactivating of active classes when grafting - purging of queue/q.qlen adjustment when deleting an active class - deactivating of active classes when q.qlen drops to zero in ->drop() - a redundant instruction re

Re: [NET_SCHED 04/06]: Fix endless loops (part 2): "simple" qdiscs

2006-11-26 Thread Jarek Poplawski
On Fri, Nov 24, 2006 at 02:07:08PM +0100, Patrick McHardy wrote: > Jarek Poplawski wrote: ... > > Probably it is as usual something with my eyes but > > it seems cbq needs in cbq_delete or cbq_destroy_class > > some treatment (about qdisc_destroy) similar to htb. > > No, you're right about this on

Re: [2.6 patch] NET_SCH_ATM doesn't need ipcommon.o

2006-11-26 Thread Christoph Hellwig
On Mon, Nov 27, 2006 at 01:59:34AM +0100, Adrian Bunk wrote: > NET_SCH_ATM doesn't need ipcommon.o > > Signed-off-by: Adrian Bunk <[EMAIL PROTECTED]> > > --- linux-2.6.19-rc6-mm1/net/atm/Makefile.old 2006-11-26 08:50:05.0 > +0100 > +++ linux-2.6.19-rc6-mm1/net/atm/Makefile 2006-11-26

[PATCH] ipcomp: fix crypto_alloc_comp() error check

2006-11-26 Thread Akinobu Mita
The return value of crypto_alloc_comp() should be checked by IS_ERR(). Cc: David Miller <[EMAIL PROTECTED]> Cc: Hideaki YOSHIFUJI <[EMAIL PROTECTED]> Signed-off-by: Akinobu Mita <[EMAIL PROTECTED]> --- net/ipv4/ipcomp.c |2 +- net/ipv6/ipcomp6.c |2 +- 2 files changed, 2 insertions(+),

[PATCH] sctp: fix crypto_alloc_hash() error check

2006-11-26 Thread Akinobu Mita
The return value of crypto_alloc_hash() should be checked by IS_ERR(). Cc: David Miller <[EMAIL PROTECTED]> Signed-off-by: Akinobu Mita <[EMAIL PROTECTED]> --- net/sctp/socket.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) Index: work-fault-inject/net/sctp/socket.c =

Re: [PATCH] softmac: remove netif_tx_disable when scanning

2006-11-26 Thread Daniel Drake
Johannes Berg wrote: On Sun, 2006-11-26 at 13:25 -0500, Daniel Drake wrote: No, we could stick with our existing setup if the stack did something different. But you do need full refcounting I guess. No, I don't think we would need to move away from our existing method: spin_lock_irqsave(

[2.6 patch] NET_SCH_ATM doesn't need ipcommon.o

2006-11-26 Thread Adrian Bunk
NET_SCH_ATM doesn't need ipcommon.o Signed-off-by: Adrian Bunk <[EMAIL PROTECTED]> --- linux-2.6.19-rc6-mm1/net/atm/Makefile.old 2006-11-26 08:50:05.0 +0100 +++ linux-2.6.19-rc6-mm1/net/atm/Makefile 2006-11-26 08:56:29.0 +0100 @@ -10,7 +10,6 @@ atm-$(subst m,y,$(CONFIG_

Re: RFC: remove NET_CLS_POLICE?

2006-11-26 Thread Andy Furniss
Adrian Bunk wrote: Considering that NET_CLS_POLICE has been marked as obsolete for more than one year, would a patch to remove it be acceptable? cu Adrian People still request the "2.4 policer" on LARTC as unlike its replacement it hooks after prerouting/denat so they can police on local a

Re: gratuitous arp

2006-11-26 Thread Andi Kleen
> before i go opening bugs with the distribution folks, could someone chime > in as to what is the recommended approach these days? did grat arp fall > out of favour, or is it just a case of userland not keeping up? The ifup script in iproute2 does it in user land, but nobody uses it directly

Re: Network virtualization/isolation

2006-11-26 Thread Eric W. Biederman
Herbert Poetzl <[EMAIL PROTECTED]> writes: > On Sat, Nov 25, 2006 at 01:21:39AM -0700, Eric W. Biederman wrote: >> There are two techniques in real use. >> - Bind/Accept filtering >> >> Which layer 3 addresses a socket can bind/accept are filtered, >> but otherwise the network stack remains

Re: Network virtualization/isolation

2006-11-26 Thread Ben Greear
Herbert Poetzl wrote: On Sat, Nov 25, 2006 at 01:21:39AM -0700, Eric W. Biederman wrote: Then the question is how do we reduce the overhead when we don't have enough physical network interfaces to go around. My feeling is that we could push the work to the network adapters and allow single p

Re: [2.6 patch] make hdlc_setup() static again

2006-11-26 Thread Krzysztof Halasa
Adrian Bunk <[EMAIL PROTECTED]> writes: > It's still not used... > > So let's unexport it again until some driver that actually uses it shows up. Fair enough. -- Krzysztof Halasa - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] Mor

Re: [PATCH] softmac: remove netif_tx_disable when scanning

2006-11-26 Thread Larry Finger
Johannes Berg wrote: On Sun, 2006-11-26 at 13:25 -0500, Daniel Drake wrote: No, we could stick with our existing setup if the stack did something different. But you do need full refcounting I guess. Because for the stack it wouldn't be required if it'd simply not start scanning when queue i

Re: [PATCH] softmac: remove netif_tx_disable when scanning

2006-11-26 Thread Johannes Berg
On Sun, 2006-11-26 at 13:25 -0500, Daniel Drake wrote: > No, we could stick with our existing setup if the stack did something > different. But you do need full refcounting I guess. > > Because for > > the stack it wouldn't be required if it'd simply not start scanning when > > queue is disable

Re: Network virtualization/isolation

2006-11-26 Thread Herbert Poetzl
On Sat, Nov 25, 2006 at 01:21:39AM -0700, Eric W. Biederman wrote: > > jamal <[EMAIL PROTECTED]> writes: > > > On Fri, 2006-27-10 at 11:10 +0200, Daniel Lezcano wrote: > > > >> No, it uses virtualization at layer 2 and I had already mention it > >> before (see the first email of the thread), but

Re: [PATCH] softmac: remove netif_tx_disable when scanning

2006-11-26 Thread Daniel Drake
Johannes Berg wrote: Would you actually need a fully refcounted enable/disable? No, we could stick with our existing setup if the stack did something different. Because for the stack it wouldn't be required if it'd simply not start scanning when queue is disabled and stop scanning immediate

Re: gratuitous arp

2006-11-26 Thread dean gaudet
On Sun, 26 Nov 2006, James Courtier-Dutton wrote: > dean gaudet wrote: > > On Sun, 26 Nov 2006, James Courtier-Dutton wrote: > > > > > dean gaudet wrote: > > > > hi... > > > > > > > > i ran into some problems recently which would have been avoided if my > > > > box > > > > did a gratuitous arp a

Re: [PATCH] softmac: remove netif_tx_disable when scanning

2006-11-26 Thread Johannes Berg
On Sun, 2006-11-26 at 11:37 -0500, Daniel Drake wrote: > However the other reason for the patch (transmit > queue needed for active scanning) is bogus, I think that was just a misunderstanding. > and the patch introduces a > problem where session frames may be transmitted during scanning (usin

Re: [PATCH] softmac: remove netif_tx_disable when scanning

2006-11-26 Thread Daniel Drake
Johannes Berg wrote: The problem is that queue disabling isn't refcounted so that a scan that collides with bcm43xx having disabled the queue for calibration might re-enable the queue while bcm43xx is still calibrating. I agree with that part. However the other reason for the patch (transmit q

Re: 2.6.19-rc6 : Spontaneous reboots, stack overflows - seems to implicate xfs, scsi, networking, SMP

2006-11-26 Thread Eric Sandeen
Arjan van de Ven wrote: On Thu, 2006-11-23 at 04:35 +, Al Viro wrote: I would even say 10 function calls deep to allocate file blocks is overkill, but 22 it just astronomically bad. Especially since a large part is due to cxfs... - it's a bit sad to see XFS this crippled in linux due to a

[NET_SCHED]: policer: restore compatibility with old iproute binaries

2006-11-26 Thread Patrick McHardy
[NET_SCHED]: policer: restore compatibility with old iproute binaries The tc actions increased the size of struct tc_police, which broke compatibility with old iproute binaries since both the act_police and the old NET_CLS_POLICE code check for an exact size match. Since the new members are not e

Re: gratuitous arp

2006-11-26 Thread Krzysztof Oledzki
On Sun, 26 Nov 2006, James Courtier-Dutton wrote: dean gaudet wrote: On Sun, 26 Nov 2006, James Courtier-Dutton wrote: dean gaudet wrote: hi... i ran into some problems recently which would have been avoided if my box did a gratuitous arp as it brought up all interfaces (the router took f

Re: RFC: remove NET_CLS_POLICE?

2006-11-26 Thread Patrick McHardy
Adrian Bunk wrote: > Considering that NET_CLS_POLICE has been marked as obsolete for more > than one year, would a patch to remove it be acceptable? Looking at this, the only reason I thought why we kept this option was to keep old iproute binaries working. But struct tc_police in new kernels is

Re: gratuitous arp

2006-11-26 Thread James Courtier-Dutton
dean gaudet wrote: On Sun, 26 Nov 2006, James Courtier-Dutton wrote: dean gaudet wrote: hi... i ran into some problems recently which would have been avoided if my box did a gratuitous arp as it brought up all interfaces (the router took forever to timeout the ARP entries for interface aliase

Re: [PATCH] softmac: remove netif_tx_disable when scanning

2006-11-26 Thread Michael Buesch
On Sunday 26 November 2006 05:05, Daniel Drake wrote: > Larry Finger wrote: > > In the scan section of ieee80211softmac, network transmits are disabled. > > Clearly, this does not make any sense as transmit is necessary for active > > scanning, and transmits are not used when passive scanning. > >

Re: [PATCH] softmac: remove netif_tx_disable when scanning

2006-11-26 Thread Michael Buesch
On Sunday 26 November 2006 11:03, Johannes Berg wrote: > On Sat, 2006-11-25 at 23:05 -0500, Daniel Drake wrote: > > > Surely disabling the queue actually makes sense, in order to avoid > > frames designated for the "current session" being transmitted on > > different channels during scanning? >

Re: [PATCH] softmac: remove netif_tx_disable when scanning

2006-11-26 Thread Johannes Berg
On Sat, 2006-11-25 at 23:05 -0500, Daniel Drake wrote: > Surely disabling the queue actually makes sense, in order to avoid > frames designated for the "current session" being transmitted on > different channels during scanning? Also, for bcm43xx this isn't a problem since the firmware (optiona

Re: [PATCH] softmac: remove netif_tx_disable when scanning

2006-11-26 Thread Johannes Berg
On Sat, 2006-11-25 at 23:05 -0500, Daniel Drake wrote: > Surely disabling the queue actually makes sense, in order to avoid > frames designated for the "current session" being transmitted on > different channels during scanning? The problem is that queue disabling isn't refcounted so that a sca