Skip to content

Commit 14b5334

Browse files
committed
Remove the relevant content for rte_kni.ko from the documentation.
1 parent b6692e6 commit 14b5334

File tree

4 files changed

+8
-14
lines changed

4 files changed

+8
-14
lines changed

README.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,8 @@ Currently, besides authorized DNS server of DNSPod, there are various products i
4949
cd f-stack
5050
# Compile DPDK
5151
cd dpdk/
52-
# re-enable kni now, to remove kni later
53-
# disable crypto/openssl,net/ice for Redhat/Centos 7.x.
54-
meson -Denable_kmods=true -Ddisable_libs=flow_classify -Ddisable_drivers=crypto/openssl,net/ice build
52+
# igb_uio is about 5% more efficient than vfio-pci, so continue using it.
53+
meson -Denable_kmods=true build
5554
ninja -C build
5655
ninja -C build install
5756

@@ -74,7 +73,6 @@ Currently, besides authorized DNS server of DNSPod, there are various products i
7473
# For Linux:
7574
modprobe uio
7675
insmod /data/f-stack/dpdk/build/kernel/linux/igb_uio/igb_uio.ko
77-
insmod /data/f-stack/dpdk/build/kernel/linux/kni/rte_kni.ko carrier=on # carrier=on is necessary, otherwise need to be up `veth0` via `echo 1 > /sys/class/net/veth0/carrier`
7876
python dpdk-devbind.py --status
7977
ifconfig eth0 down
8078
python dpdk-devbind.py --bind=igb_uio eth0 # assuming that use 10GE NIC and eth0
@@ -148,7 +146,6 @@ for more details, see [nginx guide](https://github.com/F-Stack/f-stack/blob/mast
148146
sleep 10
149147
ifconfig veth0 <ipaddr> netmask <netmask>  broadcast <broadcast> hw ether <mac addr>
150148
route add -net 0.0.0.0 gw <gateway> dev veth0
151-
echo 1 > /sys/class/net/veth0/carrier # if `carrier=on` not set while `insmod rte_kni.ko`
152149
# route add -net ... # other route rules
153150

154151
## Nginx Testing Result

doc/F-Stack_Build_Guide.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ $ git clone https://github.com/F-Stack/f-stack.git /data/f-stack
1616

1717
# compile dpdk
1818
$ cd /data/f-stack/dpdk
19-
# re-enable kni now, to remove kni later
20-
$ meson -Denable_kmods=true -Ddisable_libs=flow_classify build
19+
# igb_uio is about 5% more efficient than vfio-pci, so continue using it.
20+
$ meson -Denable_kmods=true build
2121
$ ninja -C build
2222
$ ninja -C build install
2323

doc/F-Stack_Quick_Start_Guide.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ See Intel DPDK [linux_gsg](http://dpdk.org/doc/guides/linux_gsg/index.html)
2222
Read DPDK Quick Started Guide or run the command below
2323

2424
cd /data/f-stack/dpdk
25-
# re-enable kni now, to remove kni later
26-
meson -Denable_kmods=true -Ddisable_libs=flow_classify build
25+
# igb_uio is about 5% more efficient than vfio-pci, so continue using it.
26+
meson -Denable_kmods=true build
2727
ninja -C build
2828
ninja -C build install
2929

@@ -51,7 +51,6 @@ The mount point can be made permanent across reboots, by adding the following li
5151

5252
modprobe uio
5353
insmod /data/f-stack/dpdk/build/kernel/linux/igb_uio/igb_uio.ko
54-
insmod /data/f-stack/dpdk/build/kernel/linux/kni/rte_kni.ko carrier=on
5554
python dpdk-devbind.py --status
5655
ifconfig eth0 down
5756
python dpdk-devbind.py --bind=igb_uio eth0 # assuming that use 10GE NIC and eth0

doc/Launch_F-Stack_on_AWS_EC2_in_one_minute.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212

1313
# Compile DPDK
1414
cd /data/f-stack/dpdk
15-
# re-enable kni now, to remove kni later
16-
meson -Denable_kmods=true -Ddisable_libs=flow_classify build
15+
# igb_uio is about 5% more efficient than vfio-pci, so continue using it.
16+
meson -Denable_kmods=true build
1717
ninja -C build
1818
ninja -C build install
1919

@@ -29,7 +29,6 @@
2929
modprobe uio
3030
modprobe hwmon
3131
insmod build/kernel/linux/igb_uio/igb_uio.ko
32-
insmod build/kernel/linux/kni/rte_kni.ko carrier=on
3332

3433
# set ip address
3534
#redhat7.3
@@ -94,4 +93,3 @@
9493
sleep 10
9594
ifconfig veth0 ${myaddr} netmask ${mymask} broadcast ${mybc} hw ether ${myhw}
9695
route add -net 0.0.0.0 gw ${mygw} dev veth0
97-
echo 1 > /sys/class/net/veth0/carrier # if `carrier=on` not set while `insmod rte_kni.ko`.

0 commit comments

Comments
 (0)