2017-04-21 10:43:26 +00:00
|
|
|
[dpdk]
|
2017-05-02 10:03:38 +00:00
|
|
|
## Hexadecimal bitmask of cores to run on.
|
2017-09-04 08:31:00 +00:00
|
|
|
lcore_mask=1
|
2017-04-21 10:43:26 +00:00
|
|
|
channel=4
|
|
|
|
promiscuous=1
|
|
|
|
numa_on=1
|
2017-05-06 13:52:25 +00:00
|
|
|
## TCP segment offload, default: disabled.
|
|
|
|
tso=0
|
2017-08-09 08:52:16 +00:00
|
|
|
## HW vlan strip, default: enabled.
|
|
|
|
vlan_strip=1
|
2017-04-21 10:43:26 +00:00
|
|
|
|
2017-09-14 11:51:07 +00:00
|
|
|
# enabled port list
|
|
|
|
#
|
|
|
|
# EBNF grammar:
|
|
|
|
#
|
|
|
|
# exp ::= num_list {"," num_list}
|
|
|
|
# num_list ::= <num> | <range>
|
|
|
|
# range ::= <num>"-"<num>
|
|
|
|
# num ::= '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9'
|
|
|
|
#
|
|
|
|
# examples
|
|
|
|
# 1-3 ports 1,2,3 are enabled
|
|
|
|
# 1-3,4,7 ports 1,2,3,4,7 are enabled
|
|
|
|
port_list=0
|
|
|
|
|
2017-05-02 10:03:38 +00:00
|
|
|
## Port config section
|
|
|
|
## According to dpdk.nb_ports: port0, port1...
|
2017-04-21 10:43:26 +00:00
|
|
|
[port0]
|
|
|
|
addr=192.168.1.2
|
|
|
|
netmask=255.255.255.0
|
|
|
|
broadcast=192.168.1.255
|
|
|
|
gateway=192.168.1.1
|
2017-09-14 11:51:07 +00:00
|
|
|
# lcore list used to handle this port
|
|
|
|
# the format is same as port_list
|
|
|
|
|
|
|
|
# lcore_list= 0
|
|
|
|
|
2017-04-21 10:43:26 +00:00
|
|
|
## Packet capture path, this will hurt performance
|
|
|
|
#pcap=./a.pcap
|
|
|
|
|
|
|
|
## Kni config: if enabled and method=reject,
|
|
|
|
## all packets that do not belong to the following tcp_port and udp_port
|
|
|
|
## will transmit to kernel; if method=accept, all packets that belong to
|
|
|
|
## the following tcp_port and udp_port will transmit to kernel.
|
|
|
|
#[kni]
|
|
|
|
#enable=1
|
|
|
|
#method=reject
|
2017-05-02 10:03:38 +00:00
|
|
|
#tcp_port=80,443
|
2017-04-21 10:43:26 +00:00
|
|
|
#udp_port=53
|
|
|
|
|
|
|
|
## FreeBSD network performance tuning configurations.
|
|
|
|
## Most native FreeBSD configurations are supported.
|
|
|
|
[freebsd.boot]
|
|
|
|
hz=100
|
|
|
|
|
2017-08-08 14:36:49 +00:00
|
|
|
## Block out a range of descriptors to avoid overlap
|
|
|
|
## with the kernel's descriptor space.
|
|
|
|
## You can increase this value according to your app.
|
|
|
|
fd_reserve=1024
|
|
|
|
|
2017-04-21 10:43:26 +00:00
|
|
|
kern.ipc.maxsockets=262144
|
|
|
|
|
|
|
|
net.inet.tcp.syncache.hashsize=4096
|
|
|
|
net.inet.tcp.syncache.bucketlimit=100
|
|
|
|
|
|
|
|
net.inet.tcp.tcbhashsize=65536
|
|
|
|
|
|
|
|
[freebsd.sysctl]
|
|
|
|
kern.ipc.somaxconn=32768
|
|
|
|
kern.ipc.maxsockbuf=16777216
|
|
|
|
|
2017-11-08 09:45:08 +00:00
|
|
|
net.link.ether.inet.maxhold=5
|
|
|
|
|
2017-04-21 10:43:26 +00:00
|
|
|
net.inet.tcp.fast_finwait2_recycle=1
|
|
|
|
net.inet.tcp.sendspace=16384
|
|
|
|
net.inet.tcp.recvspace=8192
|
|
|
|
net.inet.tcp.nolocaltimewait=1
|
2017-09-21 06:57:01 +00:00
|
|
|
net.inet.tcp.cc.algorithm=cubic
|
2017-04-21 10:43:26 +00:00
|
|
|
net.inet.tcp.sendbuf_max=16777216
|
|
|
|
net.inet.tcp.recvbuf_max=16777216
|
|
|
|
net.inet.tcp.sendbuf_auto=1
|
|
|
|
net.inet.tcp.recvbuf_auto=1
|
|
|
|
net.inet.tcp.sendbuf_inc=16384
|
|
|
|
net.inet.tcp.recvbuf_inc=524288
|
2017-09-21 06:57:01 +00:00
|
|
|
net.inet.tcp.sack.enable=1
|
2017-04-21 10:43:26 +00:00
|
|
|
net.inet.tcp.blackhole=1
|
|
|
|
net.inet.tcp.msl=2000
|
|
|
|
net.inet.tcp.delayed_ack=0
|
|
|
|
|
|
|
|
net.inet.udp.blackhole=1
|
|
|
|
net.inet.ip.redirect=0
|