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