pespin has uploaded this change for review. ( https://gerrit.osmocom.org/c/upf-benchmark/+/38747?usp=email )
Change subject: testsuites: tunend: eupf: Have a separate configure.sh ......................................................................
testsuites: tunend: eupf: Have a separate configure.sh
The configuration is different depending on the UPF to run, eg eupf doesn't have an apn-flood interface since it uses XDP.
Change-Id: Ib38e459b74eaf121c040e6dd59ac39c9d84c4a3f --- A testsuites/gtplab-sysmo2017/tunend/upf/eupf/configure.sh R testsuites/gtplab-sysmo2017/tunend/upf/osmo-upf/configure.sh 2 files changed, 29 insertions(+), 0 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/upf-benchmark refs/changes/47/38747/1
diff --git a/testsuites/gtplab-sysmo2017/tunend/upf/eupf/configure.sh b/testsuites/gtplab-sysmo2017/tunend/upf/eupf/configure.sh new file mode 100755 index 0000000..f812c45 --- /dev/null +++ b/testsuites/gtplab-sysmo2017/tunend/upf/eupf/configure.sh @@ -0,0 +1,29 @@ +#!/bin/bash -xe + +# Interface towards UPF: +IFACE_RAN="enp2s0f0np0" +IFACE_CN="enp2s0f1np1" + +# Disable ethernet flow control: +sudo ethtool -A $IFACE_RAN autoneg off rx off tx off +sudo ethtool -A $IFACE_CN autoneg off rx off tx off +# Increase NIC buffers: +sudo ethtool -G $IFACE_RAN rx 8192 tx 8192 +sudo ethtool -G $IFACE_CN rx 8192 tx 8192 + +# Enable IP forwarding: +sudo sysctl -w net.ipv4.ip_forward=1 + +# Increase UDP buffer memory: +sudo sysctl -w net.ipv4.udp_mem="763563 900000000 1000000000" +sudo sysctl -w net.core.optmem_max=16000000 +sudo sysctl -w net.core.rmem_max=2000000000 +sudo sysctl -w net.core.rmem_default=2000000000 +sudo sysctl -w net.core.wmem_max=2000000000 +sudo sysctl -w net.core.wmem_default=2000000000 +sudo sysctl -w net.core.netdev_max_backlog=2000 +sudo sysctl -w net.core.netdev_budget=600 + +# Set up UPF address: +sudo ip addr add 172.16.31.2/24 dev $IFACE_RAN || true; +sudo ip addr add 172.16.32.1/24 dev $IFACE_CN || true; diff --git a/testsuites/gtplab-sysmo2017/tunend/upf/configure.sh b/testsuites/gtplab-sysmo2017/tunend/upf/osmo-upf/configure.sh similarity index 100% rename from testsuites/gtplab-sysmo2017/tunend/upf/configure.sh rename to testsuites/gtplab-sysmo2017/tunend/upf/osmo-upf/configure.sh