1[dpdk] 2# Hexadecimal bitmask of cores to run on. 3lcore_mask=1 4 5# Number of memory channels. 6channel=4 7 8# Specify base virtual address to map. 9#base_virtaddr=0x7f0000000000 10 11# Promiscuous mode of nic, defualt: enabled. 12promiscuous=1 13numa_on=1 14 15# TX checksum offload skip, default: disabled. 16# We need this switch enabled in the following cases: 17# -> The application want to enforce wrong checksum for testing purposes 18# -> Some cards advertize the offload capability. However, doesn't calculate checksum. 19tx_csum_offoad_skip=0 20 21# TCP segment offload, default: disabled. 22tso=0 23 24# HW vlan strip, default: enabled. 25vlan_strip=1 26 27# sleep when no pkts incomming 28# unit: microseconds 29idle_sleep=0 30 31# sent packet delay time(0-100) while send less than 32 pkts. 32# default 100 us. 33# if set 0, means send pkts immediately. 34# if set >100, will dealy 100 us. 35# unit: microseconds 36pkt_tx_delay=100 37 38# enabled port list 39# 40# EBNF grammar: 41# 42# exp ::= num_list {"," num_list} 43# num_list ::= <num> | <range> 44# range ::= <num>"-"<num> 45# num ::= '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' 46# 47# examples 48# 0-3 ports 0, 1,2,3 are enabled 49# 1-3,4,7 ports 1,2,3,4,7 are enabled 50# 51# If use bonding, shoule config the bonding port id in port_list 52# and not config slave port id in port_list 53# such as, port 0 and port 1 trank to a bonding port 2, 54# should set `port_list=2` and config `[port2]` section 55 56port_list=0 57 58# Number of vdev. 59nb_vdev=0 60 61# Number of bond. 62nb_bond=0 63 64# Each core write into own pcap file, which is open one time, close one time if enough. 65# Support dump the first snaplen bytes of each packet. 66# if pcap file is lager than savelen bytes, it will be closed and next file was dumped into. 67[pcap] 68enable = 0 69snaplen= 96 70savelen= 16777216 71 72# Port config section 73# Correspond to dpdk.port_list's index: port0, port1... 74[port0] 75addr=192.168.1.2 76netmask=255.255.225.0 77broadcast=192.168.1.255 78gateway=192.168.1.1 79 80# lcore list used to handle this port 81# the format is same as port_list 82#lcore_list=0 83 84# bonding slave port list used to handle this port 85# need to config while this port is a bonding port 86# the format is same as port_list 87#slave_port_list=0,1 88 89# Packet capture path, this will hurt performance 90#pcap=./a.pcap 91 92# Vdev config section 93# orrespond to dpdk.nb_vdev's index: vdev0, vdev1... 94# iface : Shouldn't set always. 95# path : The vuser device path in container. Required. 96# queues : The max queues of vuser. Optional, default 1, greater or equal to the number of processes. 97# queue_size : Queue size.Optional, default 256. 98# mac : The mac address of vuser. Optional, default random, if vhost use phy NIC, it should be set to the phy NIC's mac. 99# cq : Optional, if queues = 1, default 0; if queues > 1 default 1. 100#[vdev0] 101##iface=/usr/local/var/run/openvswitch/vhost-user0 102#path=/var/run/openvswitch/vhost-user0 103#queues=1 104#queue_size=256 105#mac=00:00:00:00:00:01 106#cq=0 107 108# bond config section 109# See http://doc.dpdk.org/guides/prog_guide/link_bonding_poll_mode_drv_lib.html 110#[bond0] 111#mode=4 112#slave=0000:0a:00.0,slave=0000:0a:00.1 113#primary=0000:0a:00.0 114#mac=f0:98:38:xx:xx:xx 115## opt argument 116#socket_id=0 117#xmit_policy=l23 118#lsc_poll_period_ms=100 119#up_delay=10 120#down_delay=50 121 122# Kni config: if enabled and method=reject, 123# all packets that do not belong to the following tcp_port and udp_port 124# will transmit to kernel; if method=accept, all packets that belong to 125# the following tcp_port and udp_port will transmit to kernel. 126#[kni] 127#enable=1 128#method=reject 129# The format is same as port_list 130#tcp_port=80,443 131#udp_port=53 132 133# FreeBSD network performance tuning configurations. 134# Most native FreeBSD configurations are supported. 135[freebsd.boot] 136hz=100 137 138# Block out a range of descriptors to avoid overlap 139# with the kernel's descriptor space. 140# You can increase this value according to your app. 141fd_reserve=1024 142 143kern.ipc.maxsockets=262144 144 145net.inet.tcp.syncache.hashsize=4096 146net.inet.tcp.syncache.bucketlimit=100 147 148net.inet.tcp.tcbhashsize=65536 149 150kern.ncallout=262144 151 152kern.features.inet6=1 153net.inet6.ip6.auto_linklocal=1 154net.inet6.ip6.accept_rtadv=2 155net.inet6.icmp6.rediraccept=1 156net.inet6.ip6.forwarding=0 157 158[freebsd.sysctl] 159kern.ipc.somaxconn=32768 160kern.ipc.maxsockbuf=16777216 161 162net.link.ether.inet.maxhold=5 163 164net.inet.tcp.fast_finwait2_recycle=1 165net.inet.tcp.sendspace=16384 166net.inet.tcp.recvspace=8192 167#net.inet.tcp.nolocaltimewait=1 168net.inet.tcp.cc.algorithm=cubic 169net.inet.tcp.sendbuf_max=16777216 170net.inet.tcp.recvbuf_max=16777216 171net.inet.tcp.sendbuf_auto=1 172net.inet.tcp.recvbuf_auto=1 173net.inet.tcp.sendbuf_inc=16384 174net.inet.tcp.recvbuf_inc=524288 175net.inet.tcp.sack.enable=1 176net.inet.tcp.blackhole=1 177net.inet.tcp.msl=2000 178net.inet.tcp.delayed_ack=0 179 180net.inet.udp.blackhole=1 181net.inet.ip.redirect=0 182net.inet.ip.forwarding=0 183