diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-08-03 07:43:47 -0400 |
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-08-04 09:05:13 -0400 |
| commit | 25331def553ad84804e49d63a51e2dde379989a6 (patch) | |
| tree | 36b64016232ca98fe61c1409c358963efa88daeb /lib/command_graph.c | |
| parent | 6b367962158aba5567b7f01a3cad39b2de53828b (diff) | |
zebra: Fix crash when OOM happens.
The hash key function choosen for mac vni's would tend
to clump the key value to the same number. Use a better
hash key generator to spread the hash values out.
A bad hash key might lead to O(2^n) memory consumption
because the hash size is doubled, each time a backet
exceeds a predefined threshold. This quickly leads
to OOM. Fixing this issue by fixing the hash
key generation to actually spread the keys out.
Ticket: CM-17412
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'lib/command_graph.c')
0 files changed, 0 insertions, 0 deletions
