From: Eric Dumazet Date: Mon, 30 Apr 2007 07:26:00 +0000 (-0700) Subject: [PATCH] INET : IPV4 UDP lookups converted to a 2 pass algo X-Git-Tag: v2.6.22-rc1~1107^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6aaf47fa48d3c44280810b1b470261d340e4ed87;p=pandora-kernel.git [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 Signed-off-by: David S. Miller --- Reading git-diff-tree failed