setup.sh: allow overriding of NRHUGE

Default is still 1024 2MB huge pages, but user can
override this by setting a different value in the
environment.

Signed-off-by: Jim Harris <james.r.harris@intel.com>
Change-Id: I8d189d3a71f474469a44b6eb41b4443591863f3c
This commit is contained in:
Jim Harris 2016-12-14 08:10:12 -07:00 committed by Daniel Verkamp
parent 23fc6682fb
commit a9616e8497

View File

@ -163,7 +163,7 @@ function reset_freebsd {
kldunload nic_uio.ko || true
}
NRHUGE=1024
: ${NRHUGE:=1024}
username=$1
mode=$2