From 14b5334b30958ac3d5b4435154c5fd9b585d47aa Mon Sep 17 00:00:00 2001 From: fengbojiang Date: Mon, 3 Nov 2025 12:04:23 +0800 Subject: [PATCH] Remove the relevant content for rte_kni.ko from the documentation. --- README.md | 7 ++----- doc/F-Stack_Build_Guide.md | 4 ++-- doc/F-Stack_Quick_Start_Guide.md | 5 ++--- doc/Launch_F-Stack_on_AWS_EC2_in_one_minute.md | 6 ++---- 4 files changed, 8 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index 469710823..00931badb 100644 --- a/README.md +++ b/README.md @@ -49,9 +49,8 @@ Currently, besides authorized DNS server of DNSPod, there are various products i cd f-stack # Compile DPDK cd dpdk/ - # re-enable kni now, to remove kni later - # disable crypto/openssl,net/ice for Redhat/Centos 7.x. - meson -Denable_kmods=true -Ddisable_libs=flow_classify -Ddisable_drivers=crypto/openssl,net/ice build + # igb_uio is about 5% more efficient than vfio-pci, so continue using it. + meson -Denable_kmods=true build ninja -C build ninja -C build install @@ -74,7 +73,6 @@ Currently, besides authorized DNS server of DNSPod, there are various products i # For Linux: modprobe uio insmod /data/f-stack/dpdk/build/kernel/linux/igb_uio/igb_uio.ko - 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` python dpdk-devbind.py --status ifconfig eth0 down 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 sleep 10 ifconfig veth0 netmask   broadcast hw ether route add -net 0.0.0.0 gw dev veth0 - echo 1 > /sys/class/net/veth0/carrier # if `carrier=on` not set while `insmod rte_kni.ko` # route add -net ... # other route rules ## Nginx Testing Result diff --git a/doc/F-Stack_Build_Guide.md b/doc/F-Stack_Build_Guide.md index 71047109c..b8d1de8e4 100644 --- a/doc/F-Stack_Build_Guide.md +++ b/doc/F-Stack_Build_Guide.md @@ -16,8 +16,8 @@ $ git clone https://github.com/F-Stack/f-stack.git /data/f-stack # compile dpdk $ cd /data/f-stack/dpdk -# re-enable kni now, to remove kni later -$ meson -Denable_kmods=true -Ddisable_libs=flow_classify build +# igb_uio is about 5% more efficient than vfio-pci, so continue using it. +$ meson -Denable_kmods=true build $ ninja -C build $ ninja -C build install diff --git a/doc/F-Stack_Quick_Start_Guide.md b/doc/F-Stack_Quick_Start_Guide.md index b8af18d2e..8ae8feb03 100644 --- a/doc/F-Stack_Quick_Start_Guide.md +++ b/doc/F-Stack_Quick_Start_Guide.md @@ -22,8 +22,8 @@ See Intel DPDK [linux_gsg](http://dpdk.org/doc/guides/linux_gsg/index.html) Read DPDK Quick Started Guide or run the command below cd /data/f-stack/dpdk - # re-enable kni now, to remove kni later - meson -Denable_kmods=true -Ddisable_libs=flow_classify build + # igb_uio is about 5% more efficient than vfio-pci, so continue using it. + meson -Denable_kmods=true build ninja -C build ninja -C build install @@ -51,7 +51,6 @@ The mount point can be made permanent across reboots, by adding the following li modprobe uio insmod /data/f-stack/dpdk/build/kernel/linux/igb_uio/igb_uio.ko - insmod /data/f-stack/dpdk/build/kernel/linux/kni/rte_kni.ko carrier=on python dpdk-devbind.py --status ifconfig eth0 down python dpdk-devbind.py --bind=igb_uio eth0 # assuming that use 10GE NIC and eth0 diff --git a/doc/Launch_F-Stack_on_AWS_EC2_in_one_minute.md b/doc/Launch_F-Stack_on_AWS_EC2_in_one_minute.md index 081bd5872..efc82064d 100644 --- a/doc/Launch_F-Stack_on_AWS_EC2_in_one_minute.md +++ b/doc/Launch_F-Stack_on_AWS_EC2_in_one_minute.md @@ -12,8 +12,8 @@ # Compile DPDK cd /data/f-stack/dpdk - # re-enable kni now, to remove kni later - meson -Denable_kmods=true -Ddisable_libs=flow_classify build + # igb_uio is about 5% more efficient than vfio-pci, so continue using it. + meson -Denable_kmods=true build ninja -C build ninja -C build install @@ -29,7 +29,6 @@ modprobe uio modprobe hwmon insmod build/kernel/linux/igb_uio/igb_uio.ko - insmod build/kernel/linux/kni/rte_kni.ko carrier=on # set ip address #redhat7.3 @@ -94,4 +93,3 @@ sleep 10 ifconfig veth0 ${myaddr} netmask ${mymask} broadcast ${mybc} hw ether ${myhw} route add -net 0.0.0.0 gw ${mygw} dev veth0 - echo 1 > /sys/class/net/veth0/carrier # if `carrier=on` not set while `insmod rte_kni.ko`. -- 2.43.0