X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=doc%2Fguides%2Fnics%2Fkni.rst;h=37c5411a32478c969065eb359bd18adb283df36b;hb=735155ee3b7c126b14ac28c5667d5a2d811ddf4c;hp=204fbd563aad61549fe72c2a357690f289b2d97b;hpb=5630257fcc30397e7217139ec55da4f301f59fb7;p=dpdk.git diff --git a/doc/guides/nics/kni.rst b/doc/guides/nics/kni.rst index 204fbd563a..37c5411a32 100644 --- a/doc/guides/nics/kni.rst +++ b/doc/guides/nics/kni.rst @@ -33,7 +33,7 @@ Usage EAL ``--vdev`` argument can be used to create KNI device instance, like:: - testpmd --vdev=net_kni0 --vdev=net_kn1 -- -i + dpdk-testpmd --vdev=net_kni0 --vdev=net_kn1 -- -i Above command will create ``kni0`` and ``kni1`` Linux network interfaces, those interfaces can be controlled by standard Linux tools. @@ -55,7 +55,8 @@ configuration: Interface name: kni# force bind kernel thread to a core : NO - mbuf size: MAX_PACKET_SZ + mbuf size: (rte_pktmbuf_data_room_size(pktmbuf_pool) - RTE_PKTMBUF_HEADROOM) + mtu: (conf.mbuf_size - RTE_ETHER_HDR_LEN) KNI control path is not supported with the PMD, since there is no physical backend device by default. @@ -64,7 +65,7 @@ backend device by default. PMD arguments ------------- -``no_request_thread``, by default PMD creates a phtread for each KNI interface +``no_request_thread``, by default PMD creates a pthread for each KNI interface to handle Linux network interface control commands, like ``ifconfig kni0 up`` With ``no_request_thread`` option, pthread is not created and control commands @@ -76,7 +77,7 @@ requests itself. Argument usage:: - testpmd --vdev "net_kni0,no_request_thread=1" -- -i + dpdk-testpmd --vdev "net_kni0,no_request_thread=1" -- -i PMD log messages @@ -96,13 +97,13 @@ It is possible to test PMD quickly using KNI kernel module loopback feature: .. code-block:: console - insmod build/kmod/rte_kni.ko lo_mode=lo_mode_fifo_skb + insmod /kernel/linux/kni/rte_kni.ko lo_mode=lo_mode_fifo_skb * Start testpmd with no physical device but two KNI virtual devices: .. code-block:: console - ./testpmd --vdev net_kni0 --vdev net_kni1 -- -i + ./dpdk-testpmd --vdev net_kni0 --vdev net_kni1 -- -i .. code-block:: console @@ -167,4 +168,3 @@ It is possible to test PMD quickly using KNI kernel module loopback feature: RX-packets: 71275820 RX-dropped: 0 RX-total: 71275820 TX-packets: 71275884 TX-dropped: 0 TX-total: 71275884 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -