]> git.puffer.fish Git - mirror/frr.git/commit
zebra: Fix crash when OOM happens.
authorDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 3 Aug 2017 11:43:47 +0000 (07:43 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 4 Aug 2017 13:05:13 +0000 (09:05 -0400)
commit25331def553ad84804e49d63a51e2dde379989a6
tree36b64016232ca98fe61c1409c358963efa88daeb
parent6b367962158aba5567b7f01a3cad39b2de53828b
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>
zebra/zebra_vxlan.c