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# 1-3 ports 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## According to dpdk.nb_ports: 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# lcore list used to handle this port 34# the format is same as port_list 35 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#tcp_port=80,443 49#udp_port=53 50 51## FreeBSD network performance tuning configurations. 52## Most native FreeBSD configurations are supported. 53[freebsd.boot] 54hz=100 55 56## Block out a range of descriptors to avoid overlap 57## with the kernel's descriptor space. 58## You can increase this value according to your app. 59fd_reserve=1024 60 61kern.ipc.maxsockets=262144 62 63net.inet.tcp.syncache.hashsize=4096 64net.inet.tcp.syncache.bucketlimit=100 65 66net.inet.tcp.tcbhashsize=65536 67 68[freebsd.sysctl] 69kern.ipc.somaxconn=32768 70kern.ipc.maxsockbuf=16777216 71 72net.link.ether.inet.maxhold=5 73 74net.inet.tcp.fast_finwait2_recycle=1 75net.inet.tcp.sendspace=16384 76net.inet.tcp.recvspace=8192 77net.inet.tcp.nolocaltimewait=1 78net.inet.tcp.cc.algorithm=cubic 79net.inet.tcp.sendbuf_max=16777216 80net.inet.tcp.recvbuf_max=16777216 81net.inet.tcp.sendbuf_auto=1 82net.inet.tcp.recvbuf_auto=1 83net.inet.tcp.sendbuf_inc=16384 84net.inet.tcp.recvbuf_inc=524288 85net.inet.tcp.sack.enable=1 86net.inet.tcp.blackhole=1 87net.inet.tcp.msl=2000 88net.inet.tcp.delayed_ack=0 89 90net.inet.udp.blackhole=1 91net.inet.ip.redirect=0 92