diff --git a/app/nginx-1.11.10/conf/f-stack.conf b/app/nginx-1.11.10/conf/f-stack.conf index 15163164..38b6d078 100644 --- a/app/nginx-1.11.10/conf/f-stack.conf +++ b/app/nginx-1.11.10/conf/f-stack.conf @@ -19,20 +19,20 @@ vlan_strip=1 # num ::= '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' # # 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 port_list=0 ## Port config section -## According to dpdk.nb_ports: port0, port1... +## Correspond to dpdk.port_list's index: port0, port1... [port0] addr=192.168.1.2 netmask=255.255.255.0 broadcast=192.168.1.255 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 ## Packet capture path, this will hurt performance @@ -45,6 +45,7 @@ gateway=192.168.1.1 #[kni] #enable=1 #method=reject +## The format is same as port_list #tcp_port=80,443 #udp_port=53 @@ -69,6 +70,8 @@ net.inet.tcp.tcbhashsize=65536 kern.ipc.somaxconn=32768 kern.ipc.maxsockbuf=16777216 +net.link.ether.inet.maxhold=5 + net.inet.tcp.fast_finwait2_recycle=1 net.inet.tcp.sendspace=16384 net.inet.tcp.recvspace=8192 diff --git a/config.ini b/config.ini index 85427b1c..38b6d078 100644 --- a/config.ini +++ b/config.ini @@ -19,20 +19,20 @@ vlan_strip=1 # num ::= '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' # # 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 port_list=0 ## Port config section -## According to dpdk.nb_ports: port0, port1... +## Correspond to dpdk.port_list's index: port0, port1... [port0] addr=192.168.1.2 netmask=255.255.255.0 broadcast=192.168.1.255 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 ## Packet capture path, this will hurt performance @@ -45,6 +45,7 @@ gateway=192.168.1.1 #[kni] #enable=1 #method=reject +## The format is same as port_list #tcp_port=80,443 #udp_port=53