Commit 5aa2b2a5 authored by wangyongshou's avatar wangyongshou

del useless file

parent ce61bda9
unix {
nodaemon
log /var/log/upf/vpp/vpp.log
full-coredump
gid vpp
interactive
cli-listen /run/vpp/cli.sock
#cli-listen localhost:5002
#exec @/work/gtpu_ext/vpp_0618/config_system.sh@
#exec upf_gateway.sh
#exec /work/gtpu_ext/upf_v0.4/upf-vpp/conf/config_system.sh
exec test_iperf3.sh
logsize 100
}
#
api-trace {
on
#save-api-table /tmp/save_api_table
}
api-segment {
gid vpp
}
#
cpu {
## In the VPP there is one main thread and optionally the user can create worker(s)
## The main thread and worker thread(s) can be pinned to CPU core(s) manually or automatically
## Manual pinning of thread(s) to CPU core(s)
## Set logical CPU core where main thread runs, if main core is not set
## VPP will use core 1 if available
main-core 3
## Set logical CPU core(s) where worker threads are running
#corelist-workers 4-6
#corelist-io 5,6
## Automatic pinning of thread(s) to CPU core(s)
## Sets number of CPU core(s) to be skipped (1 ... N-1)
## Skipped CPU core(s) are not used for pinning main thread and working thread(s).
## The main thread is automatically pinned to the first available CPU core and worker(s)
## are pinned to next free CPU core(s) after core assigned to main thread
# skip-cores 4
## Specify a number of workers to be created
## Workers are pinned to N consecutive CPU cores while skipping "skip-cores" CPU core(s)
## and main thread's CPU core
#workers 2
## Set scheduling policy and priority of main and worker threads
## Scheduling policy options are: other (SCHED_OTHER), batch (SCHED_BATCH)
## idle (SCHED_IDLE), fifo (SCHED_FIFO), rr (SCHED_RR)
scheduler-policy fifo
## Scheduling priority is used only for "real-time policies (fifo and rr),
## and has to be in the range of priorities supported for a particular policy
scheduler-priority 50
}
#buffers {
## Increase number of buffers allocated, needed only in scenarios with
## large number of interfaces and worker threads. Value is per numa node.
## Default is 16384 (8192 if running unpriviledged)
# buffers-per-numa 128000
## Size of buffer data area
## Default is 2048
# default data-size 20480
# }
dpdk {
## Change default settings for all interfaces
dev default {
## Number of receive queues, enables RSS
## Default is 1
num-rx-queues 1
## Number of transmit queues, Default is equal
## to number of worker threads or 1 if no workers treads
num-tx-queues 1
## Number of descriptors in transmit and receive rings
## increasing or reducing number can impact performance
## Default is 1024 for both rx and tx
# num-rx-desc 512
# num-tx-desc 512
## VLAN strip offload mode for interface
## Default is off
# vlan-strip-offload on
}
## Whitelist specific interface by specifying PCI address
#82576 1Gg
dev 0000:06:00.0
dev 0000:06:00.1
#dev 0000:05:00.1
## Whitelist specific interface by specifying PCI address and in
## addition specify custom parameters for this interface
# dev 0000:02:00.1 {
# num-rx-queues 2
# }
## Change UIO driver used by VPP, Options are: igb_uio, vfio-pci,
## uio_pci_generic or auto (default)
# uio-driver vfio-pci
uio-driver igb_uio
## Disable multi-segment buffers, improves performance but
## disables Jumbo MTU support
#no-multi-seg
## Change hugepages allocation per-socket, needed only if there is need for
## larger number of mbufs. Default is 256M on each detected CPU socket
socket-mem 2048,2048
## Disables UDP / TCP TX checksum offload. Typically needed for use
## faster vector PMDs (together with no-multi-seg)
#no-tx-checksum-offload
}
plugins {
path /work/gtpu_ext/upf_v0.4/upf-vpp/src/Buptvppe/build-root/install-vpp_debug-native/vpp/lib/vpp_plugins/
plugin dpdk_plugin.so { enable }
plugin gtpu_plugin.so { enable }
plugin upf_plugin.so { enable }
}
set interface state GigabitEthernet2/0/0 up
set interface ip address GigabitEthernet2/0/0 192.168.10.10/24
set interface state GigabitEthernet4/0/0 up
set interface ip address GigabitEthernet4/0/0 192.168.30.10/24
create gtpu tunnel src 192.168.10.10 dst 192.168.10.100 teid 1 encap-vrf-id 0 decap-next node ip4-lookup
ip route add 192.169.0.2/24 via gtpu_tunnel0
ip route add 0.0.0.0/0 via 192.168.30.11 GigabitEthernet4/0/0
set ip neighbor GigabitEthernet4/0/0 192.168.2.96 2c:53:4a:05:44:4d
set ip neighbor GigabitEthernet4/0/0 180.76.76.76 2c:53:4a:05:44:4d
set ip neighbor GigabitEthernet4/0/0 61.135.169.125 2c:53:4a:05:44:4d
set ip neighbor GigabitEthernet4/0/0 8.8.8.8 2c:53:4a:05:44:4d
set ip neighbor GigabitEthernet4/0/0 103.235.46.39 2c:53:4a:05:44:4d
#set interface mtu 1500 GigabitEthernet2/0/0
#set interface mtu 1500 GigabitEthernet4/0/0
#ip route add 61.0.0.0/8 via GigabitEthernet4/0/0
#ip route add 8.0.0.0/8 via GigabitEthernet4/0/0
#ip route add 0.0.0.0/0 via GigabitEthernet4/0/0
#!/bin/sh -x
#ifconfig enp2s0 down;
#ifconfig enp3s0 down;
#ifconfig enp5s0f1 down;
#ifconfig enp1s0f0 down;
ifconfig enp6s0f0 down;
ifconfig enp6s0f1 down;
/work/dpdk/dpdk-19.08/usertools/dpdk-devbind.py -u 0000:06:00.0
/work/dpdk/dpdk-19.08/usertools/dpdk-devbind.py -u 0000:06:00.1
#./ip_link.sh_bak
if [ $(id -u) -ne 0 ]; then
exec sudo -E "$0" "$@"
fi
#base=$(dirname $0)
base=$(cd $(dirname $0); pwd)
APP="$base/build-root/install-vpp_debug-native/vpp/bin/vpp"
ARGS="-c $base/startup_debug.conf"
USAGE="Usage: run.sh [-r] [ debug ]
debug: executes vpp under gdb"
while getopts ":r" opt; do
case $opt in
r)
APP="$base/build-root/install-vpp-native/vpp/bin/vpp"
ARGS="-c $base/startup.conf"
;;
\?)
echo "Invalid option: -$OPTARG\n" >&2
echo "$USAGE" >&2
exit 1
;;
esac
done
shift $((OPTIND-1))
if test -z "$1"; then
$APP $ARGS
elif test "$1" = "debug"; then
shift
gdb -ex 'set print pretty on' -ex 'run' --args $APP $ARGS $@
else
echo "$USAGE" >&2
exit 1
fi
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment