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 int ovs_numa_get_n_cores(void);
35 int ovs_numa_get_n_cores_on_numa(int numa_id);
36 int ovs_numa_get_n_unpinned_cores_on_numa(int numa_id);
37 bool ovs_numa_try_pin_core_specific(int core_id);
38 int ovs_numa_get_unpinned_core_any(void);
39 int ovs_numa_get_unpinned_core_on_numa(int numa_id);
40 void ovs_numa_unpin_core(int core_id);
51 ovs_numa_numa_id_is_valid(int numa_id OVS_UNUSED)
57 ovs_numa_core_id_is_valid(int core_id OVS_UNUSED)
63 ovs_numa_get_n_numas(void)
65 return OVS_NUMA_UNSPEC;
69 ovs_numa_get_n_cores(void)
71 return OVS_CORE_UNSPEC;
75 ovs_numa_get_n_cores_on_numa(int numa_id OVS_UNUSED)
77 return OVS_CORE_UNSPEC;
81 ovs_numa_get_n_unpinned_cores_on_numa(int numa_id OVS_UNUSED)
83 return OVS_CORE_UNSPEC;
87 ovs_numa_try_pin_core_specific(int core_id OVS_UNUSED)
93 ovs_numa_get_unpinned_core_any(void)
95 return OVS_CORE_UNSPEC;
99 ovs_numa_get_unpinned_core_on_numa(int numa_id OVS_UNUSED)
101 return OVS_CORE_UNSPEC;
105 ovs_numa_unpin_core(int core_id OVS_UNUSED)
110 #endif /* __linux__ */
111 #endif /* ovs-thead.h */