X-Git-Url: https://gerrit.fd.io/r/gitweb?p=csit.git;a=blobdiff_plain;f=resources%2Flibraries%2Fbash%2Ffunction%2Fdpdk.sh;h=f013683659e6aac64510f53cd94548f3669739a9;hp=bf1e8e337e6eeda9da83d76601c6c5c447898a1d;hb=1cd46e5b0125f405af0aa6c9aa715f543428f1d7;hpb=9b2e7742555b773b6755833e688265b858ce0f6f 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