blob: bd3b0284138d2024da2563a604390a9b8568fa03 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#!/bin/bash
set -e
echo "DPDK_SAMPLE_APP is set as: $DPDK_SAMPLE_APP"
if [[ $DPDK_SAMPLE_APP == l2fwd ]] ; then
echo "Calling: l2fwd"
exec "l2fwd"
elif [[ $DPDK_SAMPLE_APP == l3fwd ]] ; then
echo "Calling: l3fwd"
exec "l3fwd"
elif [[ $DPDK_SAMPLE_APP == testpmd ]] ; then
echo "Calling: testpmd"
exec "testpmd"
else
echo "Net set so using default - Calling: $@"
exec "$@"
fi
|