aboutsummaryrefslogtreecommitdiffstats
path: root/stacks/lwip_stack/release/script/run_nstack_main.sh
blob: 2bd9e0d496b1d4965f552df8b5a7633ca5c072bc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/bash

DIR=`S=\`readlink "$0"\`; [ -z "$S" ] && S=$0; dirname $S`
cd $DIR

. ./nstack_var.sh
. ./nstack_fun.sh

########################################################
# check parameter

log $LINENO "dir=$DIR"

########################################################
# init netrork:unbind->/* modprobe uio->insmod igb_uio */->bind
init_network

########################################################
# start nstack main
CORE_MASK=1
log $LINENO "start run nstackmain"
log $LINENO "COREMASK=$CORE_MASK, HUGE_DIR=$1, MEM_SIZE=$2, RTP_CORE_MASK=$RTP_CORE_MASK, SLEEP_INTERVAL=$SLEEP_INTERVAL, BIND_CPU=$BIND_CPU"

run_nStackMain $CORE_MASK $1 $2 $RTP_CORE_MASK $SLEEP_INTERVAL $BIND_CPU

exit 0