ovs-numa: Remove non-linux stubs.
authorDaniele Di Proietto <diproiettod@vmware.com>
Tue, 7 Jun 2016 00:05:49 +0000 (17:05 -0700)
committerDaniele Di Proietto <diproiettod@vmware.com>
Tue, 7 Jun 2016 18:15:01 +0000 (11:15 -0700)
commit93ce57623f67547d4873889c77ec5250728b304f
treee89ef9ffd2ecaaa849b2edc08c2d5cd944c4284a
parent24cc3f0c6614313933a01ce8d5be47f36375c5a3
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>
lib/automake.mk
lib/ovs-numa.c
lib/ovs-numa.h