add `carrier=on` while insmod rte_kni.ko in doc.

This commit is contained in:
jfb8856606 2019-06-26 18:37:55 +08:00
parent 1646932aaf
commit ac6d8f46a6
4 changed files with 32 additions and 13 deletions

View File

@ -61,7 +61,7 @@ Currently, besides authorized DNS server of DNSPod, there are various products i
# offload NIC # offload NIC
modprobe uio modprobe uio
insmod /data/f-stack/dpdk/x86_64-native-linuxapp-gcc/kmod/igb_uio.ko insmod /data/f-stack/dpdk/x86_64-native-linuxapp-gcc/kmod/igb_uio.ko
insmod /data/f-stack/dpdk/x86_64-native-linuxapp-gcc/kmod/rte_kni.ko insmod /data/f-stack/dpdk/x86_64-native-linuxapp-gcc/kmod/rte_kni.ko carrier=on
python dpdk-devbind.py --status python dpdk-devbind.py --status
ifconfig eth0 down ifconfig eth0 down
python dpdk-devbind.py --bind=igb_uio eth0 # assuming that use 10GE NIC and eth0 python dpdk-devbind.py --bind=igb_uio eth0 # assuming that use 10GE NIC and eth0

View File

@ -20,7 +20,7 @@ vlan_strip=1
# sleep when no pkts incomming # sleep when no pkts incomming
# unit: microseconds # unit: microseconds
idle_sleep=100 idle_sleep=0
# enabled port list # enabled port list
# #
@ -36,30 +36,49 @@ idle_sleep=100
# 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
# Number of vdev.
nb_vdev=0
# Port config section # Port config section
# Correspond to dpdk.port_list's index: port0, port1... # Correspond to dpdk.port_list's index: port0, port1...
[port0] [port0]
addr=172.16.0.12 addr=192.168.1.2
netmask=255.255.240.0 netmask=255.255.225.0
broadcast=172.16.15.255 broadcast=192.168.1.255
gateway=172.16.0.1 gateway=192.168.1.1
# lcore list used to handle this port # lcore list used to handle this port
# the format is same as port_list # 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
pcap=./a.pcap #pcap=./a.pcap
# Vdev config section
# orrespond to dpdk.nb_vdev's index: vdev0, vdev1...
# iface : Shouldn't set always.
# path : The vuser device path in container. Required.
# queues : The max queues of vuser. Optional, default 1, greater or equal to the number of processes.
# queue_size : Queue size.Optional, default 256.
# mac : The mac address of vuser. Optional, default random, if vhost use phy NIC, it should be set to the phy NIC's mac.
# cq : Optional, if queues = 1, default 0; if queues > 1 default 1.
#[vdev0]
##iface=/usr/local/var/run/openvswitch/vhost-user0
#path=/var/run/openvswitch/vhost-user0
#queues=1
#queue_size=256
#mac=00:00:00:00:00:01
#cq=0
# Kni config: if enabled and method=reject, # Kni config: if enabled and method=reject,
# all packets that do not belong to the following tcp_port and udp_port # 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 # will transmit to kernel; if method=accept, all packets that belong to
# the following tcp_port and udp_port will transmit to kernel. # the following tcp_port and udp_port will transmit to kernel.
[kni] #[kni]
enable=1 #enable=1
method=reject #method=reject
# The format is same as port_list # The format is same as port_list
tcp_port=80,443 #tcp_port=80,443
#udp_port=53 #udp_port=53
# FreeBSD network performance tuning configurations. # FreeBSD network performance tuning configurations.

View File

@ -45,7 +45,7 @@ The mount point can be made permanent across reboots, by adding the following li
modprobe uio modprobe uio
insmod /data/f-stack/dpdk/x86_64-native-linuxapp-gcc/kmod/igb_uio.ko insmod /data/f-stack/dpdk/x86_64-native-linuxapp-gcc/kmod/igb_uio.ko
insmod /data/f-stack/dpdk/x86_64-native-linuxapp-gcc/kmod/rte_kni.ko insmod /data/f-stack/dpdk/x86_64-native-linuxapp-gcc/kmod/rte_kni.ko carrier=on
python dpdk-devbind.py --status python dpdk-devbind.py --status
ifconfig eth0 down ifconfig eth0 down
python dpdk-devbind.py --bind=igb_uio eth0 # assuming that use 10GE NIC and eth0 python dpdk-devbind.py --bind=igb_uio eth0 # assuming that use 10GE NIC and eth0

View File

@ -25,7 +25,7 @@
modprobe uio modprobe uio
modprobe hwmon modprobe hwmon
insmod build/kmod/igb_uio.ko insmod build/kmod/igb_uio.ko
insmod build/kmod/rte_kni.ko insmod build/kmod/rte_kni.ko carrier=on
# set ip address # set ip address
#redhat7.3 #redhat7.3