From: Jason Wang Date: Wed, 23 Jan 2013 03:59:13 +0000 (+0000) Subject: tuntap: limit the number of flow caches X-Git-Tag: v3.8-rc6~20^2~19 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b8732fb7f8920e2f6216d2b67faf8b0b0d67ca81;p=pandora-kernel.git tuntap: limit the number of flow caches We create new flow caches when a new flow is identified by tuntap, This may lead some issues: - userspace may produce a huge amount of short live flows to exhaust host memory - the unlimited number of flow caches may produce a long list which increase the time in the linear searching Solve this by introducing a limit of total number of flow caches. Cc: Stephen Hemminger Signed-off-by: Jason Wang Signed-off-by: David S. Miller --- Reading git-diff-tree failed