From: Shijith Thotton Date: Tue, 11 Apr 2017 18:56:42 +0000 (+0530) Subject: doc: refer PMD compile/test section from ark guide X-Git-Tag: spdx-start~3550 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=1cbf25e3bb63d871dd88371060d6368e940174db;p=dpdk.git doc: refer PMD compile/test section from ark guide Refer the section which explains driver compilation and running of testpmd in Linux, instead of describing it in driver documentation. Signed-off-by: Shijith Thotton --- diff --git a/doc/guides/nics/ark.rst b/doc/guides/nics/ark.rst index 064ed11c53..a7c2590b4b 100644 --- a/doc/guides/nics/ark.rst +++ b/doc/guides/nics/ark.rst @@ -239,58 +239,23 @@ application runs to completion, the ARK PMD can be detached from igb_uio if nece Usage Example ------------- -This section demonstrates how to launch **testpmd** with Atomic Rules ARK -devices managed by librte_pmd_ark. - -#. Load the kernel modules: - - .. code-block:: console - - modprobe uio - insmod ./x86_64-native-linuxapp-gcc/kmod/igb_uio.ko - - .. note:: - - The ARK PMD driver depends upon the igb_uio user space I/O kernel module - -#. Mount and request huge pages: - - .. code-block:: console - - mount -t hugetlbfs nodev /mnt/huge - echo 256 > /sys/devices/system/node/node0/hugepages/hugepages-2048kB/nr_hugepages - -#. Bind UIO driver to ARK device at 0000:01:00.0 (using dpdk-devbind.py): - - .. code-block:: console - - ./usertools/dpdk-devbind.py --bind=igb_uio 0000:01:00.0 - - .. note:: - - The last argument to dpdk-devbind.py is the 4-tuple that indentifies a specific PCIe - device. You can use lspci -d 1d6c: to indentify all Atomic Rules devices in the system, - and thus determine the correct 4-tuple argument to dpdk-devbind.py - -#. Start testpmd with basic parameters: - - .. code-block:: console - - ./x86_64-native-linuxapp-gcc/app/testpmd -l 0-3 -n 4 -- -i - - Example output: - - .. code-block:: console - - [...] - EAL: PCI device 0000:01:00.0 on NUMA socket -1 - EAL: probe driver: 1d6c:100e rte_ark_pmd - EAL: PCI memory mapped at 0x7f9b6c400000 - PMD: eth_ark_dev_init(): Initializing 0:2:0.1 - ARKP PMD CommitID: 378f3a67 - Configuring Port 0 (socket 0) - Port 0: DC:3C:F6:00:00:01 - Checking link statuses... - Port 0 Link Up - speed 100000 Mbps - full-duplex - Done - testpmd> +Follow instructions available in the document +:ref:`compiling and testing a PMD for a NIC ` to launch +**testpmd** with Atomic Rules ARK devices managed by librte_pmd_ark. + +Example output: + +.. code-block:: console + + [...] + EAL: PCI device 0000:01:00.0 on NUMA socket -1 + EAL: probe driver: 1d6c:100e rte_ark_pmd + EAL: PCI memory mapped at 0x7f9b6c400000 + PMD: eth_ark_dev_init(): Initializing 0:2:0.1 + ARKP PMD CommitID: 378f3a67 + Configuring Port 0 (socket 0) + Port 0: DC:3C:F6:00:00:01 + Checking link statuses... + Port 0 Link Up - speed 100000 Mbps - full-duplex + Done + testpmd>