Add rotates to v6 worker hash to prevent SIP/DIP synchronizing.

Change-Id: Ibe8ec6271b3f04290a60c0145e59a01d3130500f
Signed-off-by: Todd Foggoa (tfoggoa) <tfoggoa@cisco.com>
This commit is contained in:
Bud Grise
2016-02-24 16:14:22 -05:00
committed by Gerrit Code Review
parent dc03cf4eb4
commit 8fbd37edac

View File

@ -963,9 +963,9 @@ static inline u64 ipv6_get_key (ip6_header_t *ip)
u64 hash_key;
hash_key = ip->src_address.as_u64[0] ^
ip->src_address.as_u64[1] ^
ip->dst_address.as_u64[0] ^
ip->dst_address.as_u64[1] ^
rotate_left(ip->src_address.as_u64[1],13) ^
rotate_left(ip->dst_address.as_u64[0],26) ^
rotate_left(ip->dst_address.as_u64[1],39) ^
ip->protocol;
return hash_key;