vppinfra: Only prealloc hugepages on Linux 73/40273/2
authorTom Jones <thj@freebsd.org>
Fri, 26 Jan 2024 17:34:51 +0000 (17:34 +0000)
committerDamjan Marion <dmarion@0xa5.net>
Tue, 13 Feb 2024 16:16:43 +0000 (16:16 +0000)
commitcb3372ddc87ef35a74da4dabc2046f760e386b05
treed31465f4fd87609a19f92e14fd21263ccacdec44
parent000b5e1b7169031d70d61b3e9dba9b979da8e9d9
vppinfra: Only prealloc hugepages on Linux

FreeBSD doesn't support sysfs or preallocating hugepages directly.  In
lieu of refactoring clib_sysfs calls place this one behind an #ifdef
linux.

Type: improvement
Change-Id: I4079ca70175e4cec44d913db2b0407a3ca6306c9
Signed-off-by: Tom Jones <thj@freebsd.org>
src/vppinfra/pmalloc.c