From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-BY2-obe.outbound.protection.outlook.com (mail-by2nam01on0078.outbound.protection.outlook.com [104.47.34.78]) by dpdk.org (Postfix) with ESMTP id 52C9A37AC for ; Thu, 6 Apr 2017 09:54:59 +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=/67/6Kv1PR6nOOL9GDbKb8uCg38Km03pDf6TQYeQmXI=; b=by4z7x+BejDUZ02/GEjrX9Hbym+KIreYihN4EgBHlm6ZojJjfBlZcxH4hkeGAyd5qLsjyk4tzBG8SMtfiBPZfie/2a23NCUF66JpjHxYOfk5lIRhfCMRf1tD3VaY3k+MOByvsZLUW1KnpJV26CbZ76G61GdVlE95hpSevN6qb5g= 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.1005.10; Thu, 6 Apr 2017 07:54:55 +0000 From: Shijith Thotton To: John Mcnamara , Ferruh Yigit , Rasesh Mody , Harish Patil Cc: dev@dpdk.org Date: Thu, 6 Apr 2017 13:21:57 +0530 Message-Id: <1491465117-11252-9-git-send-email-shijith.thotton@caviumnetworks.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1491465117-11252-1-git-send-email-shijith.thotton@caviumnetworks.com> References: <1491059040-20647-1-git-send-email-shijith.thotton@caviumnetworks.com> <1491465117-11252-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: BM1PR01CA0027.INDPRD01.PROD.OUTLOOK.COM (10.163.198.162) To DM3PR07MB2284.namprd07.prod.outlook.com (10.164.33.158) X-MS-Office365-Filtering-Correlation-Id: 6ddbfcf2-c23e-4aaf-94e7-08d47cc237c4 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(201703131423075)(201703031133081); SRVR:DM3PR07MB2284; X-Microsoft-Exchange-Diagnostics: 1; DM3PR07MB2284; 3:2kwXQy/bKe7RI9IHEnmQArAepZ6+rVThtnV3Ltmd0Zo3LEyJq/aGMkThuSMK2NXX6vTRg/ibfvXtw/xWwYJvAVC/ycC8RwpjODUyXsCBEMcoGVQBwu29VVluE0++iwP88Fo8qt2kOO/bHVm6/GP5KBLjgSRCGgJnQxbVTUMF/zWo69e2EjvzVq/P1cksJApbzPXDF7nbTtHO3KE+VSx1niHzKt6XPRua27Ou26D3qJ7x7clx3dKYVW9h1emQFVPP2SX+Smu8Fz96tt/W2G6TPhi/pqye2qYQqyQuWE4hNqP+LzdL/+bqE5kJIbWOoKEJS63TwSYuGA0+w2fLPBfN7Q==; 25:0kWs4qMTVXYVyMq3BaftV3bVL2EKi3iFnjQHsDQcfzKWfXOZZiq0JpPp6ea0D7J/13nupVqL656nUXQY1M+bw+PhtWDV8psOwGHKj7+9hpQvLXqMzBz7rMnWwdH43H/+m14HYtwDL497MSC/lmLDVzWRCP6xI8lDTeTdy6+cPcHS+1QvJuGXZNUSyxqoyN06PHyRnB7mRREgWNtcV+HE9Y1S/RPIsqaN55ygl5cuX2k2yDha4++HGPJ7G2io0NMtjGmd2OiwJ2/wRJeVm8+rpMVuRD5UARckJwJ0OyXUlKykDAeCbSuq0tX1PZzoRZzv4SFetV5rCExpnJemyQUo6lcABva4XDBcUyemHtFBtP3iAaHBvfEiL1QXxcESrGo0SeN+X1uoc13bkT87OeDYCrpNj9my0dr5T4fSHYcyknSwKKJlyFA5aPbao1buznzKQ0GKCEsp9TAsWL9UI+9z0g== X-Microsoft-Exchange-Diagnostics: 1; DM3PR07MB2284; 31:+yKBbEWeG8uBdi9UERTh98mAEQI6rJ2V6JnviR0i8jb3u9qOJygNPSlas93GM2IAbIsdFLWfPI9+usxeXoeQQOULBBEJNZ5CpEncchhXLzy3GYxJqToTN6fJ1J5AMdzoZSGURwvOgBcUnd4/pV8wTsbYe7CBCcR9E7H4BkC4nunWInuFz36QHbZ8ZdbE0WBf/da8nD00O/bj5tEprFSnd8UcuRWPaml07KGJ3VQzQlM=; 20:xkzODkz7F1bsifT2XgF7O1809HdlwaNST+vBzOrCRFXdvBgM0DYICg4o0JZAXjMfFRNuoPgdMfEiIDWzG2+dWz4g7Yc6Wr2RlXluVfsliCA5Eyvh8a/DOdtp68H9Ixl7xqnzKa+nHWlz7iBOAYtqo8MFPjklTjLdIvy/8XohidWfr5OJg5mvHOuIDJZRDSK+4oc3LA/LE9wvd7/YXUZwmo8CGs7qYJvxWox4w/gqEI9pERew0tgXjmzKdTjj1utGpKS/ZulWEDO94CmVDSG1U56XJmWD3v7pCjsVmpwFC/+Sl2e1W6eTYJ0LHvCrm1E1/R//Pl3LnVjcXQBwQQbN2yU6AADuMorvbQ9HYCpvKS7WCoMLkZZBoql+ijMt3ApNMLhGzWvP+F/07p378zvEtZBY2VNwL1D7QaqZs0tURERmjfUNpPr/THZ2SepeLVQQsergucf2oh2ohaIHL2PjnXsqS+Z5/uW3ZC46Cn4xNPkTZfIpsZ4FVor3sxEBgqBSl/gAF8KWCtyeqD4Hx4bEw60Cn+Nw4IRPd2r1EVA/5kH4cf0H3vpnbOp4RbrUIhBr4k/0dyWfTaFzjT7EA8wFIi5b4+NZajujgqe3WOq/7Y8= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(601004)(2401047)(8121501046)(5005006)(93006095)(10201501046)(3002001)(6041248)(20161123564025)(20161123560025)(20161123555025)(20161123562025)(201703131423075)(201702281528075)(201703061421075)(6072148); SRVR:DM3PR07MB2284; BCL:0; PCL:0; RULEID:; SRVR:DM3PR07MB2284; X-Microsoft-Exchange-Diagnostics: 1; DM3PR07MB2284; 4:z9BVQnvQ7IbQRD5r+uhcMJNbSQfwDzegmLptRFuvpFAdUuCtb2fx//1WdfxKJLvSDqvXMTa4jDa+U1ibzxK2ie/bgwpxAxorBJGoAEd1CXUOoFK5dp6A8QM9Anv+WsEOrCcyjSxdiRVWlXddkY/MM+NjhLkCv+X8Y3Z/U9/HYX4cnP2duCAc6csRxrdWl/Rdq+xuNJi8EqTFzp/WSbdLe9V47SrABpE9oymDE6sZUG1n8/iohOr9HoatBQmvbM1h6kFUSMuBr5+Hv6Va2aLDh3mTBqRo0m2v1qqrQ9gwftpsx3/q9S91FaXoN4PynbZwp4r2oSJ7wn6Xd3dlCx3rbkjf2U5Q9aV1FZpb9hB+ar7o49gkXS13uXveccUsqzgl+nnsxyziVyKwsyGtowldLnIJkkSiq2SfZJS0ZO0ko8hEZWaKAz4K28c7nOo1XgWGHKnKnMJH+DZ61KW4ezp3jTLqXyfDaHjYLpkABF8I9yjM0N5dCc7u0X9VRnoFcNdtgUYR1/gDggOqILi6MkWEsaHwUOEk9qlTqGGH+UKwtPGY1wqnutN2hvI/ruIdet2CfK3O9TQSYk0iU6IGOgVtvGpGAlMU/uPeE78ko50PnraXokL6nQbLDEq6jzA3bRHcElHJBZFdBeMsHB/HjCLnkTuVouWjR7Lw30n9P013HQPbcVD1DIcH8wHpTEDvVV4S X-Forefront-PRVS: 02698DF457 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(39840400002)(39450400003)(39400400002)(39850400002)(39410400002)(50986999)(76176999)(36756003)(50226002)(48376002)(6506006)(6512007)(4326008)(47776003)(53936002)(25786009)(66066001)(50466002)(42882006)(2950100002)(4720700003)(38730400002)(6486002)(6116002)(5660300001)(3846002)(33646002)(5003940100001)(2906002)(7736002)(305945005)(5009440100003)(8676002)(189998001)(81166006)(42186005)(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:Nw21dWtRZbKs3JgJXA1tVii8q079r5svvCEW6M7fw?= =?us-ascii?Q?2IOwHjCfL4yAMqbc4hHYp7oAOY4WEq0fBfvf+mzl83oRdWPwckXAqyZiEHqq?= =?us-ascii?Q?+CS7pyOINIFc5mkL8E1ImoqnTpdisU6wzBJuasBlgmNoJXsZELrl0pt9ETaE?= =?us-ascii?Q?ZEXiDK0Jhpbl0/5oCPAO2Lz3dEyIi7MjdtncwsZ4C7GToZO6yWhKEvWcnePx?= =?us-ascii?Q?DLXu4C3IqzVb9JkRKdAGqWWcguakuV0N+1F1u6LXGbLKEDmFDYgXs7RucXSZ?= =?us-ascii?Q?bQUC+rJ8aGx4a8WQvjyPO7/pL6PMspR+XEH/lfCWWTfx+2Sy0uIrsM0/U9s5?= =?us-ascii?Q?zpkEvg497jkLpsSnua9O0jc5auyPbZ5sw4GKx9vK9/4WF66Lfg7t5JAK2h56?= =?us-ascii?Q?GtAd6fV38Kmro6AJu8cwYKRjS3Lg0em6oOdpqjNgdPlwnHMmXgLy27JAKs61?= =?us-ascii?Q?7fRRWBDPQTBTJp9W5rr3SjVTUuoiCXmNcNXbscU4pRNWD6x+L0Ncxl1ir7+W?= =?us-ascii?Q?SD1pvt7YFxm9h2/j5IllHh+kCoYG0AdR8/PVON9LWG6GkbueZdMB+2aZdX/Y?= =?us-ascii?Q?4XYxZDUKrk2KpdhfCVKCAuFmneN6tRbeEZXcYWIQNs/QYY+NVBMBkcGKZ94E?= =?us-ascii?Q?9rdfHh2OVUsflxJ1fFLE54OUHvRSs2PR7FsQucflNonqlOpblZktfKwXJA0s?= =?us-ascii?Q?u4vFCHnnlLEd550RUx0GtIocoRvKVEtrmGVLi6rlzD5joJYBMp8AaRtN0i/q?= =?us-ascii?Q?nFq3LlkHxoVRTgrgiS1U+Um+5tWNIX5/sMo3IG54lleCJh6tuAwVs+K2AlRz?= =?us-ascii?Q?ob4SrMz57qG4zfx89Q+r5VIiEPbmCcx8EG2n0pMCrb/1l+dyo2zgIPp1oSE6?= =?us-ascii?Q?g4aLoHcjmwYCIApHS03kqI950UomGBczNmUYAq26LtK2o5nzUkj4/UP94e+5?= =?us-ascii?Q?qjhDtlk4fBLazjhcfJHT12ezFGurKna0Y/NHDSa0h5+fAM87wwNXuaB4u43b?= =?us-ascii?Q?Yjo35J+rGwBrscqBQA8GHeD5xlkIf9Eb+HdqSi9a3mcDQ=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1; DM3PR07MB2284; 6:53eDaYq8VV2X2RQnauQHb0GZRL0uEM4zS3F1a0lgEFz2M7iCNrNEzRr6h4n6l1RtIXXOZyweeBIX95nDSi9H8gCxxqlbumgoUpR3JoWsJaJqtu1sPmPQc3mhRYBhoDmKhddR47vrf6qC27JcNAPg8zxK0UTg/Xy+WQ2jTX0woXXQ6wic7f/OOT+o3RrStMyvkPhx0VLvILyT8uLDd2aOQVREH1xhB1o2y0KddQ7Fsaz8HN7EgRCUf0eg6vlxiLv8BizvPi8qZu//5IgmTsQ9ZXjPlSBxpzX71H6P67l4LrOGQswohh8hfGkgcWo1FZuUQ3TzTQEojUMO1sLKEaZSGT93rqNfxap4uT4MI8869idPAth+3JcbSI47jx2BE1GgdSNLSAwAKPQv8M9v+IlOIQ==; 5:t6yubal3zCp1NLESotFwevm0FMDOxZmvtaD42EGybM+oMSR+eLfrRUmTlg241a6lVzIWg0JKfMjOIY6kvqw205j3ddFcl4dKjibtebYu+Hj33TIO9OUuNdpgcFiY/qqsiPw/Gsw53Ks7q1nJdtyY4A==; 24:llml/U2Yp2MVdKpTqkECX1PJE59iB17terhkjJwn/M+6rYD0pPLlynN9rgSAGV++PgSSY2sHwNvNxNNyRJE2TCPMFni8/mmB/G/w7c3W9rE= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DM3PR07MB2284; 7:ooPtp8oSoRxFy/R65SVrBrQxkiel0cWK1ITaJ3Ju/WJsgXbnf/B/95bFsM/oOdFPb/YtdjadLNf1gJC6WW548f+Yfy/wz6uvE+LuTXs81L902ATBkV/75lRjlTqGHkTOUVCtZTUN00hoFemGku21A4Iyqb+GKF7u6qfr9YlMnXsed+MsYPNe5AVuzlnakUmcwJi+E7Xul3uaUcHq8U9k6vJ0W2iR5jUBMFXQu6Nadk3pWBG1buq9JIWzvOOD8ci8aSF2f0TVVSneqbdNEgpuAkHJLpW/6Qa1sOwZjwE8cR8vMNtnqUq0AB0iUD36fU+7QkqdmNcYPWke3sd7vMayig== X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Apr 2017 07:54:55.0148 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM3PR07MB2284 Subject: [dpdk-dev] [PATCH 8/8] doc: refer PMD compile and test section from qede 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: Thu, 06 Apr 2017 07:55:00 -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 --- doc/guides/nics/qede.rst | 116 ++--------------------------------------------- 1 file changed, 4 insertions(+), 112 deletions(-) diff --git a/doc/guides/nics/qede.rst b/doc/guides/nics/qede.rst index eacb3da..4142057 100644 --- a/doc/guides/nics/qede.rst +++ b/doc/guides/nics/qede.rst @@ -124,119 +124,11 @@ enabling debugging options may affect system performance. Empty string indicates driver will pick up the firmware file from the default location. -Driver Compilation -~~~~~~~~~~~~~~~~~~ - -To compile QEDE PMD for Linux x86_64 gcc target, run the following ``make`` -command:: - - cd - make config T=x86_64-native-linuxapp-gcc install - -To compile QEDE PMD for Linux x86_64 clang target, run the following ``make`` -command:: - - cd - make config T=x86_64-native-linuxapp-clang install - -To compile QEDE PMD for FreeBSD x86_64 clang target, run the following ``gmake`` -command:: - - cd - gmake config T=x86_64-native-bsdapp-clang install - -To compile QEDE PMD for FreeBSD x86_64 gcc target, run the following ``gmake`` -command:: - - cd - gmake config T=x86_64-native-bsdapp-gcc install -Wl,-rpath=\ - /usr/local/lib/gcc49 CC=gcc49 - - -Sample Application Notes -~~~~~~~~~~~~~~~~~~~~~~~~ - -This section demonstrates how to launch ``testpmd`` with QLogic 4xxxx -devices managed by ``librte_pmd_qede`` in Linux operating system. - -#. Request huge pages: - - .. code-block:: console - - echo 1024 > /sys/kernel/mm/hugepages/hugepages-2048kB/nr_hugepages/ \ - nr_hugepages - -#. Load ``igb_uio`` driver: - - .. code-block:: console - - insmod ./x86_64-native-linuxapp-gcc/kmod/igb_uio.ko - -#. Bind the QLogic 4xxxx adapters to ``igb_uio`` loaded in the - previous step: - - .. code-block:: console - - ./usertools/dpdk-devbind.py --bind igb_uio 0000:84:00.0 0000:84:00.1 \ - 0000:84:00.2 0000:84:00.3 - -#. Start ``testpmd`` with basic parameters: - (Enable QEDE_DEBUG_INFO=y to view informational messages) - - .. code-block:: console - - testpmd -l 0,4-11 -n 4 -- -i --nb-cores=8 --portmask=0xf --rxd=4096 \ - --txd=4096 --txfreet=4068 --enable-rx-cksum --rxq=4 --txq=4 \ - --rss-ip --rss-udp - - [...] - - EAL: PCI device 0000:84:00.0 on NUMA socket 1 - EAL: probe driver: 1077:1634 rte_qede_pmd - EAL: Not managed by a supported kernel driver, skipped - EAL: PCI device 0000:84:00.1 on NUMA socket 1 - EAL: probe driver: 1077:1634 rte_qede_pmd - EAL: Not managed by a supported kernel driver, skipped - EAL: PCI device 0000:88:00.0 on NUMA socket 1 - EAL: probe driver: 1077:1656 rte_qede_pmd - EAL: PCI memory mapped at 0x7f738b200000 - EAL: PCI memory mapped at 0x7f738b280000 - EAL: PCI memory mapped at 0x7f738b300000 - PMD: Chip details : BB1 - PMD: Driver version : QEDE PMD 8.7.9.0_1.0.0 - PMD: Firmware version : 8.7.7.0 - PMD: Management firmware version : 8.7.8.0 - PMD: Firmware file : /lib/firmware/qed/qed_init_values_zipped-8.7.7.0.bin - [QEDE PMD: (84:00.0:dpdk-port-0)]qede_common_dev_init:macaddr \ - 00:0e:1e:d2:09:9c - [...] - [QEDE PMD: (84:00.0:dpdk-port-0)]qede_tx_queue_setup:txq 0 num_desc 4096 \ - tx_free_thresh 4068 socket 0 - [QEDE PMD: (84:00.0:dpdk-port-0)]qede_tx_queue_setup:txq 1 num_desc 4096 \ - tx_free_thresh 4068 socket 0 - [QEDE PMD: (84:00.0:dpdk-port-0)]qede_tx_queue_setup:txq 2 num_desc 4096 \ - tx_free_thresh 4068 socket 0 - [QEDE PMD: (84:00.0:dpdk-port-0)]qede_tx_queue_setup:txq 3 num_desc 4096 \ - tx_free_thresh 4068 socket 0 - [QEDE PMD: (84:00.0:dpdk-port-0)]qede_rx_queue_setup:rxq 0 num_desc 4096 \ - rx_buf_size=2148 socket 0 - [QEDE PMD: (84:00.0:dpdk-port-0)]qede_rx_queue_setup:rxq 1 num_desc 4096 \ - rx_buf_size=2148 socket 0 - [QEDE PMD: (84:00.0:dpdk-port-0)]qede_rx_queue_setup:rxq 2 num_desc 4096 \ - rx_buf_size=2148 socket 0 - [QEDE PMD: (84:00.0:dpdk-port-0)]qede_rx_queue_setup:rxq 3 num_desc 4096 \ - rx_buf_size=2148 socket 0 - [QEDE PMD: (84:00.0:dpdk-port-0)]qede_dev_start:port 0 - [QEDE PMD: (84:00.0:dpdk-port-0)]qede_dev_start:link status: down - [...] - Checking link statuses... - Port 0 Link Up - speed 25000 Mbps - full-duplex - Port 1 Link Up - speed 25000 Mbps - full-duplex - Port 2 Link Up - speed 25000 Mbps - full-duplex - Port 3 Link Up - speed 25000 Mbps - full-duplex - Done - testpmd> +Driver compilation and testing +------------------------------ +Refer to the document :ref:`compiling and testing a PMD for a NIC ` +for details. SR-IOV: Prerequisites and Sample Application Notes ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -- 1.8.3.1