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