numam-dpdk/lib/eal/freebsd/eal_memalloc.c
Bruce Richardson 99a2dd955f lib: remove librte_ prefix from directory names
There is no reason for the DPDK libraries to all have 'librte_' prefix on
the directory names. This prefix makes the directory names longer and also
makes it awkward to add features referring to individual libraries in the
build - should the lib names be specified with or without the prefix.
Therefore, we can just remove the library prefix and use the library's
unique name as the directory name, i.e. 'eal' rather than 'librte_eal'

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
2021-04-21 14:04:09 +02:00

87 lines
1.6 KiB
C

/* SPDX-License-Identifier: BSD-3-Clause
* Copyright(c) 2017-2018 Intel Corporation
*/
#include <inttypes.h>
#include <rte_errno.h>
#include <rte_log.h>
#include <rte_memory.h>
#include "eal_memalloc.h"
int
eal_memalloc_alloc_seg_bulk(struct rte_memseg **ms __rte_unused,
int __rte_unused n_segs, size_t __rte_unused page_sz,
int __rte_unused socket, bool __rte_unused exact)
{
RTE_LOG(ERR, EAL, "Memory hotplug not supported on FreeBSD\n");
return -1;
}
struct rte_memseg *
eal_memalloc_alloc_seg(size_t __rte_unused page_sz, int __rte_unused socket)
{
RTE_LOG(ERR, EAL, "Memory hotplug not supported on FreeBSD\n");
return NULL;
}
int
eal_memalloc_free_seg(struct rte_memseg *ms __rte_unused)
{
RTE_LOG(ERR, EAL, "Memory hotplug not supported on FreeBSD\n");
return -1;
}
int
eal_memalloc_free_seg_bulk(struct rte_memseg **ms __rte_unused,
int n_segs __rte_unused)
{
RTE_LOG(ERR, EAL, "Memory hotplug not supported on FreeBSD\n");
return -1;
}
int
eal_memalloc_sync_with_primary(void)
{
RTE_LOG(ERR, EAL, "Memory hotplug not supported on FreeBSD\n");
return -1;
}
int
eal_memalloc_get_seg_fd(int list_idx __rte_unused, int seg_idx __rte_unused)
{
return -ENOTSUP;
}
int
eal_memalloc_set_seg_fd(int list_idx __rte_unused, int seg_idx __rte_unused,
int fd __rte_unused)
{
return -ENOTSUP;
}
int
eal_memalloc_set_seg_list_fd(int list_idx __rte_unused, int fd __rte_unused)
{
return -ENOTSUP;
}
int
eal_memalloc_get_seg_fd_offset(int list_idx __rte_unused,
int seg_idx __rte_unused, size_t *offset __rte_unused)
{
return -ENOTSUP;
}
int eal_memalloc_cleanup(void)
{
return 0;
}
int
eal_memalloc_init(void)
{
return 0;
}