xref: /f-stack/config.ini (revision 9bd490e8)
1[dpdk]
2# Hexadecimal bitmask of cores to run on.
3lcore_mask=1
4
5# Number of memory channels.
6channel=4
7
8# Specify base virtual address to map.
9#base_virtaddr=0x7f0000000000
10
11# Promiscuous mode of nic, defualt: enabled.
12promiscuous=1
13numa_on=1
14
15# TCP segment offload, default: disabled.
16tso=0
17
18# HW vlan strip, default: enabled.
19vlan_strip=1
20
21# sleep when no pkts incomming
22# unit: microseconds
23idle_sleep=100
24
25# enabled port list
26#
27# EBNF grammar:
28#
29#    exp      ::= num_list {"," num_list}
30#    num_list ::= <num> | <range>
31#    range    ::= <num>"-"<num>
32#    num      ::= '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9'
33#
34# examples
35#    0-3       ports 0, 1,2,3 are enabled
36#    1-3,4,7   ports 1,2,3,4,7 are enabled
37port_list=0
38
39# Port config section
40# Correspond to dpdk.port_list's index: port0, port1...
41[port0]
42addr=10.139.144.123
43netmask=255.255.224.0
44broadcast=10.139.159.255
45gateway=10.139.128.1
46
47# lcore list used to handle this port
48# the format is same as port_list
49# lcore_list= 0
50
51# Packet capture path, this will hurt performance
52#pcap=./a.pcap
53
54# Kni config: if enabled and method=reject,
55# all packets that do not belong to the following tcp_port and udp_port
56# will transmit to kernel; if method=accept, all packets that belong to
57# the following tcp_port and udp_port will transmit to kernel.
58[kni]
59enable=1
60method=reject
61# The format is same as port_list
62tcp_port=80,443
63udp_port=53
64
65# FreeBSD network performance tuning configurations.
66# Most native FreeBSD configurations are supported.
67[freebsd.boot]
68hz=100
69
70# Block out a range of descriptors to avoid overlap
71# with the kernel's descriptor space.
72# You can increase this value according to your app.
73fd_reserve=1024
74
75kern.ipc.maxsockets=262144
76
77net.inet.tcp.syncache.hashsize=4096
78net.inet.tcp.syncache.bucketlimit=100
79
80net.inet.tcp.tcbhashsize=65536
81
82kern.ncallout=262144
83
84[freebsd.sysctl]
85kern.ipc.somaxconn=32768
86kern.ipc.maxsockbuf=16777216
87
88net.link.ether.inet.maxhold=5
89
90net.inet.tcp.fast_finwait2_recycle=1
91net.inet.tcp.sendspace=16384
92net.inet.tcp.recvspace=8192
93net.inet.tcp.nolocaltimewait=1
94net.inet.tcp.cc.algorithm=cubic
95net.inet.tcp.sendbuf_max=16777216
96net.inet.tcp.recvbuf_max=16777216
97net.inet.tcp.sendbuf_auto=1
98net.inet.tcp.recvbuf_auto=1
99net.inet.tcp.sendbuf_inc=16384
100net.inet.tcp.recvbuf_inc=524288
101net.inet.tcp.sack.enable=1
102net.inet.tcp.blackhole=1
103net.inet.tcp.msl=2000
104net.inet.tcp.delayed_ack=0
105
106net.inet.udp.blackhole=1
107net.inet.ip.redirect=0
108