]>
Commit | Line | Data |
---|---|---|
11fdf7f2 TL |
1 | /* SPDX-License-Identifier: BSD-3-Clause |
2 | * Copyright(c) 2017-2018 Intel Corporation | |
3 | */ | |
4 | ||
5 | #include <inttypes.h> | |
6 | ||
7 | #include <rte_log.h> | |
8 | #include <rte_memory.h> | |
9 | ||
10 | #include "eal_memalloc.h" | |
11 | ||
12 | int | |
13 | eal_memalloc_alloc_seg_bulk(struct rte_memseg **ms __rte_unused, | |
14 | int __rte_unused n_segs, size_t __rte_unused page_sz, | |
15 | int __rte_unused socket, bool __rte_unused exact) | |
16 | { | |
17 | RTE_LOG(ERR, EAL, "Memory hotplug not supported on FreeBSD\n"); | |
18 | return -1; | |
19 | } | |
20 | ||
21 | struct rte_memseg * | |
22 | eal_memalloc_alloc_seg(size_t __rte_unused page_sz, int __rte_unused socket) | |
23 | { | |
24 | RTE_LOG(ERR, EAL, "Memory hotplug not supported on FreeBSD\n"); | |
25 | return NULL; | |
26 | } | |
27 | ||
28 | int | |
29 | eal_memalloc_free_seg(struct rte_memseg *ms __rte_unused) | |
30 | { | |
31 | RTE_LOG(ERR, EAL, "Memory hotplug not supported on FreeBSD\n"); | |
32 | return -1; | |
33 | } | |
34 | ||
35 | int | |
36 | eal_memalloc_free_seg_bulk(struct rte_memseg **ms __rte_unused, | |
37 | int n_segs __rte_unused) | |
38 | { | |
39 | RTE_LOG(ERR, EAL, "Memory hotplug not supported on FreeBSD\n"); | |
40 | return -1; | |
41 | } | |
42 | ||
43 | int | |
44 | eal_memalloc_sync_with_primary(void) | |
45 | { | |
46 | RTE_LOG(ERR, EAL, "Memory hotplug not supported on FreeBSD\n"); | |
47 | return -1; | |
48 | } | |
49 | ||
50 | int | |
51 | eal_memalloc_init(void) | |
52 | { | |
53 | return 0; | |
54 | } |