flow: structurize flow cache
authorTimo Teräs <timo.teras@iki.fi>
Wed, 31 Mar 2010 00:17:06 +0000 (00:17 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 2 Apr 2010 02:41:36 +0000 (19:41 -0700)
commitd7997fe1f4584da12e9c29fb682c18e9bdc13b73
treec1a5e01d4e9d72dd0a4cc33521a0ad1074afaec2
parentea2dea9dacc256fe927857feb423872051642ae7
flow: structurize flow cache

Group all per-cpu data to one structure instead of having many
globals. Also prepare the internals so that we can have multiple
instances of the flow cache if needed.

Only the kmem_cache is left as a global as all flow caches share
the same element size, and benefit from using a common cache.

Signed-off-by: Timo Teras <timo.teras@iki.fi>
Acked-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/flow.c