Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP4:GA
openvswitch-dpdk.10750
0007-cmap-Fix-hashing-in-cmap_find_protected.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0007-cmap-Fix-hashing-in-cmap_find_protected.patch of Package openvswitch-dpdk.10750
From a2d1a08c8d2efae938683bcbf6b66fba19ace103 Mon Sep 17 00:00:00 2001 From: Zang MingJie <zealot0630@gmail.com> Date: Mon, 24 Dec 2018 17:12:19 +0800 Subject: [PATCH 07/14] cmap: Fix hashing in cmap_find_protected(). cmap_find_protected calculated wrong h2 hash which causing entries with duplicated id inserted into the cmap. Reported-at: https://mail.openvswitch.org/pipermail/ovs-discuss/2018-December/047945.html Signed-off-by: Zang MingJie <zealot0630@gmail.com> Signed-off-by: Ben Pfaff <blp@ovn.org> --- lib/cmap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cmap.c b/lib/cmap.c index 7a54ea6ab..342531115 100644 --- a/lib/cmap.c +++ b/lib/cmap.c @@ -490,7 +490,7 @@ cmap_find_protected(const struct cmap *cmap, uint32_t hash) { struct cmap_impl *impl = cmap_get_impl(cmap); uint32_t h1 = rehash(impl, hash); - uint32_t h2 = other_hash(hash); + uint32_t h2 = other_hash(h1); struct cmap_node *node; node = cmap_find_bucket_protected(impl, hash, h1); -- 2.21.0
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor