projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4e4272d
)
selftests: forwarding: Allow to get netdev interfaces names from commandline
author
Jiri Pirko
<
[email protected]
>
Wed, 28 Feb 2018 10:25:15 +0000
(12:25 +0200)
committer
David S. Miller
<
[email protected]
>
Wed, 28 Feb 2018 17:25:48 +0000
(12:25 -0500)
Signed-off-by: Jiri Pirko <
[email protected]
>
Signed-off-by: Ido Schimmel <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
tools/testing/selftests/net/forwarding/lib.sh
patch
|
blob
|
history
diff --git
a/tools/testing/selftests/net/forwarding/lib.sh
b/tools/testing/selftests/net/forwarding/lib.sh
index 083a16eb78037b90915b8e829b20e626d705b3cc..3385ba76ac19c2290b4f774a374b9d4be80745dc 100644
(file)
--- a/
tools/testing/selftests/net/forwarding/lib.sh
+++ b/
tools/testing/selftests/net/forwarding/lib.sh
@@
-45,6
+45,21
@@
if [[ ! -v NUM_NETIFS ]]; then
exit 0
fi
+##############################################################################
+# Command line options handling
+
+count=0
+
+while [[ $# -gt 0 ]]; do
+ if [[ "$count" -eq "0" ]]; then
+ unset NETIFS
+ declare -A NETIFS
+ fi
+ count=$((count + 1))
+ NETIFS[p$count]="$1"
+ shift
+done
+
##############################################################################
# Network interfaces configuration