2 * Copyright (c) 2014 Nicira, Inc.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at:
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
25 #define OVS_CORE_UNSPEC INT_MAX
26 #define OVS_NUMA_UNSPEC INT_MAX
30 void ovs_numa_init(void);
31 bool ovs_numa_numa_id_is_valid(int numa_id);
32 bool ovs_numa_core_id_is_valid(int core_id);
33 int ovs_numa_get_n_numas(void);
34 void ovs_numa_set_cpu_mask(const char *cmask);
35 int ovs_numa_get_n_cores(void);
36 int ovs_numa_get_numa_id(int core_id);
37 int ovs_numa_get_n_cores_on_numa(int numa_id);
38 int ovs_numa_get_n_unpinned_cores_on_numa(int numa_id);
39 bool ovs_numa_try_pin_core_specific(int core_id);
40 int ovs_numa_get_unpinned_core_any(void);
41 int ovs_numa_get_unpinned_core_on_numa(int numa_id);
42 void ovs_numa_unpin_core(int core_id);
53 ovs_numa_numa_id_is_valid(int numa_id OVS_UNUSED)
59 ovs_numa_core_id_is_valid(int core_id OVS_UNUSED)
65 ovs_numa_set_cpu_mask(const char *cmask OVS_UNUSED)
71 ovs_numa_get_n_numas(void)
73 return OVS_NUMA_UNSPEC;
77 ovs_numa_get_n_cores(void)
79 return OVS_CORE_UNSPEC;
83 ovs_numa_get_numa_id(int core_id OVS_UNUSED)
85 return OVS_NUMA_UNSPEC;
89 ovs_numa_get_n_cores_on_numa(int numa_id OVS_UNUSED)
91 return OVS_CORE_UNSPEC;
95 ovs_numa_get_n_unpinned_cores_on_numa(int numa_id OVS_UNUSED)
97 return OVS_CORE_UNSPEC;
101 ovs_numa_try_pin_core_specific(int core_id OVS_UNUSED)
107 ovs_numa_get_unpinned_core_any(void)
109 return OVS_CORE_UNSPEC;
113 ovs_numa_get_unpinned_core_on_numa(int numa_id OVS_UNUSED)
115 return OVS_CORE_UNSPEC;
119 ovs_numa_unpin_core(int core_id OVS_UNUSED)
124 #endif /* __linux__ */
125 #endif /* ovs-thead.h */