[IPSEC]: Don't warn if high-order hash resize fails

2007-05-13 Thread Herbert Xu
about them. 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/net/xfrm/xfrm_hash.c

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

2007-05-14 Thread Herbert Xu
Hirokazu Takahashi [EMAIL PROTECTED] wrote: Uhh, you are right. skb_shinfo(skb)-gso_segs and skb_shinfo(skb)-gso_size should be used. Actually forget about gso_segs, it's only filled in for TCP. Cheers, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmVHI~} [EMAIL

Re: [IPSEC]: Don't warn if high-order hash resize fails

2007-05-14 Thread Herbert Xu
] (0xfff6). 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: [IPSEC]: Don't warn if high-order hash resize fails

2007-05-14 Thread Herbert Xu
On Mon, May 14, 2007 at 05:07:33PM +1000, Herbert Xu wrote: Good point. A bit of dd-ing shows that I've got a negative value in xfrm_policy_count[0] (0xfff6). In fact the other two directions are bogus too, OUT says 10 and FWD says 5. The actual values are IN == 2, OUT == 2, FWD == 1

Re: [IPSEC]: Don't warn if high-order hash resize fails

2007-05-14 Thread Herbert Xu
On Mon, May 14, 2007 at 05:26:57PM +1000, Herbert Xu wrote: On Mon, May 14, 2007 at 05:07:33PM +1000, Herbert Xu wrote: Good point. A bit of dd-ing shows that I've got a negative value in xfrm_policy_count[0] (0xfff6). In fact the other two directions are bogus too, OUT says 10

Re: [IPSEC]: Don't warn if high-order hash resize fails

2007-05-14 Thread Herbert Xu
On Mon, May 14, 2007 at 05:27:55PM +1000, Herbert Xu wrote: In fact that's a clue. If you add them all up they come out at the same value. So we're getting the directions mixed up... Found the problem. It was my own fault in a way :) [IPSEC]: Check validity of direction

Re: [PATCH 2/2] tbf scheduler: TSO support (update 2)

2007-05-17 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 majordomo

Re: [PATCH][af_key]pfkey_add: Optimize SA adds and algorithm probes

2007-05-17 Thread Herbert Xu
only removed the probe call for xfrm_user. This patch does exactly the same thing for af_key. In other words, we load the algorithm requested by the user rather than everything when adding xfrm states in af_key. Signed-off-by: Herbert Xu [EMAIL PROTECTED] Cheers, -- Visit Openswan at http

Re: [PATCH][af_key]pfkey_add: Optimize SA adds and algorithm probes

2007-05-18 Thread Herbert Xu
On Fri, May 18, 2007 at 02:34:12PM +1000, Herbert Xu wrote: Actually, I think we should just probe for the specific algorithm requested rather than everything. See patch below. Doh, forgot to actually remove the probe call :) [IPSEC] pfkey: Load specific algorithm in pfkey_add rather than

Re: Purpose of bit shifts in tcp_get_info

2007-05-18 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: [2.6 patch] net/llc/llc_conn.c: fix possible NULL dereference

2007-05-18 Thread Herbert Xu
for someone else to remove it in parallel, then we've got bigger problems to worry about :) 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: [PATCH] improved locking performance in rt_run_flush()

2007-05-19 Thread Herbert Xu
for freeing later. I just checked and struct rtable is 236 bytes long on 32-bit but the slab cache pads it to 256 bytes so we've got some free space. I suspect 64-bit should be similar. Cheers, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmVHI~} [EMAIL PROTECTED] Home Page

Re: oops in net/ipv4/icmp.c:icmp_send() with icmp_errors_use_inbound_ifaddr (fwd)

2007-05-19 Thread Herbert Xu
things so that the setting of skb-dev is delayed until the packet has completely left the IP stack? It'd require a massive audit though of the IP stack though. Cheers, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmVHI~} [EMAIL PROTECTED] Home Page: http://gondor.apana.org.au

Re: [Bugme-new] [Bug 8491] New: OOPS triggered by ip(8) deconfiguring a network interface

2007-05-20 Thread Herbert Xu
which is clearly bogus. That value in turn comes from proc_net_devsnmp6. So somehow during the suspend/resume that pointer has been corrupted. Cheers, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmVHI~} [EMAIL PROTECTED] Home Page: http://gondor.apana.org.au/~herbert/ PGP

[NET] napi: Call __netif_rx_complete in netif_rx_complete

2007-05-20 Thread Herbert Xu
Hi Dave: [NET] napi: Call __netif_rx_complete in netif_rx_complete This patch kills a little bit of code duplication between the two variants of netif_rx_complete. Signed-off-by: Herbert Xu [EMAIL PROTECTED] Cheers, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmVHI

Re: e1000: assertion hit in e1000_clean(), kernel 2.6.21.1

2007-05-20 Thread Herbert Xu
start and restart and another which is only called on restart (i.e., after e1000_down). 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: [5/5] 2.6.22-rc2: known regressions

2007-05-20 Thread Herbert Xu
the proc entry just keeps the original name. When it goes down it should still get removed correctly. Could you explain this in a bit more detail? Thanks, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmVHI~} [EMAIL PROTECTED] Home Page: http://gondor.apana.org.au/~herbert/ PGP Key

Re: [RFC] New driver API to speed up small packets xmits

2007-05-21 Thread Herbert Xu
the gain is non-trivial. Yep, for any NIC that supports SG but not TSO then software GSO will be a big win. When the NIC doesn't support SG then the win is mostly offset by the need to copy the packet again. Cheers, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmVHI

Re: Questions about IPsec and Netfilter

2007-05-21 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] More

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

2007-05-21 Thread Herbert Xu
only used these hooks on the receive side for your 10Gbps transfer? Of course, you need to make sure that TSO is working properly on the sending side. Cheers, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmVHI~} [EMAIL PROTECTED] Home Page: http://gondor.apana.org.au/~herbert

Re: [PATCH] e1000: Don't enable polling in open() (was: e1000: assertion hit in e1000_clean(), kernel 2.6.21.1)

2007-05-21 Thread Herbert Xu
in e1000_open should fix this issue, the only other call to netif_poll_enable is in e1000_up() which is only reached after a device reset or resume. Signed-off-by: Auke Kok [EMAIL PROTECTED] Cc: Herbert Xu [EMAIL PROTECTED] Looks good! Thanks, -- Visit Openswan at http://www.openswan.org/ Email

Re: oops in net/ipv4/icmp.c:icmp_send() with icmp_errors_use_inbound_ifaddr (fwd)

2007-05-21 Thread Herbert Xu
to the tunnel device. I think that should be OK though. Once you pass through ipip/ip_gre's transmit function, you're conceptually a locally generated packet. Cheers, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmVHI~} [EMAIL PROTECTED] Home Page: http://gondor.apana.org.au

Re: [PATCH] e1000: Don't enable polling in open() (was: e1000: assertion hit in e1000_clean(), kernel 2.6.21.1)

2007-05-21 Thread Herbert Xu
On Mon, May 21, 2007 at 06:16:35PM -0400, Dave Jones wrote: On Mon, May 21, 2007 at 02:51:35PM -0700, Auke Kok wrote: Herbert Xu wrote: netif_poll_enable can only be called if you've previously called netif_poll_disable. Otherwise a poll might already be in action and you may get

Re: [PATCH] e1000: Don't enable polling in open() (was: e1000: assertion hit in e1000_clean(), kernel 2.6.21.1)

2007-05-21 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

[IPSEC]: Fix warnings with casting int to pointer

2007-05-22 Thread Herbert Xu
Hi Dave: Here's patch to fix the warnings. [IPSEC]: Fix warnings with casting int to pointer This patch adds some casts to shut up the warnings introduced by my last patch that added a common interator function for xfrm algorightms. Signed-off-by: Herbert Xu [EMAIL PROTECTED] Cheers

Re: [RFC] New driver API to speed up small packets xmits

2007-05-22 Thread Herbert Xu
GSO is turned on or off because GSO does an extra copy which offsets the win in reduced per-packet cost. For sendfile() it's still a win though since we have to copy it anyway and doing it in GSO avoids the per-packet cost. Cheers, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu

Re: UDP checksum broken since 2.6.18?

2007-05-23 Thread Herbert Xu
-- loopback We never compute the complete checksum for loopback so that explains the bogus checksum. 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: [PATCH] e1000: Don't enable polling in open() (was: e1000: assertion hit in e1000_clean(), kernel 2.6.21.1)

2007-05-23 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 -- diff --git a/drivers/net/e1000/e1000_main.c b/drivers/net/e1000/e1000_main.c index b28a915

Re: bad networking related lag in v2.6.22-rc2

2007-05-23 Thread Herbert Xu
processing packets. This patch is based on diagnosis and fix by Patrick McHardy. Signed-off-by: Herbert Xu [EMAIL PROTECTED] 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

Re: UDP checksum broken since 2.6.18?

2007-05-23 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

Re: [PATCH] e1000: Don't enable polling in open() (was: e1000: assertion hit in e1000_clean(), kernel 2.6.21.1)

2007-05-23 Thread Herbert Xu
netif_poll_enable without calling netif_poll_disable at some prior time. This constraint is violated in e1000_open. This patch fixes it by simply calling netif_poll_disable in e1000_open. Signed-off-by: Herbert Xu [EMAIL PROTECTED] Cheers, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmVHI

Re: [PATCH] e1000: Don't enable polling in open() (was: e1000: assertion hit in e1000_clean(), kernel 2.6.21.1)

2007-05-23 Thread Herbert Xu
On Wed, May 23, 2007 at 04:38:20PM -0700, Kok, Auke wrote: With that, please add my Acked-By... Sorry, I only read yours after Chris's message :) Chris, please add that Acked-By by Auke. Cheers, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmVHI~} [EMAIL PROTECTED] Home

Re: [IPv6] UDP Encapsulation of IPsec ESP Packets

2007-05-24 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: [PATCH 2/2] [IPV6] MIP6: Loadable module support for MIPv6.

2007-05-24 Thread Herbert Xu
welcome :) 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: [PATCH] [XFRM]: Add module alias for transformation type. (Re: [PATCH 2/2] [IPV6] MIP6: Loadable module support for MIPv6.)

2007-05-24 Thread Herbert Xu
the existing IPPROTO_* values for all of these? Otherwise this looks pretty good. 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

Re: [PATCH] [XFRM]: Add module alias for transformation type.

2007-05-24 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: [Bugme-new] [Bug 8536] New: Kernel drops UDP packets silently when reading from certain proc file entries

2007-05-25 Thread Herbert Xu
over a large but mostly empty TCP established hash table that we should just move it to the individual read_lock/read_unlock calls as we do in inet_diag. Signed-off-by: Herbert Xu [EMAIL PROTECTED] Cheers, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmVHI~} [EMAIL PROTECTED

Re: [Bugme-new] [Bug 8536] New: Kernel drops UDP packets silently when reading from certain proc file entries

2007-05-25 Thread Herbert Xu
it for /proc/net/tcp. This patch simply changes /proc/net/tcp to be in line with the behaviour of inet_diag. 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: [Bugme-new] [Bug 8536] New: Kernel drops UDP packets silently when reading from certain proc file entries

2007-05-25 Thread Herbert Xu
match at all. But yes it probably makes sense for it to process some softirq work as well. Ingo? 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: Definition and usage of NETIF_F_HW_SUM?

2007-05-29 Thread Herbert Xu
-based checksum offload. 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: REGRESSION: panic on e1000 driver

2007-05-30 Thread Herbert Xu
problem that we haven't uncovered yet. 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: REGRESSION: panic on e1000 driver

2007-05-30 Thread Herbert Xu
explicitly shut it off. Does this patch help? If it does help, does it produce the warning in dmesg? 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

Re: REGRESSION: panic on e1000 driver

2007-05-30 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: REGRESSION: panic on e1000 driver

2007-05-31 Thread Herbert Xu
of it first before making this problem disappear. 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: [E1000-devel] REGRESSION: panic on e1000 driver

2007-05-31 Thread Herbert Xu
e1000_irq_enable. So unless we've got a problem with memory barriers we shouldn't get the above printk. Is there another trigger that happens earlier? 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: REGRESSION: panic on e1000 driver

2007-05-31 Thread Herbert Xu
? 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 -- diff --git a/drivers/net/e1000/e1000_main.c b/drivers/net/e1000/e1000_main.c index 9ec35b7

Re: REGRESSION: panic on e1000 driver

2007-05-31 Thread Herbert Xu
irq_sem 0. 2) Always generate an IRQ after e1000_irq_enable. 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: [NET] gso: Fix GSO feature mask in sk_setup_caps

2007-05-31 Thread Herbert Xu
On Thu, May 31, 2007 at 10:16:22PM -0700, David Miller wrote: I don't think it's worth bothering -stable with this one, agreed? Not unless we're planning on making UFO use sk_setup_caps :) Agreed! Cheers, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmVHI~} [EMAIL

[NET] gso: Fix GSO feature mask in sk_setup_caps

2007-05-31 Thread Herbert Xu
is that right now we translate GSO emulation to the bitmask NETIF_F_GSO_MASK, which includes every protocol, even ones that we cannot emulate. This patch makes it provide only the ones that we can emulate. Signed-off-by: Herbert Xu [EMAIL PROTECTED] Cheers, -- Visit Openswan at http

Re: [PATCH] e1000: disable polling before registering netdevice

2007-06-01 Thread Herbert Xu
register_netdevice so the stack starts out how we expect it to be. Signed-off-by: Auke Kok [EMAIL PROTECTED] Cc: Herbert Xu [EMAIL PROTECTED] Cc: Doug Chapman [EMAIL PROTECTED] Looks good! Thanks, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmVHI~} [EMAIL PROTECTED

[0/4] [IPV4]: Fix compatibility issue with ipv4_devconf_dflt

2007-06-02 Thread Herbert Xu
again at the same points as before for values which have not been explicitly set. If this looks OK I'll do the same thing for IPv6 as well. Cheers, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmVHI~} [EMAIL PROTECTED] Home Page: http://gondor.apana.org.au/~herbert/ PGP Key

[1/4] [IPV4]: Only panic if inetdev_init fails for loopback

2007-06-02 Thread Herbert Xu
if clause. 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/net/ipv4/devinet.c b

[2/4] [IPV4]: Convert IPv4 devconf to an array

2007-06-02 Thread Herbert Xu
[IPV4]: Convert IPv4 devconf to an array This patch converts the ipv4_devconf config members (everything except sysctl) to an array. This allows easier manipulation which will be needed later on to provide better management of default config values. Signed-off-by: Herbert Xu [EMAIL PROTECTED

[3/4] [IPV4]: Add default config support after inetdev_init

2007-06-02 Thread Herbert Xu
will forcibly set all values at the point where inetdev_init was previously called. 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

[4/4] [IPV4]: Restore old behaviour of default config values

2007-06-02 Thread Herbert Xu
, this changes the behaviour of default config values in an incompatible way (see bug #8519). This patch creates a compromise by setting the default values at the same point as before but only for those that have not been explicitly set by the user since the inet device's creation. Signed-off-by: Herbert Xu

Re: [PATCH] Fix bug of update IPv4 PMTU when received ICMP Fragmentation Needed message

2007-06-02 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 at http

Re: raw sockets ignore IP_HDRINCL data

2007-06-02 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] More

Re: raw sockets ignore IP_HDRINCL data

2007-06-03 Thread Herbert Xu
that you did and added a patch to it five years ago to get it to bind the interface :) 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: [PATCH] Fix bug of update IPv4 PMTU when received ICMP Fragmentation Needed message

2007-06-03 Thread Herbert Xu
); So maybe the patch would like following. The size of the packet that caused the ICMP is what we want here. That's why the router must be buggy. Cheers, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmVHI~} [EMAIL PROTECTED] Home Page: http://gondor.apana.org.au/~herbert

Re: [PATCH] Fix bug of update IPv4 PMTU when received ICMP Fragmentation Needed message

2007-06-03 Thread Herbert Xu
) to get a MTU. Method of send ICMP Fragmentation Needed message is difference from receive, Which router is doing that? 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: [PATCH] Fix bug of update IPv4 PMTU when received ICMP Fragmentation Needed message

2007-06-03 Thread Herbert Xu
. The old_mtu field comes from iph-tot_len which is the length of field in the *original* IP header. We're certainly not allowed touch that field. Cheers, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmVHI~} [EMAIL PROTECTED] Home Page: http://gondor.apana.org.au/~herbert/ PGP Key

[PATCH 1/4] [IPV4]: Only panic if inetdev_init fails for loopback

2007-06-05 Thread Herbert Xu
if clause. Signed-off-by: Herbert Xu [EMAIL PROTECTED] --- net/ipv4/devinet.c |5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/net/ipv4/devinet.c b/net/ipv4/devinet.c --- a/net/ipv4/devinet.c +++ b/net/ipv4/devinet.c @@ -1057,9 +1057,10 @@ static int inetdev_event

[PATCH 2/4] [IPV4]: Convert IPv4 devconf to an array

2007-06-05 Thread Herbert Xu
[IPV4]: Convert IPv4 devconf to an array This patch converts the ipv4_devconf config members (everything except sysctl) to an array. This allows easier manipulation which will be needed later on to provide better management of default config values. Signed-off-by: Herbert Xu [EMAIL PROTECTED

[PATCH 4/4] [IPV4]: Restore old behaviour of default config values

2007-06-05 Thread Herbert Xu
, this changes the behaviour of default config values in an incompatible way (see bug #8519). This patch creates a compromise by setting the default values at the same point as before but only for those that have not been explicitly set by the user since the inet device's creation. Signed-off-by: Herbert Xu

[PATCH 3/4] [IPV4]: Add default config support after inetdev_init

2007-06-05 Thread Herbert Xu
will forcibly set all values at the point where inetdev_init was previously called. Signed-off-by: Herbert Xu [EMAIL PROTECTED] --- include/linux/inetdevice.h |3 + net/ipv4/devinet.c | 133 + 2 files changed, 101 insertions(+), 35 deletions

Re: 2.6.22-rc4-mm2: Assigning IP address fails

2007-06-07 Thread Herbert Xu
. This patch should fix it. [IPV4]: Do not remove idev when addresses are cleared Now that we create idev before addresses are added, it no longer makes sense to remove them when addresses are all deleted. Signed-off-by: Herbert Xu [EMAIL PROTECTED] Cheers, -- Visit Openswan at http

Re: SG_IO with 4k buffer size to iscsi sg device causes Bad page panic

2007-06-08 Thread Herbert Xu
() at sg_page_free() time, I worry about a race condition that the page gets re-used before calling free_pages(). Could you explain what is going to cause this page to be reused if it has a non-zero reference count? Thanks, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmVHI~} [EMAIL

Re: Multicast and hardware checksum

2007-06-08 Thread Herbert Xu
/ 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 at http

Re: [PATCH] NET: Multiqueue network device support.

2007-06-08 Thread Herbert Xu
at other drivers, but for e1000 seems to me even if you got rid of LLTX that netif_tx_lock is unnecessary. Herbert? It would guard against the poll routine which would acquire this lock when cleaning the TX ring. Cheers, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmVHI

Re: Multicast and hardware checksum

2007-06-08 Thread Herbert Xu
checksum that failed. What kind of a ppp device is this? If you run a tcpdump either side of the ppp link do you see the same UDP checksum value? Cheers, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmVHI~} [EMAIL PROTECTED] Home Page: http://gondor.apana.org.au/~herbert/ PGP

Re: [PATCH] NET: Multiqueue network device support.

2007-06-08 Thread Herbert Xu
On Fri, Jun 08, 2007 at 07:34:57AM -0400, jamal wrote: On Fri, 2007-08-06 at 20:39 +1000, Herbert Xu wrote: It would guard against the poll routine which would acquire this lock when cleaning the TX ring. Ok, then i suppose we can conclude it is a bug on e1000 (holds tx_lock on tx side

Re: networking busted in current -git ???

2007-06-08 Thread Herbert Xu
Trond Myklebust [EMAIL PROTECTED] wrote: It appears to be something in the latest dump from davem to Linus, but I haven't yet had time to identify what. You want this patch which should hit the tree soon. Cheers, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmVHI

Re: [patch 23/32] IPV4: Correct rp_filter help text.

2007-06-08 Thread Herbert Xu
with echo 1 /proc/sys/net/ipv4/conf/device/rp_filter for it to work for device. This is really counter-intuitive but it's apparently how it's always worked. Cheers, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmVHI~} [EMAIL PROTECTED] Home Page: http

Re: [patch 23/32] IPV4: Correct rp_filter help text.

2007-06-08 Thread Herbert Xu
On Sat, Jun 09, 2007 at 11:20:43AM +1000, Herbert Xu wrote: Chris Wright [EMAIL PROTECTED] wrote: --- linux-2.6.20.13.orig/net/ipv4/Kconfig +++ linux-2.6.20.13/net/ipv4/Kconfig @@ -43,11 +43,11 @@ config IP_ADVANCED_ROUTER asymmetric routing (packets from you to a host take

Re: [PATCH] RFC: have tcp_recvmsg() check kthread_should_stop() and treat it as if it were signalled

2007-06-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] NET: Multiqueue network device support.

2007-06-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 3/4] [IPV4]: Add default config support after inetdev_init

2007-06-11 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] More

Re: cannot set IP for ethernet

2007-06-13 Thread Herbert Xu
have a think about your approach too. 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 -- commit 6363097cc4d182f93788131b5d8f72aa91d950a0

[IPV6] addrconf: Fix IPv6 on tuntap tunnels

2007-06-14 Thread Herbert Xu
this issue. 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/net/ipv6/addrconf.c b/net

Re: [PATCH 2/2] qdisc_restart - couple of optimizations.

2007-06-14 Thread Herbert Xu
is not required. Hopefully Herbert can validate this change. If at all this is required, it should be added to skb_dequeue (in failure case), and not to qdisc_qlen. Yes I agree that this check is no longer critical. Cheers, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmVHI

Re: [PATCH 2/2] qdisc_restart - couple of optimizations.

2007-06-14 Thread Herbert Xu
, and hard_start_xmit() if an event like I mentioned happened. IMHO this scenario occurs so infrequently that the check isn't worth it especially since the driver has to be able to deal with us calling it after netif_stop_queue() anyway. Cheers, -- Visit Openswan at http://www.openswan.org/ Email: Herbert

Re: [IPV6] addrconf: Fix IPv6 on tuntap tunnels

2007-06-16 Thread Herbert Xu
to be added to an interface. The original patch simply confused this basic IPv6 address support with IPv6 autoconfiguration. 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: git-net, git-netdev-all and everything else on g5

2007-06-28 Thread Herbert Xu
at net/core/dev.c:1303 Hmm, we really should come up with a better way for checking checksum support. [NET]: Fix TX checksum feature check This patch fixes a boolean error in the new TX checksum check that causes bogus TSO packets to be generated. Signed-off-by: Herbert Xu [EMAIL PROTECTED] Cheers

Re: [PATCH 1/2] LSM-IPSec Networking Hooks

2005-07-07 Thread Herbert Xu
/ 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 at http

Re: linux IPSEC with cisco problem

2005-07-10 Thread Herbert Xu
possibility is to flush all cached bundles and resolve them again, but this is inefficient. Just delete the old outbound SA and it should make everyone happy. Cheers, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmVHI~} [EMAIL PROTECTED] Home Page: http://gondor.apana.org.au

Re: [PATCH 1/2] LSM-IPSec Networking Hooks -- authorizing flow_cache_entry's

2005-07-18 Thread Herbert Xu
call fails, we still return that object, albeit without the reference count. We need to ponder this a bit more. 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

Re: Patch: reduce skb input dev on 64 bit machines

2005-07-26 Thread Herbert Xu
on close, so why not the transmit ring? It doesn't matter as long as the packet makes it to the qdiscs or the transmit ring. It's the cases when it doesn't that we may have problems with dev going away. -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmVHI~} [EMAIL PROTECTED] Home

Re: Resend: [RFC/PATCH] safer ipv4 reassembly

2005-07-31 Thread Herbert Xu
instead of that icky ipc structure. It sure cuts down the size of the patch :) I've only compile-tested this one so please don't apply 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

Re: Resend: [RFC/PATCH] safer ipv4 reassembly

2005-07-31 Thread Herbert Xu
that we know that it is being used. 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

Re: [Bugme-new] [Bug 4952] New: IPSec incompabilty. Linux kernel waits to long to start using new SA for outbound traffic.

2005-08-02 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 majordomo

Re: 2.6.13-rc4 - kernel panic - BUG at net/ipv4/tcp_output.c:918

2005-08-02 Thread Herbert Xu
to handle a decrease in MSS. Actually it seems that most of the code in tcp_tso_acked will work with a negative packets_acked. The only questionable bit is the change made to fackets_out. Thanks, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmVHI~} [EMAIL PROTECTED] Home Page

Re: [Bugme-new] [Bug 4952] New: IPSec incompabilty. Linux kernel waits to long to start using new SA for outbound traffic.

2005-08-03 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

Re: [PATCH 1/2] LSM-IPSec Networking Hooks -- revised flow cache [resend]

2005-08-03 Thread Herbert Xu
On Tue, Aug 02, 2005 at 02:04:41PM -0400, jaegert wrote: Resend of 20 July patch that repaired the flow_cache_lookup authorization (now for 2.6.13-rc4-git4). Thanks for the resend. I'll try to get back to you soon. -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmVHI

Re: [Bugme-new] [Bug 4952] New: IPSec incompabilty. Linux kernel waits to long to start using new SA for outbound traffic.

2005-08-03 Thread Herbert Xu
the associated policy aside from walking through the entire policy list and checking each template? 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.13-rc4 - kernel panic - BUG at net/ipv4/tcp_output.c:918

2005-08-03 Thread Herbert Xu
MSS in this case? 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: 2.6.13-rc4 - kernel panic - BUG at net/ipv4/tcp_output.c:918

2005-08-04 Thread Herbert Xu
On Thu, Aug 04, 2005 at 01:33:29PM +1000, herbert wrote: So I suppose we should reset cwnd_quota after tcp_transmit_skb? Please try this patch to see if this is really the problem or not. Thanks, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmVHI~} [EMAIL PROTECTED] Home

Re: [Bugme-new] [Bug 4952] New: IPSec incompabilty. Linux kernel waits to long to start using new SA for outbound traffic.

2005-08-04 Thread Herbert Xu
if arguably stupid things occur. Alright, let stupid things occur then :) But at least guard it with a sysctl or something. 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: assertion (cnt = tp-packets_out) failed

2005-08-05 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: assertion (cnt = tp-packets_out) failed

2005-08-07 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 diff --git a/net/ipv4/tcp_input.c b/net/ipv4/tcp_input.c --- a/net/ipv4/tcp_input.c +++ b/net/ipv4/tcp_input.c

Re: [RFC] Netlink subscription/multicasting.

2005-08-08 Thread Herbert Xu
on the infrastructure, which may have to wait till netlink2. Therefore, I don't see any problems with removing ability for user-space processes to bind to netlink families that aren't registered in the kernel. Cheers, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmVHI~} [EMAIL

  1   2   3   4   5   6   7   8   9   10   >