]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
gre: optimize hash lookup
authorTimo Teras <timo.teras@iki.fi>
Tue, 27 Jan 2009 04:56:10 +0000 (20:56 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 27 Jan 2009 04:56:10 +0000 (20:56 -0800)
commitafcf12422ec8236dc8b9238fef7a475876eea8da
tree26210e243faddf54da2b0c35cee81c0b27b6734b
parent3eacdf58c2c0b9507afedfc19108e98b992c31e4
gre: optimize hash lookup

Instead of keeping candidate tunnel device from all categories,
keep only one candidate with best score. This optimizes stack
usage and speeds up exit code.

Signed-off-by: Timo Teras <timo.teras@iki.fi>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/ip_gre.c