Commit fddea5c1 authored by vember's avatar vember

modify config file

parent 32312e27
...@@ -5,15 +5,10 @@ set interface state if_n6 up ...@@ -5,15 +5,10 @@ set interface state if_n6 up
set interface ip address if_n6 192.168.30.10/24 set interface ip address if_n6 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 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.0/24 via gtpu_tunnel0 ip route add 192.169.0.0/24 via gtpu_tunnel0
ip route add 0.0.0.0/0 via if_n6 192.168.30.11 ip route add 0.0.0.0/0 via if_n6 192.168.30.11
set interface mac address if_n3 9c:69:b4:61:f0:c0
...@@ -7,7 +7,6 @@ unix { ...@@ -7,7 +7,6 @@ unix {
cli-listen /run/vpp/cli.sock cli-listen /run/vpp/cli.sock
exec ./config_system.sh exec ./config_system.sh
logsize 100 logsize 100
cli-prompt bupt#
} }
api-trace { api-trace {
...@@ -16,10 +15,6 @@ api-trace { ...@@ -16,10 +15,6 @@ api-trace {
api-segment { api-segment {
gid vpp gid vpp
# global-size 2G
# api-size 64M
# global-pvt-heap-size size 262144
#api-pvt-heap-size 1M
} }
logging logging
...@@ -31,149 +26,46 @@ logging ...@@ -31,149 +26,46 @@ logging
statseg { statseg {
default default
#size 1024M
per-node-counters on per-node-counters on
} }
cpu { 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 6 main-core 6
## Set logical CPU core(s) where worker threads are running
corelist-workers 7 corelist-workers 7
#corelist-io 3,4
## 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 1
## 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 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 scheduler-priority 50
} }
buffers { 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
buffers-per-numa 2560000 buffers-per-numa 2560000
## Size of buffer data area
#Default is 2048 #Default is 2048
#data size 4096
#default data-size 2048
} }
#mactime {
# lookup-table-buckets 32
# lookup-table-memory 1G
#}
dpdk { dpdk {
## Change default settings for all interfaces
dev default { dev default {
## Number of receive queues, enables RSS
## Default is 1
num-rx-queues 1 num-rx-queues 1
## Number of transmit queues, Default is equal
## to number of worker threads or 1 if no workers treads
## 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 1G
dev 0000:02:00.0 dev 0000:02:00.0
{ {
name if_n3 name if_n3
num-rx-queues 2 num-rx-queues 2
num-tx-queues 2 num-tx-queues 2
# num-rx-desc 1024
# num-tx-desc 1024
} }
dev 0000:02:00.1 dev 0000:02:00.1
{ {
name if_n6 name if_n6
num-rx-queues 1 num-rx-queues 1
# num-rx-desc 1024
# num-tx-desc 1024
} }
## 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 igb_uio uio-driver igb_uio
#uio-driver vfio-pci
## Disable multi-segment buffers, improves performance but
## disables Jumbo MTU support
no-multi-seg 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
socket-mem 2048,2048 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 no-tx-checksum-offload
} }
#memory {
# main-heap-size 4G
# main-heap-page-size 1G
#}
#default main:1G, work:1G
heapsize 2G heapsize 2G
plugins { plugins {
path ./build-root/install-vpp_debug-native/vpp/lib/vpp_plugins path ./build-root/install-vpp_debug-native/vpp/lib/vpp_plugins
plugin default { enable } plugin default { enable }
......
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