flow: delayed deletion of flow cache entries
authorTimo Teräs <timo.teras@iki.fi>
Wed, 7 Apr 2010 00:30:07 +0000 (00:30 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 7 Apr 2010 10:43:20 +0000 (03:43 -0700)
commit8e4795605d1e1b39113818ad7c147b8a867a1f6a
treef02854e92aa0c6e67db85beb9fda4148170a5acb
parent285ead175c5dd5075cab5b6c94f35a3e6c0a3ae6
flow: delayed deletion of flow cache entries

Speed up lookups by freeing flow cache entries later. After
virtualizing flow cache entry operations, the flow cache may now
end up calling policy or bundle destructor which can be slowish.

As gc_list is more effective with double linked list, the flow cache
is converted to use common hlist and list macroes where appropriate.

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