| commit | c8e7b8959051bf525183bdbff605e54b4b532e2c | [log] [tgz] |
|---|---|---|
| author | Stephen Hemminger <shemminger@vyatta.com> | Fri Aug 27 14:12:54 2010 -0700 |
| committer | Paul Jakma <paul@quagga.net> | Mon Mar 21 13:30:54 2011 +0000 |
| tree | af9af45c64164f7e7ee9aec5575837624e23df65 | |
| parent | 6392aa83c4f895ebbd23817c68d9b0da0de2e0f8 [diff] |
bgpd: use Jenkins hash for BGP transit, cluster and attr hashes
* bgp_attr.c: I observed while doing some debugging that even for simple
tests there was a lot of hash collisions for BGP attributes. Switch to
using Jhash rather than additive hashing. Probably overkill, but the
function is fast and available.
({attrhash,cluster,transit}_hask_key_make) convert to Jenkins hash,
instead of additive hash.