aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/plugins/dpdk/main.c1
-rw-r--r--src/vppinfra/linux/mem.c2
2 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/dpdk/main.c b/src/plugins/dpdk/main.c
index 2bea10185cd..d22b671e008 100644
--- a/src/plugins/dpdk/main.c
+++ b/src/plugins/dpdk/main.c
@@ -125,6 +125,7 @@ dpdk_early_init (vlib_main_t *vm)
check_hugetlb:
alloc.flags = CLIB_MEM_VM_F_SHARED | CLIB_MEM_VM_F_HUGETLB | CLIB_MEM_VM_F_HUGETLB_PREALLOC;
alloc.size = 1;
+ alloc.name = "dpdk_early_init";
if ((err = clib_mem_vm_ext_alloc (&alloc)))
{
diff --git a/src/vppinfra/linux/mem.c b/src/vppinfra/linux/mem.c
index eb4312b2725..253ae87845b 100644
--- a/src/vppinfra/linux/mem.c
+++ b/src/vppinfra/linux/mem.c
@@ -91,6 +91,8 @@ clib_mem_create_hugetlb_fd (char *name, int *fdp)
char template[] = "/tmp/hugepage_mount.XXXXXX";
u8 *filename;
+ ASSERT (name);
+
if (memfd_hugetlb_supported)
{
if ((fd = memfd_create (name, MFD_HUGETLB)) != -1)