Re: [NET]: Share correct feature code between bridging and bonding

2007-08-21 Thread Herbert Xu
that logic into net/core/dev.c and uses it for both bonding and bridging. In the process I've made small adjustments such as only setting GSO_ROBUST if at least one constituent device supports it. Signed-off-by: Herbert Xu [EMAIL PROTECTED] Cheers, -- Visit Openswan at http://www.openswan.org/ Email

Re: net-2.6.24 failure with netconsole

2007-08-22 Thread Herbert Xu
after a serious coding error it could result in a remote kernel compromise. So BUG_ON/BUG is not entirely useless. I'm not claiming that it's necessarily the case here though :) Cheers, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmVHI~} [EMAIL PROTECTED] Home Page: http

Re: Oops in 2.6.22.1: skb_copy_and_csum_datagram_iovec()

2007-08-22 Thread Herbert Xu
. Cheers, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmVHI~} [EMAIL PROTECTED] Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt - To unsubscribe from this list: send the line unsubscribe netdev in the body of a message

Re: [PATCH 0/9 Rev3] Implement batching skb API and support in IPoIB

2007-08-24 Thread Herbert Xu
and enabling GSO. Cheers, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmVHI~} [EMAIL PROTECTED] Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt - To unsubscribe from this list: send the line unsubscribe netdev in the body

[0/7] [PPP]: Fix shared/cloned/non-linear skb bugs (was: malformed captured packets)

2007-08-31 Thread Herbert Xu
: Herbert Xu ~{PmVHI~} [EMAIL PROTECTED] Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt - 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 2/7] [PPP] pppoe: Fix data clobbering in __pppoe_xmit and return value

2007-08-31 Thread Herbert Xu
-by: Herbert Xu [EMAIL PROTECTED] --- drivers/net/pppoe.c | 50 +- 1 files changed, 13 insertions(+), 37 deletions(-) diff --git a/drivers/net/pppoe.c b/drivers/net/pppoe.c index 5ac3eff..8818253 100644 --- a/drivers/net/pppoe.c +++ b/drivers/net

[PATCH 3/7] [PPP] pppoe: Fill in header directly in __pppoe_xmit

2007-08-31 Thread Herbert Xu
-by: Herbert Xu [EMAIL PROTECTED] --- drivers/net/pppoe.c | 20 +--- 1 files changed, 9 insertions(+), 11 deletions(-) diff --git a/drivers/net/pppoe.c b/drivers/net/pppoe.c index 8818253..bac3654 100644 --- a/drivers/net/pppoe.c +++ b/drivers/net/pppoe.c @@ -848,19 +848,12 @@ static int

[PATCH 4/7] [BRIDGE]: Kill clone argument to br_flood_*

2007-08-31 Thread Herbert Xu
[BRIDGE]: Kill clone argument to br_flood_* The clone argument is only used by one caller and that caller can clone the packet itself. This patch moves the clone call into the caller and kills the clone argument. Signed-off-by: Herbert Xu [EMAIL PROTECTED] --- net/bridge/br_device.c |4

[PATCH 1/7] [PPP] pppoe: Fix skb_unshare_check call position

2007-08-31 Thread Herbert Xu
[PPP] pppoe: Fix skb_unshare_check call position The skb_unshare_check call needs to be made before pskb_may_pull, not after. Signed-off-by: Herbert Xu [EMAIL PROTECTED] --- drivers/net/pppoe.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/pppoe.c b

[PATCH 7/7] [PPP] generic: Fix receive path data clobbering non-linear handling

2007-08-31 Thread Herbert Xu
[PPP] generic: Fix receive path data clobbering non-linear handling This patch adds missing pskb_may_pull calls to deal with non-linear packets that may arrive from pppoe or pppol2tp. It also copies cloned packets before writing over them. Signed-off-by: Herbert Xu [EMAIL PROTECTED

[PATCH 6/7] [PPP] generic: Call skb_cow_head before scribbling over skb

2007-08-31 Thread Herbert Xu
[PPP] generic: Call skb_cow_head before scribbling over skb It's rude to write over data that other people are still using. So call skb_cow_head before PPP proceeds to modify the skb data. Signed-off-by: Herbert Xu [EMAIL PROTECTED] --- drivers/net/ppp_generic.c | 14 +++--- 1 files

Re: [PATCH 13/30] net: Don't do pointless kmalloc return value casts in zd1211 driver

2007-08-31 Thread Herbert Xu
, but why the __nocast ? Nevermind the __nocast, this looks like a bug in sparse. Just because a base type is __nocast, sparse shouldn't infer that a pointer to it should also be __nocast. Cheers, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmVHI~} [EMAIL PROTECTED] Home Page: http

[NETLINK]: Avoid pointer in netlink_run_queue

2007-08-31 Thread Herbert Xu
the value won't have to be memory-backed. Signed-off-by: Herbert Xu [EMAIL PROTECTED] Cheers, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmVHI~} [EMAIL PROTECTED] Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt -- diff

[SKBUFF]: Fix up csum_start when head room changes

2007-08-31 Thread Herbert Xu
callers and no one should be upset by this. Signed-off-by: Herbert Xu [EMAIL PROTECTED] Cheers, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmVHI~} [EMAIL PROTECTED] Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt -- diff

Re: 2.6.23-rc4-mm1

2007-09-01 Thread Herbert Xu
Author: Herbert Xu [EMAIL PROTECTED] Date: Sat Sep 1 16:52:13 2007 +0800 [CRYPTO] api: Kill crypto_km_types When scatterwalk is built as a module digest.c was broken because it requires the crypto_km_types structure which is in scatterwalk. This patch removes the crypto_km_types

Re: [Bugme-new] [Bug 8961] New: BUG triggered by oidentd in netlink code

2007-09-01 Thread Herbert Xu
requests from the outside world it is quite possible for two identd instances to run simultaneously serving two requests. I'm not familiar with oidentd but this is certainly pidentd works. Cheers, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmVHI~} [EMAIL PROTECTED] Home Page

Re: Oops in 2.6.23-rc5

2007-09-01 Thread Herbert Xu
. Cheers, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmVHI~} [EMAIL PROTECTED] Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt -- From: [EMAIL PROTECTED] (David Miller) ip is at tcp_rto_min+0x20/0x40 diff --git a/net

Re: some weird corruption in net-2.6.24

2007-09-03 Thread Herbert Xu
like this behaviour is hiding the bug you are seeing. Could you try extending the ISAKMP SA life time so that it is longer than the IPSec SA life time? Cheers, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmVHI~} [EMAIL PROTECTED] Home Page: http://gondor.apana.org.au

Re: Oops in 2.6.22.1: skb_copy_and_csum_datagram_iovec()

2007-09-05 Thread Herbert Xu
is skb_copy_and_csum_datagram_iovec. Since the total length should also be zero if msg_iovlen is zero, it's sufficient to check the total length there and simply return if it's zero. Signed-off-by: Herbert Xu [EMAIL PROTECTED] Cheers, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmVHI~} [EMAIL PROTECTED

Re: BUG: scheduling while atomic: ifconfig/0x00000002/4170

2007-09-06 Thread Herbert Xu
to audit this anyway. Cheers, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmVHI~} [EMAIL PROTECTED] Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt - To unsubscribe from this list: send the line unsubscribe netdev in the body

Re: BUG: scheduling while atomic: ifconfig/0x00000002/4170

2007-09-06 Thread Herbert Xu
it within spin locks. Cheers, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmVHI~} [EMAIL PROTECTED] Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt - To unsubscribe from this list: send the line unsubscribe netdev

Re: BUG: scheduling while atomic: ifconfig/0x00000002/4170

2007-09-06 Thread Herbert Xu
: Herbert Xu ~{PmVHI~} [EMAIL PROTECTED] Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt - 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: [PATCH resend] Fix a lock problem in generic phy code

2007-09-10 Thread Herbert Xu
consider whether it makes sense to move the timer into a work queue. Thanks, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmVHI~} [EMAIL PROTECTED] Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt - To unsubscribe from

Re: 2.6.23-rc5: possible irq lock inversion dependency detected

2007-09-10 Thread Herbert Xu
, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmVHI~} [EMAIL PROTECTED] Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt - To unsubscribe from this list: send the line unsubscribe netdev in the body of a message to [EMAIL

Re: 2.6.23-rc5: possible irq lock inversion dependency detected

2007-09-10 Thread Herbert Xu
. The ingress_lock is already _bh because of the spin_lock_bh that directly precedes it. Oh and I think the same thing applies for the other actions too. Cheers, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmVHI~} [EMAIL PROTECTED] Home Page: http://gondor.apana.org.au/~herbert

Re: [PATCH resend] Fix a lock problem in generic phy code

2007-09-10 Thread Herbert Xu
with this patch merged. Cheers, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmVHI~} [EMAIL PROTECTED] Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt - To unsubscribe from this list: send the line unsubscribe netdev

Re: [OOPS] 2.6.23-rc5 in tcp/net/nfsd

2007-09-11 Thread Herbert Xu
. So either a hardware problem or a really unlikely result of stack corruption. Cheers, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmVHI~} [EMAIL PROTECTED] Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

Re: 2.6.23-rc5: possible irq lock inversion dependency detected

2007-09-11 Thread Herbert Xu
On Tue, Sep 11, 2007 at 08:01:46AM -0400, jamal wrote: [NET_SCHED] protect action config/dump from irqs Looks good! Thanks Jamal. -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmVHI~} [EMAIL PROTECTED] Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http

Re: [PATCH] Configurable tap interface MTU

2007-09-11 Thread Herbert Xu
, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmVHI~} [EMAIL PROTECTED] Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt - To unsubscribe from this list: send the line unsubscribe netdev in the body of a message to [EMAIL

[0/3] [PPP]: Fix pppol2tp skb bugs

2007-09-18 Thread Herbert Xu
On Fri, Aug 31, 2007 at 05:06:25PM +0800, Herbert Xu wrote: I've audited ppp_generic.c and pppoe.c. I'll do pppol2tp tomorrow. Tomrrow took a while to come :) Here are the fixes for pppol2tp. Cheers, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmVHI~} [EMAIL

[PATCH 1/3] [PPP] L2TP: Disallow non-UDP datagram sockets

2007-09-18 Thread Herbert Xu
[PPP] L2TP: Disallow non-UDP datagram sockets With the addition of UDP-Lite we need to refine the socket check so that only genuine UDP sockets are allowed through. Signed-off-by: Herbert Xu [EMAIL PROTECTED] --- drivers/net/pppol2tp.c | 11 ++- 1 files changed, 6 insertions(+), 5

[PATCH 2/3] [PPP] L2TP: Fix skb handling in pppol2tp_recv_core

2007-09-18 Thread Herbert Xu
by the UDP layer. Signed-off-by: Herbert Xu [EMAIL PROTECTED] --- drivers/net/pppol2tp.c | 44 1 files changed, 24 insertions(+), 20 deletions(-) diff --git a/drivers/net/pppol2tp.c b/drivers/net/pppol2tp.c index ed8ead4..440e190 100644

[PATCH 3/3] [PPP] L2TP: Fix skb handling in pppol2tp_xmit

2007-09-18 Thread Herbert Xu
to control packets of course. I've also added a reminder that the outgoing checksum here doesn't work. I suppose existing deployments don't actually enable checksums. Signed-off-by: Herbert Xu [EMAIL PROTECTED] --- drivers/net/pppol2tp.c | 60 + 1

Re: [PATCH 3/3] [PPP] L2TP: Fix skb handling in pppol2tp_xmit

2007-09-18 Thread Herbert Xu
a reminder that the outgoing checksum here doesn't work. I suppose existing deployments don't actually enable checksums. Signed-off-by: Herbert Xu [EMAIL PROTECTED] Thanks, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmVHI~} [EMAIL PROTECTED] Home Page: http

Re: [PATCH 3/3] [PPP] L2TP: Fix skb handling in pppol2tp_xmit

2007-09-18 Thread Herbert Xu
] pppoe: Fix double-free on skb after transmit failure When I got rid of the second packet in __pppoe_xmit I created a double-free on the skb because of the goto abort on failure. This patch removes that. Signed-off-by: Herbert Xu [EMAIL PROTECTED] Cheers, -- Visit Openswan at http://www.openswan.org

Re: [PATCH net-2.6.24] [L2TP] Fix lockup introduced by recent changes

2007-09-18 Thread Herbert Xu
On Tue, Sep 18, 2007 at 02:51:06PM -0700, David Miller wrote: Herbert, please take a quick look, thanks. Yep it looks good. I should've read my emails from the bottom up :) Cheers, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmVHI~} [EMAIL PROTECTED] Home Page: http

Re: [PATCH 3/3] [PPP] L2TP: Fix skb handling in pppol2tp_xmit

2007-09-19 Thread Herbert Xu
and the packet should be retried. Retransmission should be left to the higher protocols. Cheers, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmVHI~} [EMAIL PROTECTED] Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

Re: [0/7] [PPP]: Fix shared/cloned/non-linear skb bugs (was: malformed captured packets)

2007-09-19 Thread Herbert Xu
://www.openswan.org/ Email: Herbert Xu ~{PmVHI~} [EMAIL PROTECTED] Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt - To unsubscribe from this list: send the line unsubscribe netdev in the body of a message to [EMAIL PROTECTED] More majordomo info

Re: [PATCH] note that NETIF_F_LLTX is deprecated (was: [kvm-devel][PATCH 3/6] virtio net driver)

2007-09-21 Thread Herbert Xu
On Fri, Sep 21, 2007 at 04:59:54PM +0200, Christian Borntraeger wrote: I suggest to document that LLTX is deprecated. Signed-off-by: Christian Borntraeger [EMAIL PROTECTED] This looks good to me. Thanks, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmVHI~} [EMAIL

Re: incorrect cksum with tcp/udp on lo with 2.6.20/2.6.21/2.6.22

2007-09-22 Thread Herbert Xu
., the pseudoheader without the payload). We even export this to user-space via a flag. So you should fix tcpdump to read this flag and ignore the checksum. Cheers, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmVHI~} [EMAIL PROTECTED] Home Page: http://gondor.apana.org.au/~herbert

Re: incorrect cksum with tcp/udp on lo with 2.6.20/2.6.21/2.6.22

2007-09-23 Thread Herbert Xu
at http://www.openswan.org/ Email: Herbert Xu ~{PmVHI~} [EMAIL PROTECTED] Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt - To unsubscribe from this list: send the line unsubscribe netdev in the body of a message to [EMAIL PROTECTED] More

Re: [RFC] Zero-length write() does not generate a datagram on connected socket

2007-09-25 Thread Herbert Xu
way, do we really need to keep the short-circuit for SOCK_STREAM? Cheers, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmVHI~} [EMAIL PROTECTED] Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt - To unsubscribe from

Re: e100 problems in .23rc8 ?

2007-09-27 Thread Herbert Xu
somewhere else. In any case, e100 should be prepared to deal with spurious interrupts as e1000 has been fixed to do. Cheers, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmVHI~} [EMAIL PROTECTED] Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au

[PKT_SCHED]: Add stateless NAT

2007-09-27 Thread Herbert Xu
for other protocols. Signed-off-by: Herbert Xu [EMAIL PROTECTED] Cheers, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmVHI~} [EMAIL PROTECTED] Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt -- diff --git a/include/linux

Re: [PKT_SCHED]: Add stateless NAT

2007-09-27 Thread Herbert Xu
Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmVHI~} [EMAIL PROTECTED] Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt - To unsubscribe from this list: send the line unsubscribe netdev in the body of a message to [EMAIL PROTECTED

Re: [PKT_SCHED]: Add stateless NAT

2007-09-27 Thread Herbert Xu
not against patches moving that code out of netfilter. Cheers, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmVHI~} [EMAIL PROTECTED] Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt - To unsubscribe from this list: send

Re: [PKT_SCHED]: Add stateless NAT

2007-09-27 Thread Herbert Xu
, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmVHI~} [EMAIL PROTECTED] Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt -- diff --git a/include/utils.h b/include/utils.h index a3fd335..b0dc03e 100644 --- a/include/utils.h +++ b

Re: [PKT_SCHED]: Add stateless NAT

2007-09-27 Thread Herbert Xu
rules that can be used/updated in constant time. The actual NAT code is mostly based on the previous stateless NAT code written by Alexey. In future we might be able to utilise the protocol NAT code from netfilter to improve support for other protocols. Signed-off-by: Herbert Xu [EMAIL PROTECTED

Re: [PKT_SCHED]: Add stateless NAT

2007-09-27 Thread Herbert Xu
://www.openswan.org/ Email: Herbert Xu ~{PmVHI~} [EMAIL PROTECTED] Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt - To unsubscribe from this list: send the line unsubscribe netdev in the body of a message to [EMAIL PROTECTED] More majordomo

Re: e1000 tcp checksum incorrect, x86 64b

2007-09-27 Thread Herbert Xu
offload with ethtool. Cheers, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmVHI~} [EMAIL PROTECTED] Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt - To unsubscribe from this list: send the line unsubscribe netdev

Re: [PKT_SCHED]: Add stateless NAT

2007-09-28 Thread Herbert Xu
/ipv4/ip_input.o If it's so big perhaps it should be inlined? It'll be a tail call anyway. Cheers, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmVHI~} [EMAIL PROTECTED] Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

Re: [RFC/PATCH 0/3] UDP memory usage accounting

2007-09-28 Thread Herbert Xu
the solution to that is to have a per-user limit rather than a system-wide limit. Otherwise any user can stop system daemons from using UDP. Cheers, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmVHI~} [EMAIL PROTECTED] Home Page: http://gondor.apana.org.au/~herbert/ PGP Key

Re: [PKT_SCHED]: Add stateless NAT

2007-09-28 Thread Herbert Xu
Herbert Xu [EMAIL PROTECTED] wrote: On Fri, Sep 28, 2007 at 06:55:32PM +0200, Patrick McHardy wrote: Looking at ip_input.o as example (everything without forced inlining): textdata bss dec hex filename 2076 8 02084 824 net/ipv4/ip_input.o 3483

Re: [PATCH] rtnl: Simplify ASSERT_RTNL

2007-09-28 Thread Herbert Xu
be holding any spin locks. Patrick, could we avoid taking the TX lock here somehow? Cheers, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmVHI~} [EMAIL PROTECTED] Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

Re: [RFC/PATCH 0/3] UDP memory usage accounting

2007-09-28 Thread Herbert Xu
problem but we do need to have some code for it. Cheers, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmVHI~} [EMAIL PROTECTED] Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt - To unsubscribe from this list: send the line

Re: [PKT_SCHED]: Add stateless NAT

2007-09-29 Thread Herbert Xu
bit? I've always wondered why netfilter had to modify the skb. Could we perhaps make it so that it doesn't need to do so? Cheers, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmVHI~} [EMAIL PROTECTED] Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http

Re: [PKT_SCHED]: Add stateless NAT

2007-09-29 Thread Herbert Xu
On Sun, Sep 30, 2007 at 08:26:01AM +0800, Herbert Xu wrote: Indeed. The only other case I can think of is defragmentation. But even there we should be able to squeeze it into the original skb :) OK it won't be pretty but it's definitely doable. We simply swap the contents of that skb

Re: [PATCH] rtnl: Simplify ASSERT_RTNL

2007-09-29 Thread Herbert Xu
the assert into dev_set_promiscuity. 2) Take the TX lock in dev_set_promiscuity. Cheers, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmVHI~} [EMAIL PROTECTED] Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt - To unsubscribe from

Re: [PKT_SCHED]: Add stateless NAT

2007-09-29 Thread Herbert Xu
:-))) So this might be some artifact that we can in fact kill off. Indeed. The only other case I can think of is defragmentation. But even there we should be able to squeeze it into the original skb :) Cheers, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmVHI~} [EMAIL

Re: [PATCH] rtnl: Simplify ASSERT_RTNL

2007-09-29 Thread Herbert Xu
call in there so that if somebody does this under locks it'll complain then I agree. Checking RTNL under spin locks is almost certainly the sign of a bug. Cheers, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmVHI~} [EMAIL PROTECTED] Home Page: http://gondor.apana.org.au

Re: [PATCH] rtnl: Simplify ASSERT_RTNL

2007-10-02 Thread Herbert Xu
dev_set_rx_mode static since it's only used in net/core/dev.c. As a side-effect this fixes the warning triggered by the RTNL_ASSERT in __dev_set_promiscuity. Signed-off-by: Herbert Xu [EMAIL PROTECTED] Cheers, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmVHI~} [EMAIL

Re: incorrect cksum with tcp/udp on lo with 2.6.20/2.6.21/2.6.22

2007-10-02 Thread Herbert Xu
? Doing a local tcpdump doesn't work as tcpdump won't show the correct checksum if checksum offload is enabled. If it's really sending a bogus checksum then it's a bug in LVS. Cheers, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmVHI~} [EMAIL PROTECTED] Home Page: http

Re: tcp bw in 2.6

2007-10-02 Thread Herbert Xu
, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmVHI~} [EMAIL PROTECTED] Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt - To unsubscribe from this list: send the line unsubscribe netdev in the body of a message to [EMAIL

Re: incorrect cksum with tcp/udp on lo with 2.6.20/2.6.21/2.6.22

2007-10-02 Thread Herbert Xu
checksum calculation? This is no different than DNATing a packet originally destined for lo to eth0, which works fine BTW. So that LVS patch or LVS itself should be fixed to do the right thing. Cheers, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmVHI~} [EMAIL PROTECTED

Re: [PATCH] rtnl: Simplify ASSERT_RTNL

2007-10-03 Thread Herbert Xu
would do exactly the same thing but would only hold the RTNL. What do you think about this approach? Cheers, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmVHI~} [EMAIL PROTECTED] Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert

Re: Vague maybe ppp-related panic report for 2.6.23-rc9

2007-10-04 Thread Herbert Xu
anything obvious in it but maybe someone else can. Cheers, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmVHI~} [EMAIL PROTECTED] Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt -- 2a38b775b77f99308a4e571c13d908df78ac5e57 diff

Re: [Bugme-new] [Bug 9128] New: PF_KEY SADB_GET messages return SADB_DUMP from the kernel

2007-10-05 Thread Herbert Xu
On Fri, Oct 05, 2007 at 10:37:55AM -0700, Andrew Morton wrote: But whatever - I can convert this patch into a suitable one and send it in to David if people think it is good? Looks good to me. Thanks, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmVHI~} [EMAIL PROTECTED

Re: [NET] IPv6 oops bisected

2007-10-08 Thread Herbert Xu
://www.openswan.org/ Email: Herbert Xu ~{PmVHI~} [EMAIL PROTECTED] Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt - To unsubscribe from this list: send the line unsubscribe netdev in the body of a message to [EMAIL PROTECTED] More majordomo info

[0/7] IPsec: Preparatory patcheds for async crypto on output

2007-10-08 Thread Herbert Xu
Hi Dave: Here is a bunch of patches paving the way for removal of the state spin lock on the output path so that we can let the crypto complete asynchronously. Cheers, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmVHI~} [EMAIL PROTECTED] Home Page: http

[PATCH 1/7] [IPSEC] esp: Remove keys from esp_data structure

2007-10-08 Thread Herbert Xu
auth.icv member. Signed-off-by: Herbert Xu [EMAIL PROTECTED] --- include/net/esp.h |7 --- net/ipv4/esp4.c | 16 +--- net/ipv6/esp6.c | 15 --- 3 files changed, 9 insertions(+), 29 deletions(-) diff --git a/include/net/esp.h b/include/net/esp.h index d05d8d2

[PATCH 2/7] [IPSEC] ah: Remove keys from ah_data structure

2007-10-08 Thread Herbert Xu
[IPSEC] ah: Remove keys from ah_data structure The keys are only used during initialisation so we don't need to carry them in esp_data. Since we don't have to allocate them again, there is no need to place a limit on the authentication key length anymore. Signed-off-by: Herbert Xu [EMAIL

[PATCH 4/7] [IPSEC]: Move xfrm_state_check into xfrm_output.c

2007-10-08 Thread Herbert Xu
[IPSEC]: Move xfrm_state_check into xfrm_output.c The functions xfrm_state_check and xfrm_state_check_space are only used by the output code in xfrm_output.c so we can move them over. Signed-off-by: Herbert Xu [EMAIL PROTECTED] --- include/net/xfrm.h |1 - net/xfrm/xfrm_output.c | 22

[PATCH 3/7] [IPSEC]: Move common output code to xfrm_output

2007-10-08 Thread Herbert Xu
a transform which may upset netfilter later on. Signed-off-by: Herbert Xu [EMAIL PROTECTED] --- include/net/xfrm.h |1 net/ipv4/xfrm4_output.c | 40 ++ net/ipv6/xfrm6_output.c | 45 +++-- net/xfrm/Makefile |2 - net/xfrm

[PATCH 5/7] [IPSEC]: Move output replay code into xfrm_output

2007-10-08 Thread Herbert Xu
themselves. Signed-off-by: Herbert Xu [EMAIL PROTECTED] --- include/net/xfrm.h | 20 +++- net/ipv4/ah4.c |4 ++-- net/ipv4/esp4.c|4 ++-- net/ipv6/ah6.c |4 ++-- net/ipv6/esp6.c|4 ++-- net/xfrm/xfrm_output.c |5 + 6 files

[PATCH 6/7] [IPSEC]: Unexport xfrm_replay_notify

2007-10-08 Thread Herbert Xu
[IPSEC]: Unexport xfrm_replay_notify Now that the only callers of xfrm_replay_notify are in xfrm, we can remove the export. This patch also removes xfrm_aevent_doreplay since it's now called in just one spot. Signed-off-by: Herbert Xu [EMAIL PROTECTED] --- include/net/xfrm.h |6

[PATCH 7/7] [IPSEC]: Move RO-specific output code into xfrm6_mode_ro.c

2007-10-08 Thread Herbert Xu
[IPSEC]: Move RO-specific output code into xfrm6_mode_ro.c The lastused update check in xfrm_output can be done just as well in the mode output function which is specific to RO. Signed-off-by: Herbert Xu [EMAIL PROTECTED] --- net/ipv6/xfrm6_mode_ro.c |4 net/xfrm/xfrm_output.c

Re: [PATCH 3/7] [IPSEC]: Move common output code to xfrm_output

2007-10-08 Thread Herbert Xu
: Herbert Xu ~{PmVHI~} [EMAIL PROTECTED] Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt - 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: [PATCH 2/3][NET_BATCH] net core use batching

2007-10-08 Thread Herbert Xu
in the function qdisc_restart, where we release the queue lock only after acquiring the TX lock. So right now this path does not create any reordering. Cheers, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmVHI~} [EMAIL PROTECTED] Home Page: http://gondor.apana.org.au

Re: [PATCH 2/3][NET_BATCH] net core use batching

2007-10-08 Thread Herbert Xu
On Tue, Oct 09, 2007 at 10:01:15AM +0800, Herbert Xu wrote: On Mon, Oct 08, 2007 at 06:41:26PM -0700, David Miller wrote: I also want to point out another issue. Any argument wrt. reordering is specious at best because right now reordering from qdisc to device happens anyways

Re: [PATCH 2/3][NET_BATCH] net core use batching

2007-10-08 Thread Herbert Xu
On Tue, Oct 09, 2007 at 10:03:18AM +0800, Herbert Xu wrote: On Tue, Oct 09, 2007 at 10:01:15AM +0800, Herbert Xu wrote: On Mon, Oct 08, 2007 at 06:41:26PM -0700, David Miller wrote: I also want to point out another issue. Any argument wrt. reordering is specious at best because right

Re: [PATCH 2/3][NET_BATCH] net core use batching

2007-10-08 Thread Herbert Xu
: Herbert Xu ~{PmVHI~} [EMAIL PROTECTED] Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt - 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: [PATCH 2/3][NET_BATCH] net core use batching

2007-10-08 Thread Herbert Xu
On Mon, Oct 08, 2007 at 10:15:49PM -0400, jamal wrote: On Tue, 2007-09-10 at 10:04 +0800, Herbert Xu wrote: Please revert commit 41843197b17bdfb1f97af0a87c06d24c1620ba90 Author: Jamal Hadi Salim [EMAIL PROTECTED] Date: Tue Sep 25 19:27:13 2007 -0700 [NET_SCHED]: explict

Re: [PATCH 2/3][NET_BATCH] net core use batching

2007-10-08 Thread Herbert Xu
On Mon, Oct 08, 2007 at 10:19:02PM -0400, jamal wrote: On Tue, 2007-09-10 at 10:16 +0800, Herbert Xu wrote: No it doesn't. I'd forgotten about the QDISC_RUNNING bit :) You should not better, you wrote it and ive been going insane trying to break for at least a year now ;- Well you've

Re: [PATCH 2/3][NET_BATCH] net core use batching

2007-10-08 Thread Herbert Xu
lock. So there is no reordering with or without Jamal's patch. Cheers, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmVHI~} [EMAIL PROTECTED] Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt - To unsubscribe from

Re: raw PF_PACKET protocol selection

2007-10-08 Thread Herbert Xu
work. Naturally I make sure the sender is using the same protocol as my test program below. I guess I must be doing something wrong??? Your program works fine here. You did run it as root, right? Did you try stracing it? Cheers, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu

Re: [RFC][NET_SCHED] explict hold dev tx lock

2007-10-08 Thread Herbert Xu
-up with the TX lock held (which would cause qdisc_restart to spin while this is happening)? Cheers, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmVHI~} [EMAIL PROTECTED] Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

Re: raw PF_PACKET protocol selection

2007-10-09 Thread Herbert Xu
://www.openswan.org/ Email: Herbert Xu ~{PmVHI~} [EMAIL PROTECTED] Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt - To unsubscribe from this list: send the line unsubscribe netdev in the body of a message to [EMAIL PROTECTED] More majordomo info

Re: [PATCH 2/3][NET_BATCH] net core use batching

2007-10-09 Thread Herbert Xu
On Tue, Oct 09, 2007 at 08:44:25AM -0400, Jeff Garzik wrote: David Miller wrote: I can just threaten to do them all and that should get the driver maintainers going :-) What, like this? :) Awsome :) -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmVHI~} [EMAIL

[0/7] IPsec: More work on async crypto on output

2007-10-09 Thread Herbert Xu
Hi Dave: Here's another round of patches which ends with the moving down of the state lock into x-type-output. I need to stop getting distracted by fixing bugs and concentrate on creating them :) Cheers, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmVHI~} [EMAIL PROTECTED

[PATCH 1/7] [IPSEC]: Remove bogus ref count in xfrm_secpath_reject

2007-10-09 Thread Herbert Xu
is in the wrong spot. In the case of xfrm_secpath_reject, the function is synchronous and therefore we should just kill the reference count. Signed-off-by: Herbert Xu [EMAIL PROTECTED] --- net/xfrm/xfrm_policy.c |6 +- 1 files changed, 1 insertion(+), 5 deletions(-) diff --git a/net/xfrm

[PATCH 2/7] [IPSEC]: Store IPv6 nh pointer in mac_header on output

2007-10-09 Thread Herbert Xu
effort to merge the two. Lastly it kills two redundant skb_set_* statements in BEET that were simply copied over from transport mode. Signed-off-by: Herbert Xu [EMAIL PROTECTED] --- net/ipv4/esp4.c |2 +- net/ipv6/ah6.c |6 +++--- net/ipv6/esp6.c

[PATCH 3/7] [IPSEC]: Remove gratuitous km wake-up events on ACQUIRE

2007-10-09 Thread Herbert Xu
or die. Signed-off-by: Herbert Xu [EMAIL PROTECTED] --- net/xfrm/xfrm_state.c |2 -- 1 files changed, 2 deletions(-) diff --git a/net/xfrm/xfrm_state.c b/net/xfrm/xfrm_state.c index a00745a..0d07f6b 100644 --- a/net/xfrm/xfrm_state.c +++ b/net/xfrm/xfrm_state.c @@ -848,7 +848,6 @@ static

[PATCH 4/7] [IPSEC]: Move common code into xfrm_alloc_spi

2007-10-09 Thread Herbert Xu
byte order conversion has also been moved. Signed-off-by: Herbert Xu [EMAIL PROTECTED] --- include/net/xfrm.h|2 +- net/key/af_key.c | 29 - net/xfrm/xfrm_state.c | 26 -- net/xfrm/xfrm_user.c | 13 - 4 files

[PATCH 6/7] [IPSEC]: Lock state when copying non-atomic fields to user-space

2007-10-09 Thread Herbert Xu
notification to include the keys and life-times. This is in-line with XFRM behaviour. The actual cases affected are: * pfkey_getspi: No change as we don't have any keys to copy. * key_notify_sa: + ADD/UPD: This wouldn't work otherwise. + DEL: It can't hurt. Signed-off-by: Herbert Xu

[PATCH 5/7] [XFRM] user: Move attribute copying code into copy_to_user_state_extra

2007-10-09 Thread Herbert Xu
difference since it has the same size as xfrm_sec_ctx. Signed-off-by: Herbert Xu [EMAIL PROTECTED] --- net/xfrm/xfrm_user.c | 76 +++ 1 files changed, 47 insertions(+), 29 deletions(-) diff --git a/net/xfrm/xfrm_user.c b/net/xfrm/xfrm_user.c index

[PATCH 7/7] [IPSEC]: Move state lock into x-type-output

2007-10-09 Thread Herbert Xu
[IPSEC]: Move state lock into x-type-output This patch releases the lock on the state before calling x-type-output. It also adds the lock to the spots where they're currently needed. Most of those places (all except mip6) are expected to disappear with async crypto. Signed-off-by: Herbert Xu

Re: [PATCH 6/7] [IPSEC]: Lock state when copying non-atomic fields to user-space

2007-10-09 Thread Herbert Xu
and is usually a BUG. But you're actually just constructing SKB response netlink bits, which later will be copied into userspace but long after we've released these locks. Good point. I should've said skb destined for user-spac Cheers, -- Visit Openswan at http://www.openswan.org/ Email: Herbert

Re: [PATCH] [IPV6] Defer IPv6 device initialization until a valid qdisc is specified

2007-10-09 Thread Herbert Xu
a valid qdisc is specified. Is this really necessary? What if this is plugged into a switch that has nothing else connected? Should you also wait for something to be connected to the switch? Cheers, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmVHI~} [EMAIL PROTECTED] Home

Re: [PATCH][NET-2.6.24] Remove double dev-flags checking when calling dev_close()

2007-10-09 Thread Herbert Xu
Jeff Garzik [EMAIL PROTECTED] wrote: One side effect of this patch: might_sleep() is now called unconditionally. That would be seem to be a good thing :) -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmVHI~} [EMAIL PROTECTED] Home Page: http://gondor.apana.org.au/~herbert

Re: [PATCH] [IPV6] Defer IPv6 device initialization until a valid qdisc is specified

2007-10-09 Thread Herbert Xu
it in virtual guest because the carrier is always on since the switch in that case is the host OS. Cheers, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmVHI~} [EMAIL PROTECTED] Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

<    6   7   8   9   10   11   12   13   14   15   >