Commit ec312186 authored by wangyongshou's avatar wangyongshou

add upf.conf

parent 465800ae
unix {
nodaemon
log /var/log/upf/vpp/vpp.log
full-coredump
interactive
gid vpp
cli-listen /run/vpp/cli.sock
logsize 100
}
api-trace {
on
}
api-segment {
gid vpp
}
logging
{
default-log-level info
default-syslog-log-level info
}
statseg {
default
per-node-counters on
}
cpu {
main-core @MAINCORE@
corelist-workers @WORKERCORE@
scheduler-policy fifo
scheduler-priority 50
}
#buffers {
#buffers-per-numa 128000
#Default is 2048
#}
dpdk {
dev default {
num-rx-queues 1
}
dev @PCI_ADDR_ID_ENTRY@
{
name if_n3
num-rx-queues 2
num-tx-queues 1
ipaddr @N3_IP@
netmask 32
gateway @N3_GW@
}
dev @PCI_ADDR_ID_EXPORT@
{
name if_n6
num-rx-queues 1
ipaddr @N6_IP@
netmask 32
gateway @VPPHOST_IP@
}
uio-driver vfio-pci
no-multi-seg
socket-mem 2048,2048
no-tx-checksum-offload
}
nat { endpoint-dependent }
heapsize 2G
plugins {
path /usr/lib/x86_64-linux-gnu/vpp_plugins
plugin default { enable }
plugin dpdk_plugin.so { enable }
plugin gtpu_plugin.so { enable }
plugin upf_plugin.so { enable }
}
......@@ -82,11 +82,11 @@ function make_vpp_package()
then
cd $VPPPATH;
./pre_install.sh > /dev/null 2>&1;
echo "pre install vppe finished!!!"
echo "pre install vppe"
make rebuild > /dev/null 2>&1;
echo "build vppe finished!!!"
echo "build vppe"
make pkg-deb-debug > /dev/null 2>&1;
echo "pkg vppe finished!!!"
echo "pkg vppe"
cd ..;
elif [ $1 = "release" ]
then
......@@ -120,7 +120,7 @@ function make_vpp_package()
cp -f $VPPINSTALL/$PKG_NAME $UPFINSTALL/pkg
echo "pkg buptvppe.tar.gz finished!!!"
echo "pkg buptvppe.tar.gz"
#clear
find $VPPPATH/${BUILD_ROOT}/ -name '*.c' -type f -print -exec rm -rf {} \ > /dev/null 2>&1;
......
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