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 40## Block out a range of descriptors to avoid overlap 41## with the kernel's descriptor space. 42## You can increase this value according to your app. 43fd_reserve=1024 44 45kern.ipc.maxsockets=262144 46 47net.inet.tcp.syncache.hashsize=4096 48net.inet.tcp.syncache.bucketlimit=100 49 50net.inet.tcp.tcbhashsize=65536 51 52[freebsd.sysctl] 53kern.ipc.somaxconn=32768 54kern.ipc.maxsockbuf=16777216 55 56net.inet.tcp.fast_finwait2_recycle=1 57net.inet.tcp.sendspace=16384 58net.inet.tcp.recvspace=8192 59net.inet.tcp.nolocaltimewait=1 60net.inet.tcp.cc.algorithm=htcp 61net.inet.tcp.sendbuf_max=16777216 62net.inet.tcp.recvbuf_max=16777216 63net.inet.tcp.sendbuf_auto=1 64net.inet.tcp.recvbuf_auto=1 65net.inet.tcp.sendbuf_inc=16384 66net.inet.tcp.recvbuf_inc=524288 67net.inet.tcp.inflight.enable=0 68net.inet.tcp.sack=1 69net.inet.tcp.blackhole=1 70net.inet.tcp.msl=2000 71net.inet.tcp.delayed_ack=0 72 73net.inet.udp.blackhole=1 74net.inet.ip.redirect=0 75