git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
mem: quiet base address hint warning if not requested
[dpdk.git]
/
lib
/
eal
/
freebsd
/
eal_hugepage_info.c
diff --git
a/lib/eal/freebsd/eal_hugepage_info.c
b/lib/eal/freebsd/eal_hugepage_info.c
index
408f054
..
9dbe375
100644
(file)
--- a/
lib/eal/freebsd/eal_hugepage_info.c
+++ b/
lib/eal/freebsd/eal_hugepage_info.c
@@
-90,6
+90,10
@@
eal_hugepage_info_init(void)
RTE_LOG(ERR, EAL, "could not open "CONTIGMEM_DEV"\n");
return -1;
}
RTE_LOG(ERR, EAL, "could not open "CONTIGMEM_DEV"\n");
return -1;
}
+ if (flock(fd, LOCK_EX | LOCK_NB) < 0) {
+ RTE_LOG(ERR, EAL, "could not lock memory. Is another DPDK process running?\n");
+ return -1;
+ }
if (buffer_size >= 1<<30)
RTE_LOG(INFO, EAL, "Contigmem driver has %d buffers, each of size %dGB\n",
if (buffer_size >= 1<<30)
RTE_LOG(INFO, EAL, "Contigmem driver has %d buffers, each of size %dGB\n",