security: update session create API
[dpdk.git] / app / test / has-hugepage.sh
1 #! /bin/sh
2 # SPDX-License-Identifier: BSD-3-Clause
3 # Copyright 2020 Mellanox Technologies, Ltd
4
5 if [ "$(uname)" = "Linux" ] ; then
6         cat /proc/sys/vm/nr_hugepages || echo 0
7 elif [ "$(uname)" = "FreeBSD" ] ; then
8         echo 1 # assume FreeBSD always has hugepages
9 else
10         echo 0
11 fi