From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-CO1-obe.outbound.protection.outlook.com (mail-co1nam03on0085.outbound.protection.outlook.com [104.47.40.85]) by dpdk.org (Postfix) with ESMTP id C8E84234 for ; Tue, 11 Apr 2017 20:59:26 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=KCqNuqiVOW2E2xPKDzym6zh78bRlmri0oXkxF1ekTeo=; b=e+QnappH50Sl/c5KW4Mpy8vZRWdu29qYMnuV4Bb0JSCmBuxF6G7N5lZN8jVC2XwjG197RgL4KGAh3lB4+9TOjAqvp5dEk5V1rwIixb+6rEubHVTlETjIOemhXNcuBBpFWUUUOTjdAJQPTym+hDKVCJuiaGBQIfEqtcMqZLLMYUo= Authentication-Results: intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=none action=none header.from=caviumnetworks.com; Received: from lio357.in.caveonetworks.com (14.140.2.178) by DM3PR07MB2284.namprd07.prod.outlook.com (10.164.33.158) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1019.17; Tue, 11 Apr 2017 18:59:23 +0000 From: Shijith Thotton To: Ferruh Yigit , John McNamara , Netanel Belgazal , Evgeny Schemeilin Cc: dev@dpdk.org Date: Wed, 12 Apr 2017 00:26:45 +0530 Message-Id: <1491937010-16553-6-git-send-email-shijith.thotton@caviumnetworks.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1491937010-16553-1-git-send-email-shijith.thotton@caviumnetworks.com> References: <1491465117-11252-1-git-send-email-shijith.thotton@caviumnetworks.com> <1491937010-16553-1-git-send-email-shijith.thotton@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [14.140.2.178] X-ClientProxiedBy: MAXPR01CA0027.INDPRD01.PROD.OUTLOOK.COM (10.164.147.34) To DM3PR07MB2284.namprd07.prod.outlook.com (10.164.33.158) X-MS-Office365-Filtering-Correlation-Id: 8b85eec7-6f55-4d3f-98d7-08d4810cdf5d X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(201703131423075)(201703031133081); SRVR:DM3PR07MB2284; X-Microsoft-Exchange-Diagnostics: 1; DM3PR07MB2284; 3:WZ+RIHmMpG5LuYa5a2qP6FQEYMUq/szLccBCs4rAXdMcrsNlLCwzgxJiELBD8rU2Ltw7hilUWcKAgz6AO/kQ9TyJ4qQVpLLSNvpqxGhvklgzqjs9tAuP5lfzLHOMJPRfBc/vdxo5RHNmoQSlta4fv8zK21v+hlHZilWy8CF/HT+hgjOABCRaROGMJDiMLzjDU4o1ox2Uya5L1DoDvu5Hg+4YqqALn8Mcoj3GjosKyOj2EotuRfYmKCmvPc/YUWspZGld3DqjxxKrG08+0f8at0dRDV8YKWOEab0mRlLP76Zg6kS6CLeWVGZ5huYFTBLelcbkczOvzo2XoVXIBqOVwg==; 25:hBhfXf2jr1q683Q2hg1hzQNKysRkkTPK/V5ECHXg+CNG+/GWBGdN+RmMu8BqBQAuNZqtfUu8F77zh6pH3thuEeEmpOaJS901pPMiCs1t0UQikXUMbtLTt3YCLCceTUb8pFgEzO4855+iU163nAlIiggW5UzVXFRD25wj4855zhmb9qzS12PdZsPPyIHYg27i5G3izB77p+q/xSN3eWLE0bvt7SRlfNJt3ycLm6r2hWOlpWITq9jbikQ4kSNgBKE29yd5LLPCConage6qaDcqhvoYZmiWTSOyTHLE6JahPuVMW1dTW9j0Zq3AOntHWyczZTWUMP3WaM8fIJiUZGQ7En7LnZsfWdcI9eR/aWVAVANem2WtHOxIxiWC76PyR43h3o02eu5eLLFYcP/zq5lSTkWGLTgxeGzvDFY656kj5W/7Ggqc/qNxOyel7oV/D/4wH5TvNWkWp7BmzykH2vPvMg== X-Microsoft-Exchange-Diagnostics: 1; DM3PR07MB2284; 31:LsfYDhx/c6eI9/JZ5wyCAbumCJsRN3MYC7NCIJPZyBfxYC6N5AWQiUlb5h9jICEXffKLkeydYJjR8fDGmWyU3eXb0pvUvJSO6yHdN+Ut+XCuF5DMjP9BiJ8IsZceS5zlpHAeTP5rZP1cr2UJ5j//gyq73wK352MZWFqFVoK+zzY5zMNpkDVxEwqSyMXFKm7Ve8JoaptvacO2a3lA8E8pDHKbhjhfYePb4xUti3n5e9Drz/umVj/C0EoJ1/PlTjOP9Ivno73C/nZAjDFN4zLPXo5QbCO1n+fZqiDazMHPACI=; 20:1c2RDIpizISa+uHgre7eIWrFRCZbWqV3clz83NI0k1bpl/2BQqVyw35LWMNXlV1+XrhQv5iOsKFiDvZPORCKwbAIhjA+Sd6yyUTz1AmzvTAO0cTSx12YO8NYUBqTWc8IvKiIpxY1xZrhzfCfgMdscDRQksH494B6t6Z1WzBCxtczM35jFbNsruTZD6RpXIVcitrNGYH1MersqNBorNfhuRDbWSPSvmYAUQSuq7GTca+M6O8CukXKSSRgZtiHD+EbSdIhkYCJux+iKlTCHztEITqWh7pXkd8HKxEL4uNPOpBTbcLqlgls6zn2XJ+PrkVB/SoW1SV63ZzFXlVp5HhM/7U2iifwzMLMwADw02LI8Q63vOSiDdXrmaKTnGkrc513CKzsXY+RyteuD43Y41F3pFg2g52UWjHao6iJqpnDhlCkOC7IY5kiQoqgMcUDwMlZGyFsqDmHhcB+cIQLBb0iwgQXrTpDGpSzhFU+jcRpsjck+8extGaXLWinjgwmdSFyxhAmd2QGBEhvrUBCYAsD+VMIC3LMudMx2Wuul2TSCtla+oaBu0vgnxB7vnebp69xlm2Avjebe9hIE8Gpb19FhBi8He+RXMTbCzZ/eVvIOcc= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(228905959029699); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(601004)(2401047)(8121501046)(5005006)(3002001)(10201501046)(93006095)(6041248)(20161123562025)(20161123560025)(201703131423075)(201702281528075)(201703061421075)(20161123555025)(20161123564025)(6072148); SRVR:DM3PR07MB2284; BCL:0; PCL:0; RULEID:; SRVR:DM3PR07MB2284; X-Microsoft-Exchange-Diagnostics: 1; DM3PR07MB2284; 4:PrYMZGISP4pMQwZLaKv5s/kDFMayBMB6uXG8FaS1tUvA5VxDO0/NsXT7DQ1ZaABavdLSxjgatbbh9RwHH77yCiCSGo5eBM3LIQniQy/vhadVsmuj/UfwpCHTABi5uxvSXtpfaOCy1uNvT/ANsfSYTuVrJBcrCni5Yrf5mmErs2iUaBT0FbRZBrymr4V9xC8xJ/hdb90HuhlyCBfHnqCaxoMcwfBMknoz2dOJJOgqWJiVfLwm/2ZUxsqviW2OVhWuH4bmMmbdX66k0cminqEb+weNdA6vFipRoBxklW3iJqRWrgkcYeh05vOW+dHQVZe20lz1sGZ9ubldF3V7q7woflfizW21IVWjrA027FIDSqICTdSJ9WoMD1mwy4wYZ/8t1aFUsgXdxP6pHVXrWuAqhf99BouaKJXB4eqW+ouMVxsr/3U27WKMj4YtmsRmNjU8XhAjW7wdcynRYkYLH15nk+a4rylK12CPR3xdr6fLY8lnpfqQiYggWbJqU0RzqQQVQCe1ncW1Bbso0H2Rc3Kg7xfjbARdzb/JSf+6rE8fFnJ4U7E7vOPSQTB+r0ziy39JMPdF+kDOP+RErfDtueJ28+mAWuFGhKhvFKXvw+2mDdrVgh+6QlrfOi94gW/Jm5VO82vey2mRBfLau4Z1pt5jjhg3A6RCaE2OV1GGLscEhsX7Itd5mHhysXLxXFGqeR3ZiMqJssOBPnCAq2WeMQSySeWbdiXsy3QvwVH2oR6wuuW3zAoQnqIwwBlkosWsveMN X-Forefront-PRVS: 0274272F87 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(39840400002)(39400400002)(39410400002)(39850400002)(39450400003)(2906002)(6512007)(36756003)(7736002)(53936002)(4326008)(305945005)(189998001)(33646002)(5009440100003)(50466002)(81166006)(8676002)(48376002)(50226002)(50986999)(76176999)(575784001)(38730400002)(5660300001)(6486002)(47776003)(42882006)(6666003)(4720700003)(66066001)(2950100002)(6506006)(5003940100001)(3846002)(42186005)(6116002)(25786009)(110426004); DIR:OUT; SFP:1101; SCL:1; SRVR:DM3PR07MB2284; H:lio357.in.caveonetworks.com; FPR:; SPF:None; MLV:nov; PTR:InfoNoRecords; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM3PR07MB2284; 23:ptAN5DWIdbX6sLmH9FcqPm33ZaJJo1pEaXteEc4y3?= =?us-ascii?Q?ghBp5RCYxXIlQGLYgRgPMKpGM2pclrQyVKFX0yZWpjbIaY/N16rRuiSPjwvH?= =?us-ascii?Q?GKLLixfOVGEZIbC4VfeLpKdzLRrm5Sc24jKuSv/N7uGG3UcHA5VlkuA1laWl?= =?us-ascii?Q?KaBn2uuqPJymIAoi9uJYnpuskf7rfA5j0Bog5eQ6I0gZV5gd6E8fRVaQBOGm?= =?us-ascii?Q?FvoViNcf/AfsdzPJWyJ+ATB8cNEwnuMzc2a4nqQZxqyuo5ywqYvTrgVGHkTw?= =?us-ascii?Q?ZAATJmmosYFN3AuEGcUabia+A7+V7mb1R51rS5Mw9Qi3QzbJiWSE9yFlEVdf?= =?us-ascii?Q?RSKs1x/99da+CvZLFdhht2KC/5zBbCqLajID4M4SMXdKyiYDrlOGpwg9F1pN?= =?us-ascii?Q?/ndWcqb5lFQ/XY0UN2n29mMkzjhmsDIu1kO4/y83Mu5Am2Hu6fkdSJuo9mCm?= =?us-ascii?Q?kwUKyZrzywYZahpV5zCG+CWktryMXFMst2wzdf1SqDMeVc9HqUcut5/JWKeF?= =?us-ascii?Q?ol3d2hD3dI8L9FsLiYbHzrPCcpWMzB2vxIID9x7W05/oIppDgL5+CUSqY03k?= =?us-ascii?Q?Bvem4duXGjrTmFNc+O7lACjGRRtRsJviaOlvWHvTE035tTSZVu933etTwZwA?= =?us-ascii?Q?9WGQQscJQUIM1n+fPKcUy7JdafmVo5XxQb5w6uRfGFJgp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RGPHN7W9GBsgPtWqWqPJkfmzZ8JEN7QKDLsjE0Sp09o2/nez4GwhGxt+9ZHTrJRmny7DH3i2hWXcRg==; 24:qbaKeFkT//KVfye0XRvd12VfeXyj3yD4RznPABh8tY+dwwrGQFHB/YvplbXwz1mBAPEeect1kTqFtvucciYcZJTi8UGT0KnR20zVSMUsJtY= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DM3PR07MB2284; 7:vb1nM11RIJiB0xVjBls54HzFRr5Y33+8vV2smieptvXWVNKfK/aZCLFWsJqkz0G2zfjGU0Nxa5wdn8jxeFz51qhFpjBv7dKdEFdPfcjxoI720utFdl3aNceHvK+9g0I0xS8tnopLodhfJnWRKm4MkCHb65JZuOaVQHYeIKEG6kwaQC4BHgqjZM7Gj+0B2b4EYv7OqTSWMx3X7OHpwW+uXKkV968TZt5M5JuOQX+/PT4Qut/HVjKK1jJOmECvhhmxjJse39vfsIaagXpT9WeHYoDbeW4oOLBtw1yUqauUYSQZXifkvEVewXjjO2Fmimcj54tdM71UUroiu5sS8eIU2w== X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Apr 2017 18:59:23.5211 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM3PR07MB2284 Subject: [dpdk-dev] [PATCH v2 05/10] doc: refer PMD compile and test section from ena doc X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Apr 2017 18:59:27 -0000 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 Acked-by: John McNamara --- doc/guides/nics/ena.rst | 69 ++++++++++++++----------------------------------- 1 file changed, 20 insertions(+), 49 deletions(-) diff --git a/doc/guides/nics/ena.rst b/doc/guides/nics/ena.rst index c2d6b85..d19912e 100644 --- a/doc/guides/nics/ena.rst +++ b/doc/guides/nics/ena.rst @@ -200,52 +200,23 @@ application runs to completion, the ENA can be detached from igb_uio if necessar Usage example ------------- -This section demonstrates how to launch **testpmd** with Amazon ENA -devices managed by librte_pmd_ena. - -#. Load the kernel modules: - - .. code-block:: console - - modprobe uio - insmod ./x86_64-native-linuxapp-gcc/kmod/igb_uio.ko - - .. note:: - - Currently Amazon ENA PMD driver depends on igb_uio user space I/O kernel module - -#. Mount and request huge pages: - - .. code-block:: console - - mount -t hugetlbfs nodev /mnt/hugepages - echo 1024 > /sys/kernel/mm/hugepages/hugepages-2048kB/nr_hugepages - -#. Bind UIO driver to ENA device (using provided by DPDK binding tool): - - .. code-block:: console - - ./usertools/dpdk-devbind.py --bind=igb_uio 0000:02:00.1 - -#. 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:02:00.1 on NUMA socket -1 - EAL: probe driver: 1d0f:ec20 rte_ena_pmd - EAL: PCI memory mapped at 0x7f9b6c400000 - PMD: eth_ena_dev_init(): Initializing 0:2:0.1 - Interactive-mode selected - Configuring Port 0 (socket 0) - Port 0: 00:00:00:11:00:01 - Checking link statuses... - Port 0 Link Up - speed 10000 Mbps - full-duplex - Done - testpmd> +Follow instructions available in the document +:ref:`compiling and testing a PMD for a NIC ` to launch +**testpmd** with Amazon ENA devices managed by librte_pmd_ena. + +Example output: + +.. code-block:: console + + [...] + EAL: PCI device 0000:02:00.1 on NUMA socket -1 + EAL: probe driver: 1d0f:ec20 rte_ena_pmd + EAL: PCI memory mapped at 0x7f9b6c400000 + PMD: eth_ena_dev_init(): Initializing 0:2:0.1 + Interactive-mode selected + Configuring Port 0 (socket 0) + Port 0: 00:00:00:11:00:01 + Checking link statuses... + Port 0 Link Up - speed 10000 Mbps - full-duplex + Done + testpmd> -- 1.8.3.1