[ovs-git] [openvswitch/ovs] ee3ac7: util: Make xmalloc_cacheline() allocate full cache...
GitHub
noreply at github.com
Wed Nov 29 17:09:10 UTC 2017
Branch: refs/heads/master
Home: https://github.com/openvswitch/ovs
Commit: ee3ac719f204bd5827aaf7f9237c8f7c1cdb60c3
https://github.com/openvswitch/ovs/commit/ee3ac719f204bd5827aaf7f9237c8f7c1cdb60c3
Author: Ben Pfaff <blp at ovn.org>
Date: 2017-11-29 (Wed, 29 Nov 2017)
Changed paths:
M lib/util.c
Log Message:
-----------
util: Make xmalloc_cacheline() allocate full cachelines.
Until now, xmalloc_cacheline() has provided its caller memory that does not
share a cache line, but when posix_memalign() is not available it did not
provide a full cache line; instead, it returned memory that was offset 8
bytes into a cache line. This makes it hard for clients to design
structures to be cache line-aligned. This commit changes
xmalloc_cacheline() to always return a full cache line instead of memory
offset into one.
Signed-off-by: Ben Pfaff <blp at ovn.org>
Acked-by: Bhanuprakash Bodireddy <Bhanuprakash.bodireddy at intel.com>
Tested-by: Bhanuprakash Bodireddy <Bhanuprakash.bodireddy at intel.com>
Tested-at: https://mail.openvswitch.org/pipermail/ovs-dev/2017-November/341362.html
More information about the git
mailing list