summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Marchand <david.marchand@redhat.com>2019-07-31 14:07:33 +0200
committerKevin Traynor <ktraynor@redhat.com>2019-09-13 10:37:20 +0100
commit01faa37f26bd8c5bcfc960bc5aa31474957b69a4 (patch)
tree45212ff7c5c29d5dcff5e2e1be43fbf092d643a1
parent53f8964a2c076e287a9e4a865d49ee682400a96c (diff)
downloaddpdk-stable-01faa37f26bd8c5bcfc960bc5aa31474957b69a4.zip
dpdk-stable-01faa37f26bd8c5bcfc960bc5aa31474957b69a4.tar.gz
dpdk-stable-01faa37f26bd8c5bcfc960bc5aa31474957b69a4.tar.xz
eal: hide internal function
[ upstream commit ba5d78da70dfeb23f92027cb4145066e5271c478 ] This function has never been used outside of this code unit. Mark it static and remove it from the eal internal header. Fixes: 9e29251b2afa ("eal: thread affinity API") Signed-off-by: David Marchand <david.marchand@redhat.com>
-rw-r--r--lib/librte_eal/common/eal_common_thread.c3
-rw-r--r--lib/librte_eal/common/eal_thread.h11
2 files changed, 2 insertions, 12 deletions
diff --git a/lib/librte_eal/common/eal_common_thread.c b/lib/librte_eal/common/eal_common_thread.c
index 14f206c..8388efb 100644
--- a/lib/librte_eal/common/eal_common_thread.c
+++ b/lib/librte_eal/common/eal_common_thread.c
@@ -38,7 +38,8 @@ rte_lcore_has_role(unsigned int lcore_id, enum rte_lcore_role_t role)
return cfg->lcore_role[lcore_id] == role;
}
-int eal_cpuset_socket_id(rte_cpuset_t *cpusetp)
+static int
+eal_cpuset_socket_id(rte_cpuset_t *cpusetp)
{
unsigned cpu = 0;
int socket_id = SOCKET_ID_ANY;
diff --git a/lib/librte_eal/common/eal_thread.h b/lib/librte_eal/common/eal_thread.h
index 2d30b19..0d0bad0 100644
--- a/lib/librte_eal/common/eal_thread.h
+++ b/lib/librte_eal/common/eal_thread.h
@@ -35,17 +35,6 @@ void eal_thread_init_master(unsigned lcore_id);
unsigned eal_cpu_socket_id(unsigned cpu_id);
/**
- * Get the NUMA socket id from cpuset.
- * This function is private to EAL.
- *
- * @param cpusetp
- * The point to a valid cpu set.
- * @return
- * socket_id or SOCKET_ID_ANY
- */
-int eal_cpuset_socket_id(rte_cpuset_t *cpusetp);
-
-/**
* Default buffer size to use with eal_thread_dump_affinity()
*/
#define RTE_CPU_AFFINITY_STR_LEN 256