aboutsummaryrefslogtreecommitdiffstats
path: root/resources/libraries/bash
diff options
context:
space:
mode:
authorViliam Luc <vluc@cisco.com>2022-07-01 10:53:51 +0200
committerTibor Frank <tifrank@cisco.com>2022-07-27 07:19:30 +0000
commit1cd46e5b0125f405af0aa6c9aa715f543428f1d7 (patch)
treeeeafceee75c167dd25b4ce8f5eaa4fc078b7dcdd /resources/libraries/bash
parent9b2e7742555b773b6755833e688265b858ce0f6f (diff)
fix: start testpmd and l3fwd in 3 cycles
Signed-off-by: Viliam Luc <vluc@cisco.com> Change-Id: I935ee5cf5bd7e760ef29fdc338f981e4e7cc333f
Diffstat (limited to 'resources/libraries/bash')
-rw-r--r--resources/libraries/bash/function/dpdk.sh6
1 files changed, 2 insertions, 4 deletions
diff --git a/resources/libraries/bash/function/dpdk.sh b/resources/libraries/bash/function/dpdk.sh
index bf1e8e337e..f013683659 100644
--- a/resources/libraries/bash/function/dpdk.sh
+++ b/resources/libraries/bash/function/dpdk.sh
@@ -264,8 +264,7 @@ function dpdk_l3fwd_check () {
for attempt in {1..60}; do
echo "Checking if l3fwd state is ok, attempt nr ${attempt}"
- if fgrep "Port 0 Link up" screenlog.0 && \
- fgrep "Port 1 Link up" screenlog.0; then
+ if fgrep "Link up" screenlog.0; then
cat screenlog.0
dpdk_l3fwd_pid
exit 0
@@ -353,8 +352,7 @@ function dpdk_testpmd_check () {
for attempt in {1..60}; do
echo "Checking if testpmd links state changed, attempt nr ${attempt}"
- if fgrep "Port 0: link state change event" screenlog.0 && \
- fgrep "Port 1: link state change event" screenlog.0; then
+ if fgrep "link state change event" screenlog.0; then
cat screenlog.0
exit 0
fi