diff options
author | Jason Wang <jasowang@redhat.com> | 2013-01-23 03:59:13 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-01-23 13:47:06 -0500 |
commit | b8732fb7f8920e2f6216d2b67faf8b0b0d67ca81 (patch) | |
tree | 9e4f5052cea423ec1302e2175211d58adee0e300 /drivers/net/ethernet/realtek/r8169.c | |
parent | edfb6a148ce62e5e19354a1dcd9a34e00815c2a1 (diff) | |
download | linux-b8732fb7f8920e2f6216d2b67faf8b0b0d67ca81.tar.bz2 |
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>
Diffstat (limited to 'drivers/net/ethernet/realtek/r8169.c')
0 files changed, 0 insertions, 0 deletions