Skip to content
Snippets Groups Projects
Commit 9badcf74 authored by Peter Cai's avatar Peter Cai
Browse files

Make NIC configurable

parent 02147f48
No related branches found
No related tags found
No related merge requests found
NET_IF=eno3d1
NET_IF_MOD=mlx4
...@@ -5,14 +5,16 @@ function error() { ...@@ -5,14 +5,16 @@ function error() {
exit 1 exit 1
} }
source $EXP_ROOT/configs/nic.sh
cfgfile=$HOME/.irq.sh.config cfgfile=$HOME/.irq.sh.config
cntfile=$HOME/.irq.sh.count cntfile=$HOME/.irq.sh.count
# use tilly01 as default... # use tilly01 as default...
if ! [ -f $cfgfile ]; then if ! [ -f $cfgfile ]; then
cat > $cfgfile <<EOF cat > $cfgfile <<EOF
mod: mlx4 mod: $NET_IF_MOD
nic: eno3d1 nic: $NET_IF
EOF EOF
echo -n "async irq:" >> $cfgfile echo -n "async irq:" >> $cfgfile
echo -n " 69" >> $cfgfile echo -n " 69" >> $cfgfile
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment