[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20070430.002643.68156452.davem@davemloft.net>
Date: Mon, 30 Apr 2007 00:26:43 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: dada1@...mosbay.com
Cc: zacco@...hu, baruch@...en.org, netdev@...r.kernel.org
Subject: Re: many sockets, slow sendto
From: Eric Dumazet <dada1@...mosbay.com>
Date: Wed, 21 Mar 2007 23:12:40 +0100
> [PATCH] INET : IPV4 UDP lookups converted to a 2 pass algo
>
> Some people want to have many UDP sockets, binded to a single port but many
> different addresses. We currently hash all those sockets into a single chain.
> Processing of incoming packets is very expensive, because the whole chain must
> be examined to find the best match.
>
> I chose in this patch to hash UDP sockets with a hash function that take into
> account both their port number and address : This has a drawback because we
> need two lookups : one with a given address, one with a wildcard (null) address.
>
> Signed-off-by: Eric Dumazet <dada1@...mosbay.com>
Eric, I've applied this, thanks again.
Could I trouble you to cook up an ipv6 version of this patch?
Thanks a lot.
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists