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