Jason Wang b8732fb7f8 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 <stephen@networkplumber.org>
Signed-off-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2013-01-23 13:47:06 -05:00
..
2012-12-03 11:16:10 -08:00
2012-12-15 17:14:38 -08:00
2012-11-28 11:39:22 -05:00
2012-12-03 11:17:06 -08:00
2012-12-15 17:14:38 -08:00
2013-01-17 16:40:35 -05:00
2013-01-23 13:47:06 -05:00
2013-01-03 01:58:13 -08:00