Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ycai
simbricks
Commits
ebdbd3b0
Commit
ebdbd3b0
authored
Sep 13, 2020
by
Antoine Kaufmann
Browse files
experiments: add option to pass pcap file for net_wire
parent
5134bdd4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
experiments/common-functions.sh
experiments/common-functions.sh
+8
-1
No files found.
experiments/common-functions.sh
View file @
ebdbd3b0
...
@@ -159,10 +159,17 @@ run_i40e_bm() {
...
@@ -159,10 +159,17 @@ run_i40e_bm() {
# - Instance name
# - Instance name
# - sim instance 1
# - sim instance 1
# - sim instance 2
# - sim instance 2
# - [optional: pcap filename]
run_wire
()
{
run_wire
()
{
echo
Starting wire
$1
echo
Starting wire
$1
if
[
-z
"
$4
"
]
;
then
pcap
=
else
pcap
=
"
$OUTDIR
/
$4
.pcap"
fi
$EHSIM_BASE
/net_wire/net_wire
\
$EHSIM_BASE
/net_wire/net_wire
\
$OUTDIR
/eth.
$2
$OUTDIR
/eth.
$3
&>
$OUTDIR
/wire.
$1
.log &
$OUTDIR
/eth.
$2
$OUTDIR
/eth.
$3
$pcap
&>
$OUTDIR
/wire.
$1
.log &
pid
=
$!
pid
=
$!
ALL_PIDS
=
"
$ALL_PIDS
$pid
"
ALL_PIDS
=
"
$ALL_PIDS
$pid
"
return
$pid
return
$pid
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment