diff options
author | Daniele Di Proietto <diproiettod@vmware.com> | 2016-06-06 17:05:49 -0700 |
---|---|---|
committer | Daniele Di Proietto <diproiettod@vmware.com> | 2016-06-07 11:15:01 -0700 |
commit | 93ce57623f67547d4873889c77ec5250728b304f (patch) | |
tree | e89ef9ffd2ecaaa849b2edc08c2d5cd944c4284a /lib/dpif-netdev.c | |
parent | 24cc3f0c6614313933a01ce8d5be47f36375c5a3 (diff) | |
download | openvswitch-93ce57623f67547d4873889c77ec5250728b304f.tar.gz |
ovs-numa: Remove non-linux stubs.
Instead of having static inline stubs for non linux platform we can use
the implementations in ovs-numa.c. With one small change to
ovs_numa_dump_cores_on_numa(), they will behave exactly like the
stubs for the non-linux case, because 'found_numa_and_core' will be
false and the socket and cpu hmaps will be empty.
There are a few places where conditional compilation is required: the
code that parses the linux specific sysfs entries and its dependencies.
It requires opendir() and readdir() and doesn't make sense outside of
linux anyway.
This change is required to have a cross-platform ovs-numa dummy
implementation for testing.
Signed-off-by: Daniele Di Proietto <diproiettod@vmware.com>
Acked-by: Ilya Maximets <i.maximets@samsung.com>
Diffstat (limited to 'lib/dpif-netdev.c')
0 files changed, 0 insertions, 0 deletions