diff options
author | Hannes Frederic Sowa <[email protected]> | 2013-03-15 11:32:30 +0000 |
---|---|---|
committer | David S. Miller <[email protected]> | 2013-03-19 10:28:36 -0400 |
commit | 5a3da1fe9561828d0ca7eca664b16ec2b9bf0055 (patch) | |
tree | b7bbaabf1271af7d912e9bdbb7f5810d2d0a5d3e /lib/mpi/mpi-internal.h | |
parent | 271648b4c610eed540daaf9ff366209825757565 (diff) |
inet: limit length of fragment queue hash table bucket lists
This patch introduces a constant limit of the fragment queue hash
table bucket list lengths. Currently the limit 128 is choosen somewhat
arbitrary and just ensures that we can fill up the fragment cache with
empty packets up to the default ip_frag_high_thresh limits. It should
just protect from list iteration eating considerable amounts of cpu.
If we reach the maximum length in one hash bucket a warning is printed.
This is implemented on the caller side of inet_frag_find to distinguish
between the different users of inet_fragment.c.
I dropped the out of memory warning in the ipv4 fragment lookup path,
because we already get a warning by the slab allocator.
Cc: Eric Dumazet <[email protected]>
Cc: Jesper Dangaard Brouer <[email protected]>
Signed-off-by: Hannes Frederic Sowa <[email protected]>
Acked-by: Eric Dumazet <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-internal.h')
0 files changed, 0 insertions, 0 deletions