aboutsummaryrefslogtreecommitdiff
path: root/example/l3fwd/odp_l3fwd_run.sh
diff options
context:
space:
mode:
Diffstat (limited to 'example/l3fwd/odp_l3fwd_run.sh')
-rwxr-xr-xexample/l3fwd/odp_l3fwd_run.sh9
1 files changed, 7 insertions, 2 deletions
diff --git a/example/l3fwd/odp_l3fwd_run.sh b/example/l3fwd/odp_l3fwd_run.sh
index acffb8431..ffe32aa2f 100755
--- a/example/l3fwd/odp_l3fwd_run.sh
+++ b/example/l3fwd/odp_l3fwd_run.sh
@@ -8,11 +8,16 @@
PCAP_IN=`find . ${TEST_DIR} $(dirname $0) -name udp64.pcap -print -quit`
PCAP_OUT="pcapout.pcap"
+PCAP_EMPTY="empty.pcap"
PCAP_IN_SIZE=`stat -c %s ${PCAP_IN}`
echo "using PCAP_IN = ${PCAP_IN}, PCAP_OUT = ${PCAP_OUT}"
-./odp_l3fwd${EXEEXT} -i pcap:in=${PCAP_IN},pcap:out=${PCAP_OUT} \
- -r "10.0.0.0/24,pcap:out=${PCAP_OUT}" -d 30
+export ODP_PLATFORM_PARAMS="--no-pci \
+--vdev net_pcap0,rx_pcap=${PCAP_IN},tx_pcap=/dev/null \
+--vdev net_pcap1,rx_pcap=${PCAP_EMPTY},tx_pcap=${PCAP_OUT}"
+
+./odp_l3fwd${EXEEXT} -i 0,1 \
+ -r "10.0.0.0/24,1" -d 30
STATUS=$?
PCAP_OUT_SIZE=`stat -c %s ${PCAP_OUT}`