mirror of https://github.com/F-Stack/f-stack.git
Configuration: optimize the description.
This commit is contained in:
parent
8c317b2231
commit
aa3f528959
|
@ -19,20 +19,20 @@ vlan_strip=1
|
||||||
# num ::= '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9'
|
# num ::= '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9'
|
||||||
#
|
#
|
||||||
# examples
|
# examples
|
||||||
# 1-3 ports 1,2,3 are enabled
|
# 0-3 ports 0, 1,2,3 are enabled
|
||||||
# 1-3,4,7 ports 1,2,3,4,7 are enabled
|
# 1-3,4,7 ports 1,2,3,4,7 are enabled
|
||||||
port_list=0
|
port_list=0
|
||||||
|
|
||||||
## Port config section
|
## Port config section
|
||||||
## According to dpdk.nb_ports: port0, port1...
|
## Correspond to dpdk.port_list's index: port0, port1...
|
||||||
[port0]
|
[port0]
|
||||||
addr=192.168.1.2
|
addr=192.168.1.2
|
||||||
netmask=255.255.255.0
|
netmask=255.255.255.0
|
||||||
broadcast=192.168.1.255
|
broadcast=192.168.1.255
|
||||||
gateway=192.168.1.1
|
gateway=192.168.1.1
|
||||||
# lcore list used to handle this port
|
|
||||||
# the format is same as port_list
|
|
||||||
|
|
||||||
|
## lcore list used to handle this port
|
||||||
|
## the format is same as port_list
|
||||||
# lcore_list= 0
|
# lcore_list= 0
|
||||||
|
|
||||||
## Packet capture path, this will hurt performance
|
## Packet capture path, this will hurt performance
|
||||||
|
@ -45,6 +45,7 @@ gateway=192.168.1.1
|
||||||
#[kni]
|
#[kni]
|
||||||
#enable=1
|
#enable=1
|
||||||
#method=reject
|
#method=reject
|
||||||
|
## The format is same as port_list
|
||||||
#tcp_port=80,443
|
#tcp_port=80,443
|
||||||
#udp_port=53
|
#udp_port=53
|
||||||
|
|
||||||
|
@ -69,6 +70,8 @@ net.inet.tcp.tcbhashsize=65536
|
||||||
kern.ipc.somaxconn=32768
|
kern.ipc.somaxconn=32768
|
||||||
kern.ipc.maxsockbuf=16777216
|
kern.ipc.maxsockbuf=16777216
|
||||||
|
|
||||||
|
net.link.ether.inet.maxhold=5
|
||||||
|
|
||||||
net.inet.tcp.fast_finwait2_recycle=1
|
net.inet.tcp.fast_finwait2_recycle=1
|
||||||
net.inet.tcp.sendspace=16384
|
net.inet.tcp.sendspace=16384
|
||||||
net.inet.tcp.recvspace=8192
|
net.inet.tcp.recvspace=8192
|
||||||
|
|
|
@ -19,20 +19,20 @@ vlan_strip=1
|
||||||
# num ::= '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9'
|
# num ::= '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9'
|
||||||
#
|
#
|
||||||
# examples
|
# examples
|
||||||
# 1-3 ports 1,2,3 are enabled
|
# 0-3 ports 0, 1,2,3 are enabled
|
||||||
# 1-3,4,7 ports 1,2,3,4,7 are enabled
|
# 1-3,4,7 ports 1,2,3,4,7 are enabled
|
||||||
port_list=0
|
port_list=0
|
||||||
|
|
||||||
## Port config section
|
## Port config section
|
||||||
## According to dpdk.nb_ports: port0, port1...
|
## Correspond to dpdk.port_list's index: port0, port1...
|
||||||
[port0]
|
[port0]
|
||||||
addr=192.168.1.2
|
addr=192.168.1.2
|
||||||
netmask=255.255.255.0
|
netmask=255.255.255.0
|
||||||
broadcast=192.168.1.255
|
broadcast=192.168.1.255
|
||||||
gateway=192.168.1.1
|
gateway=192.168.1.1
|
||||||
# lcore list used to handle this port
|
|
||||||
# the format is same as port_list
|
|
||||||
|
|
||||||
|
## lcore list used to handle this port
|
||||||
|
## the format is same as port_list
|
||||||
# lcore_list= 0
|
# lcore_list= 0
|
||||||
|
|
||||||
## Packet capture path, this will hurt performance
|
## Packet capture path, this will hurt performance
|
||||||
|
@ -45,6 +45,7 @@ gateway=192.168.1.1
|
||||||
#[kni]
|
#[kni]
|
||||||
#enable=1
|
#enable=1
|
||||||
#method=reject
|
#method=reject
|
||||||
|
## The format is same as port_list
|
||||||
#tcp_port=80,443
|
#tcp_port=80,443
|
||||||
#udp_port=53
|
#udp_port=53
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue