mirror of https://github.com/F-Stack/f-stack.git
Upgrade f-stack.conf in Nginx.
This commit is contained in:
parent
51108f9c2e
commit
e426931965
|
@ -12,6 +12,12 @@ channel=4
|
|||
promiscuous=1
|
||||
numa_on=1
|
||||
|
||||
# TX checksum offload skip, default: disabled.
|
||||
# We need this switch enabled in the following cases:
|
||||
# -> The application want to enforce wrong checksum for testing purposes
|
||||
# -> Some cards advertize the offload capability. However, doesn't calculate checksum.
|
||||
tx_csum_offoad_skip=0
|
||||
|
||||
# TCP segment offload, default: disabled.
|
||||
tso=0
|
||||
|
||||
|
@ -29,6 +35,9 @@ idle_sleep=0
|
|||
# unit: microseconds
|
||||
pkt_tx_delay=100
|
||||
|
||||
# use symmetric Receive-side Scaling(RSS) key, default: disabled.
|
||||
symmetric_rss=0
|
||||
|
||||
# enabled port list
|
||||
#
|
||||
# EBNF grammar:
|
||||
|
@ -41,11 +50,28 @@ pkt_tx_delay=100
|
|||
# examples
|
||||
# 0-3 ports 0, 1,2,3 are enabled
|
||||
# 1-3,4,7 ports 1,2,3,4,7 are enabled
|
||||
#
|
||||
# If use bonding, shoule config the bonding port id in port_list
|
||||
# and not config slave port id in port_list
|
||||
# such as, port 0 and port 1 trank to a bonding port 2,
|
||||
# should set `port_list=2` and config `[port2]` section
|
||||
|
||||
port_list=0
|
||||
|
||||
# Number of vdev.
|
||||
nb_vdev=0
|
||||
|
||||
# Number of bond.
|
||||
nb_bond=0
|
||||
|
||||
# Each core write into own pcap file, which is open one time, close one time if enough.
|
||||
# Support dump the first snaplen bytes of each packet.
|
||||
# if pcap file is lager than savelen bytes, it will be closed and next file was dumped into.
|
||||
[pcap]
|
||||
enable = 0
|
||||
snaplen= 96
|
||||
savelen= 16777216
|
||||
|
||||
# Port config section
|
||||
# Correspond to dpdk.port_list's index: port0, port1...
|
||||
[port0]
|
||||
|
@ -53,10 +79,20 @@ addr=192.168.1.2
|
|||
netmask=255.255.225.0
|
||||
broadcast=192.168.1.255
|
||||
gateway=192.168.1.1
|
||||
# IPv6 net addr
|
||||
# Optional parameters
|
||||
#addr6=ff::02
|
||||
#prefix_len=64
|
||||
#gateway6=ff::01
|
||||
|
||||
# lcore list used to handle this port
|
||||
# the format is same as port_list
|
||||
# lcore_list= 0
|
||||
#lcore_list=0
|
||||
|
||||
# bonding slave port list used to handle this port
|
||||
# need to config while this port is a bonding port
|
||||
# the format is same as port_list
|
||||
#slave_port_list=0,1
|
||||
|
||||
# Packet capture path, this will hurt performance
|
||||
#pcap=./a.pcap
|
||||
|
@ -77,6 +113,20 @@ gateway=192.168.1.1
|
|||
#mac=00:00:00:00:00:01
|
||||
#cq=0
|
||||
|
||||
# bond config section
|
||||
# See http://doc.dpdk.org/guides/prog_guide/link_bonding_poll_mode_drv_lib.html
|
||||
#[bond0]
|
||||
#mode=4
|
||||
#slave=0000:0a:00.0,slave=0000:0a:00.1
|
||||
#primary=0000:0a:00.0
|
||||
#mac=f0:98:38:xx:xx:xx
|
||||
## opt argument
|
||||
#socket_id=0
|
||||
#xmit_policy=l23
|
||||
#lsc_poll_period_ms=100
|
||||
#up_delay=10
|
||||
#down_delay=50
|
||||
|
||||
# Kni config: if enabled and method=reject,
|
||||
# all packets that do not belong to the following tcp_port and udp_port
|
||||
# will transmit to kernel; if method=accept, all packets that belong to
|
||||
|
@ -107,6 +157,12 @@ net.inet.tcp.tcbhashsize=65536
|
|||
|
||||
kern.ncallout=262144
|
||||
|
||||
kern.features.inet6=1
|
||||
net.inet6.ip6.auto_linklocal=1
|
||||
net.inet6.ip6.accept_rtadv=2
|
||||
net.inet6.icmp6.rediraccept=1
|
||||
net.inet6.ip6.forwarding=0
|
||||
|
||||
[freebsd.sysctl]
|
||||
kern.ipc.somaxconn=32768
|
||||
kern.ipc.maxsockbuf=16777216
|
||||
|
@ -116,7 +172,7 @@ net.link.ether.inet.maxhold=5
|
|||
net.inet.tcp.fast_finwait2_recycle=1
|
||||
net.inet.tcp.sendspace=16384
|
||||
net.inet.tcp.recvspace=8192
|
||||
net.inet.tcp.nolocaltimewait=1
|
||||
#net.inet.tcp.nolocaltimewait=1
|
||||
net.inet.tcp.cc.algorithm=cubic
|
||||
net.inet.tcp.sendbuf_max=16777216
|
||||
net.inet.tcp.recvbuf_max=16777216
|
||||
|
@ -131,3 +187,4 @@ net.inet.tcp.delayed_ack=0
|
|||
|
||||
net.inet.udp.blackhole=1
|
||||
net.inet.ip.redirect=0
|
||||
net.inet.ip.forwarding=0
|
||||
|
|
Loading…
Reference in New Issue