diff mbox series

[CLOUD-DEV,v1,2/10] example: l2fwd_simple: disable socket pktios

Message ID 1503468007-12911-3-git-send-email-odpbot@yandex.ru
State Superseded
Headers show
Series [CLOUD-DEV,v1,1/10] framework: modular: extern SUBSYSTEM_FOREACH_TEMPLATE | expand

Commit Message

Github ODP bot Aug. 23, 2017, 5:59 a.m. UTC
From: Yi He <yi.he@linaro.org>


l2fwd_simple_run.sh waits 1 second to allow test
application to forward more than 10 packets. It
works in case pktios are listed statically and
pcap takes precedence over socket pktios.

But with dynamically registered pktios the order
was not guaranteed and socket pktios may take
precedence over pcap pktio, which spent more time
in open operation and caused this test failed.

Disable the socket pktios since they mistakenly
take too long time in open operation, future code
refactory should solve the problem thoroughly.

Signed-off-by: Yi He <yi.he@linaro.org>

---
/** Email created from pull request 139 (heyi-linaro:modular-pktio-ops)
 ** https://github.com/Linaro/odp/pull/139
 ** Patch: https://github.com/Linaro/odp/pull/139.patch
 ** Base sha: 3cdc8a07993b93b145dc3b4a373b5ebc33bae882
 ** Merge commit sha: a87822f157888ef3269a7b8b3f38c63ecc111669
 **/
 example/l2fwd_simple/l2fwd_simple_run.sh | 5 +++++
 1 file changed, 5 insertions(+)
diff mbox series

Patch

diff --git a/example/l2fwd_simple/l2fwd_simple_run.sh b/example/l2fwd_simple/l2fwd_simple_run.sh
index 130a3a84..0c464f70 100755
--- a/example/l2fwd_simple/l2fwd_simple_run.sh
+++ b/example/l2fwd_simple/l2fwd_simple_run.sh
@@ -6,6 +6,11 @@ 
 # SPDX-License-Identifier:     BSD-3-Clause
 #
 
+# Disable socket pktios since their open operations
+# mistakenly take too long time
+export ODP_PKTIO_DISABLE_SOCKET_MMSG=1
+export ODP_PKTIO_DISABLE_SOCKET_MMAP=1
+
 PCAP_IN=`find . ${TEST_DIR} $(dirname $0) -name udp64.pcap -print -quit`
 echo "using PCAP_IN = ${PCAP_IN}"