]> git.proxmox.com Git - ceph.git/blame - ceph/src/spdk/dpdk/lib/librte_eal/bsdapp/eal/eal_memalloc.c
update download target update for octopus release
[ceph.git] / ceph / src / spdk / dpdk / lib / librte_eal / bsdapp / eal / eal_memalloc.c
CommitLineData
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
12int
13eal_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
21struct rte_memseg *
22eal_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
28int
29eal_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
35int
36eal_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
43int
44eal_memalloc_sync_with_primary(void)
45{
46 RTE_LOG(ERR, EAL, "Memory hotplug not supported on FreeBSD\n");
47 return -1;
48}
49
50int
51eal_memalloc_init(void)
52{
53 return 0;
54}