xref: /f-stack/config.ini (revision a9643ea8)
1[dpdk]
2lcore_mask=3
3## Port mask, enable and disable ports.
4## Default: all ports are enabled.
5#port_mask=1
6channel=4
7nb_ports=1
8promiscuous=1
9numa_on=1
10
11[port0]
12addr=192.168.1.2
13netmask=255.255.255.0
14broadcast=192.168.1.255
15gateway=192.168.1.1
16## Packet capture path, this will hurt performance
17#pcap=./a.pcap
18
19## Kni config: if enabled and method=reject,
20## all packets that do not belong to the following tcp_port and udp_port
21## will transmit to kernel; if method=accept, all packets that belong to
22## the following tcp_port and udp_port will transmit to kernel.
23#[kni]
24#enable=1
25#method=reject
26#tcp_port=80
27#udp_port=53
28
29[log]
30level=1
31dir=/var/log
32
33## FreeBSD network performance tuning configurations.
34## Most native FreeBSD configurations are supported.
35[freebsd.boot]
36hz=100
37
38kern.ipc.maxsockets=262144
39
40net.inet.tcp.syncache.hashsize=4096
41net.inet.tcp.syncache.bucketlimit=100
42
43net.inet.tcp.tcbhashsize=65536
44
45[freebsd.sysctl]
46kern.ipc.somaxconn=32768
47kern.ipc.maxsockbuf=16777216
48
49net.inet.tcp.fast_finwait2_recycle=1
50net.inet.tcp.sendspace=16384
51net.inet.tcp.recvspace=8192
52net.inet.tcp.nolocaltimewait=1
53net.inet.tcp.cc.algorithm=htcp
54net.inet.tcp.sendbuf_max=16777216
55net.inet.tcp.recvbuf_max=16777216
56net.inet.tcp.sendbuf_auto=1
57net.inet.tcp.recvbuf_auto=1
58net.inet.tcp.sendbuf_inc=16384
59net.inet.tcp.recvbuf_inc=524288
60net.inet.tcp.inflight.enable=0
61net.inet.tcp.sack=1
62net.inet.tcp.blackhole=1
63net.inet.tcp.msl=2000
64net.inet.tcp.delayed_ack=0
65
66net.inet.udp.blackhole=1
67net.inet.ip.redirect=0
68