From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id DFDF941BB9; Fri, 3 Feb 2023 09:09:13 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C799D4021E; Fri, 3 Feb 2023 09:09:13 +0100 (CET) Received: from NAM11-BN8-obe.outbound.protection.outlook.com (mail-bn8nam11on2100.outbound.protection.outlook.com [40.107.236.100]) by mails.dpdk.org (Postfix) with ESMTP id AD4FC4014F for ; Fri, 3 Feb 2023 09:09:12 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jjKxRgYIaOC7lJ5E8zfCatdwLPpMZY+OEX7pnEFHW3bfQMJOdCW4rNnQiw6QICB3ZTg7W4BX1z6gwT+WNg9VLLnBo4yEeYGYQz5gT2JPxtUecfh3SL/cvtSBUwtikxCZsBNA58IOLjSG53A0iawu+BEj9i8+/Ob9CshRI8PSlsz26zVGD+Ng5rba+ey9yOAOUawnSs0kZN+VstacVysQOk5ZKVD00EQn7If+fxB//IYCl7C5EvZS/bTXwo5zTj5NykRelYBDl8H+DSq5ouDLgiPG0QIvijBabBKAnNUMxxDcBZ+a++iqvRmSEnsFnRKVRMvKBPa3tVZNr9ytwi5z1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=JAXqnHi9YFi3Y7CS80h1OobcBu0Xc0xj/1xTpYIH2og=; b=P/eQXpXsBd8gs/v0ftla4n0yX2ddsnB+e12a0Cm/CuOnCjcZLvZFf5ZN911u9XPrdjNPBfmYFDOLN80bXM7F/Jg7ACn9iut+iLIOxD0WoOjebT032HaLQo5HTVqSohquLY6UGg8NwjJD52JG9XwShlzVeqkgli7TI+HcBGIr6BvLOZU/Fb1+R8LKxG/HWBz4DL9LLVeK3ppKINt4gLWlmPfVgquWuK3qJIH0RP8zBdPeYpn2G8rjvaDvWf/rnjAdNl5LjnQ9PijypQ1v86e9+0zjdy8KTp1/aemarFlg04IVaw312BYsEM9Of1AWrkPPKJpBituOAge0TFRBmOiSaw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=corigine.com; dmarc=pass action=none header.from=corigine.com; dkim=pass header.d=corigine.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=corigine.onmicrosoft.com; s=selector2-corigine-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=JAXqnHi9YFi3Y7CS80h1OobcBu0Xc0xj/1xTpYIH2og=; b=OwN1A+OfgtQRNTRtsXK1y+WK6W4o/UflWODy1NNgPqeWNOsm8tpEaHI3jVSf3NBSQY9pDTrGubIWPMWrm8r0X0ktcLTNyNluN/kRgthQSr2J+pJB1VvHYN+Uh1JB3dBkoJ++lwtKchoCD3xXtQaatG73hJ6u9gWgwYIsbnY7wps= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=corigine.com; Received: from SJ0PR13MB5545.namprd13.prod.outlook.com (2603:10b6:a03:424::5) by CH0PR13MB5156.namprd13.prod.outlook.com (2603:10b6:610:f3::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6064.27; Fri, 3 Feb 2023 08:09:09 +0000 Received: from SJ0PR13MB5545.namprd13.prod.outlook.com ([fe80::7ea4:e421:5dd5:9f4d]) by SJ0PR13MB5545.namprd13.prod.outlook.com ([fe80::7ea4:e421:5dd5:9f4d%4]) with mapi id 15.20.6064.027; Fri, 3 Feb 2023 08:09:09 +0000 From: Chaoyong He To: dev@dpdk.org Cc: oss-drivers@corigine.com, niklas.soderlund@corigine.com, Walter Heymans , Chaoyong He Subject: [PATCH] doc: update NFP documentation with Corigine information Date: Fri, 3 Feb 2023 16:08:45 +0800 Message-Id: <20230203080845.24126-1-chaoyong.he@corigine.com> X-Mailer: git-send-email 2.29.3 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-ClientProxiedBy: SI2PR02CA0048.apcprd02.prod.outlook.com (2603:1096:4:196::23) To SJ0PR13MB5545.namprd13.prod.outlook.com (2603:10b6:a03:424::5) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SJ0PR13MB5545:EE_|CH0PR13MB5156:EE_ X-MS-Office365-Filtering-Correlation-Id: 1087d6c8-66be-44ba-06ea-08db05bded86 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Hv7n404Pua29lUizOdqJ3kZosdGLHHrED7d6TSbsbEFOXyGFUdJBTzoGobrTfZSAIaHWQFN5CPwu5bt/kSw9afvzYWPaasIr1n1jaSftRX+dbSN68HS7e+EvY5j0i1nGCgFoW6R0byMgDo6jRg6F01Y2L6ShqXBjYecSHzyjuQKHtT2AGuTQ19FpMJUcl2D8c6BbsGRiJzdGxIC9Jo2gJh9/VzYvXAiJ2G3Dw2SmWmA7Cf3tVL9FuBhfH/jeAScjl6Q6KNkcX++M81luGz9EyQCQOWgNo0GLZOANE970TM1ZonLZ2pCiqdKlcQXvU4TlLe2zKQg0ofR+VOoIJabyNP15qs5XiqqgiRQBo6qnwnnF5o6m2EaZBPlr3XxqkY2Izo57TZDb7Sz+TCNZdfFC7bZ0DTjNNNFJUgoOe6qr+GsIzicBZ78Q9HhMWDoNtzL5Qu94X0sYoSZXaw1NjuluQXcRrs+Cvuo08Dq1uaCHCRWix3j3TP3gV0HVqL3gzmnd5NGVDPgslG4RumOwXvCIQJ/x2e5p6RH60fz0UryRW6JeBTExlJhTeboR6Xz0xZdRa9r7badQqXCUXQHI8yn5k5a18UH+otc17t3gfKbiiqsuREGehSLaybchDAXPH2dEjYZiFUaA8jfcK+d/1zKw51duIVIsXjjQJui+S7btRaAF75duUFqf1+NUe6KSC1xS64cdEwEDRaMPcK6XJeACOg0Jt9QBS4PWMTDCxMnCVoI= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SJ0PR13MB5545.namprd13.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230025)(4636009)(346002)(136003)(376002)(39840400004)(396003)(366004)(451199018)(2906002)(44832011)(41300700001)(15650500001)(478600001)(66574015)(36756003)(30864003)(966005)(6506007)(66946007)(6666004)(186003)(6512007)(1076003)(5660300002)(26005)(107886003)(2616005)(8936002)(52116002)(86362001)(6486002)(8676002)(83380400001)(6916009)(66476007)(66556008)(4326008)(38100700002)(316002)(38350700002)(54906003); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?b1B5QzA2NllXTnpCU2c1OUV1dGlTYXZMcUQxSXA3NUUwWDV5OGFzY3ljcGlR?= =?utf-8?B?Vkd0SFBCR3lNd3hPd2pTdzJNTVVOVDR1N3MyQ2dTNjJySFdEMXRuajZVR3pQ?= =?utf-8?B?UFluS083aU8zb0VTRXBQNitzd1JNcnV0TWxPamhnTytKaGdReFJtb3lLQ2tk?= =?utf-8?B?MVQ5THc4cjBCajRSaUN1YUZhYWNWU2czMkxJaDJ1c1VQMmVUZFRlNEFVLzRY?= =?utf-8?B?bWliOU5heE85QWdJdGs5WWs1OWoycG94Sk5ZTlh6bXdZNUErYkZhSXJUMEg4?= =?utf-8?B?d29KNjFwOTB0M0MyZEk3dTZlRnFiekIzZDJZVllJQW9EOU1ZOUsyQW51Vzlo?= =?utf-8?B?ck5hRnZhdDI5cEFWa3pNZU9nRStoY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= =?utf-8?B?NlE9PQ==?= X-OriginatorOrg: corigine.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1087d6c8-66be-44ba-06ea-08db05bded86 X-MS-Exchange-CrossTenant-AuthSource: SJ0PR13MB5545.namprd13.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Feb 2023 08:09:09.7966 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: fe128f2c-073b-4c20-818e-7246a585940c X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: hPBFiwufCzR0OhurksvmN3D4ZXuyaP73hvdhmg0lwtdRAEJX13h4Cb7ymEtw4r1ZbHiWHCpXtmwQp6xVmpQiW8zjkUgfFq0uU3QlAd82BgM= X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH0PR13MB5156 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org From: Walter Heymans The NFP PMD documentation is updated to include information about Corigine and their new vendor device ID. Outdated information regarding the use of the PMD is also updated. While making major changes to the document, the maximum number of characters per line is updated to 80 characters to improve the readability in raw format. Signed-off-by: Walter Heymans Reviewed-by: Niklas Söderlund Reviewed-by: Chaoyong He --- doc/guides/nics/nfp.rst | 168 +++++++++++++++++++++------------------- 1 file changed, 90 insertions(+), 78 deletions(-) diff --git a/doc/guides/nics/nfp.rst b/doc/guides/nics/nfp.rst index a085d7d9ae..6fea280411 100644 --- a/doc/guides/nics/nfp.rst +++ b/doc/guides/nics/nfp.rst @@ -1,35 +1,34 @@ .. SPDX-License-Identifier: BSD-3-Clause Copyright(c) 2015-2017 Netronome Systems, Inc. All rights reserved. - All rights reserved. + Copyright(c) 2021 Corigine, Inc. All rights reserved. NFP poll mode driver library ============================ -Netronome's sixth generation of flow processors pack 216 programmable -cores and over 100 hardware accelerators that uniquely combine packet, -flow, security and content processing in a single device that scales +Netronome and Corigine's sixth generation of flow processors pack 216 +programmable cores and over 100 hardware accelerators that uniquely combine +packet, flow, security and content processing in a single device that scales up to 400-Gb/s. -This document explains how to use DPDK with the Netronome Poll Mode -Driver (PMD) supporting Netronome's Network Flow Processor 6xxx -(NFP-6xxx), Netronome's Network Flow Processor 4xxx (NFP-4xxx) and -Netronome's Network Flow Processor 38xx (NFP-38xx). +This document explains how to use DPDK with the Network Flow Processor (NFP) +Poll Mode Driver (PMD) supporting Netronome and Corigine's NFP-6xxx, NFP-4xxx +and NFP-38xx product lines. -NFP is a SRIOV capable device and the PMD supports the physical -function (PF) and the virtual functions (VFs). +NFP is a SR-IOV capable device and the PMD supports the physical function (PF) +and the virtual functions (VFs). Dependencies ------------ -Before using the Netronome's DPDK PMD some NFP configuration, -which is not related to DPDK, is required. The system requires -installation of **Netronome's BSP (Board Support Package)** along -with a specific NFP firmware application. Netronome's NSP ABI -version should be 0.20 or higher. +Before using the NFP DPDK PMD some NFP configuration, which is not related to +DPDK, is required. The system requires installation of +**NFP-BSP (Board Support Package)** along with a specific NFP firmware +application. The NSP ABI version should be 0.20 or higher. -If you have a NFP device you should already have the code and -documentation for this configuration. Contact -**support@netronome.com** to obtain the latest available firmware. +If you have a NFP device you should already have the documentation to perform +this configuration. Contact **support@netronome.com** (for Netronome products) +or **smartnic-support@corigine.com** (for Corigine products) to obtain the +latest available firmware. The NFP Linux netdev kernel driver for VFs has been a part of the vanilla kernel since kernel version 4.5, and support for the PF @@ -44,11 +43,11 @@ Linux kernel driver. Building the software --------------------- -Netronome's PMD code is provided in the **drivers/net/nfp** directory. -Although NFP PMD has Netronome´s BSP dependencies, it is possible to -compile it along with other DPDK PMDs even if no BSP was installed previously. -Of course, a DPDK app will require such a BSP installed for using the -NFP PMD, along with a specific NFP firmware application. +The NFP PMD code is provided in the **drivers/net/nfp** directory. Although +NFP PMD has BSP dependencies, it is possible to compile it along with other +DPDK PMDs even if no BSP was installed previously. Of course, a DPDK app will +require such a BSP installed for using the NFP PMD, along with a specific NFP +firmware application. Once the DPDK is built all the DPDK apps and examples include support for the NFP PMD. @@ -57,27 +56,20 @@ the NFP PMD. Driver compilation and testing ------------------------------ -Refer to the document :ref:`compiling and testing a PMD for a NIC ` -for details. +Refer to the document +:ref:`compiling and testing a PMD for a NIC ` for details. Using the PF ------------ -NFP PMD supports using the NFP PF as another DPDK port, but it does not -have any functionality for controlling VFs. In fact, it is not possible to use -the PMD with the VFs if the PF is being used by DPDK, that is, with the NFP PF -bound to ``igb_uio`` or ``vfio-pci`` kernel drivers. Future DPDK versions will -have a PMD able to work with the PF and VFs at the same time and with the PF -implementing VF management along with other PF-only functionalities/offloads. - The PMD PF has extra work to do which will delay the DPDK app initialization -like uploading the firmware and configure the Link state properly when starting or -stopping a PF port. Since DPDK 18.05 the firmware upload happens when +like uploading the firmware and configure the Link state properly when starting +or stopping a PF port. Since DPDK 18.05 the firmware upload happens when a PF is initialized, which was not always true with older DPDK versions. -Depending on the Netronome product installed in the system, firmware files -should be available under ``/lib/firmware/netronome``. DPDK PMD supporting the -PF looks for a firmware file in this order: +Depending on the product installed in the system, firmware files should be +available under ``/lib/firmware/netronome``. DPDK PMD supporting the PF looks +for a firmware file in this order: 1) First try to find a firmware image specific for this device using the NFP serial number: @@ -92,18 +84,21 @@ PF looks for a firmware file in this order: nic_AMDA0099-0001_2x25.nffw -Netronome's software packages install firmware files under ``/lib/firmware/netronome`` -to support all the Netronome's SmartNICs and different firmware applications. -This is usually done using file names based on SmartNIC type and media and with a -directory per firmware application. Options 1 and 2 for firmware filenames allow -more than one SmartNIC, same type of SmartNIC or different ones, and to upload a -different firmware to each SmartNIC. +Netronome and Corigine's software packages install firmware files under +``/lib/firmware/netronome`` to support all the SmartNICs and different firmware +applications. This is usually done using file names based on SmartNIC type and +media and with a directory per firmware application. Options 1 and 2 for +firmware filenames allow more than one SmartNIC, same type of SmartNIC or +different ones, and to upload a different firmware to each SmartNIC. .. Note:: - Currently the NFP PMD supports using the PF with Agilio Firmware with NFD3 - and Agilio Firmware with NFDk. See https://help.netronome.com/support/solutions + Currently the NFP PMD supports using the PF with Agilio Firmware with + NFD3 and Agilio Firmware with NFDk. See + `Netronome Support `_. for more information on the various firmwares supported by the Netronome - Agilio CX smartNIC. + Agilio SmartNICs range, or + `Corigine Support `_. + for more information about Corigine's range. PF multiport support -------------------- @@ -118,7 +113,7 @@ this particular configuration requires the PMD to create ports in a special way, although once they are created, DPDK apps should be able to use them as normal PCI ports. -NFP ports belonging to same PF can be seen inside PMD initialization with a +NFP ports belonging to the same PF can be seen inside PMD initialization with a suffix added to the PCI ID: wwww:xx:yy.z_portn. For example, a PF with PCI ID 0000:03:00.0 and four ports is seen by the PMD code as: @@ -137,50 +132,67 @@ suffix added to the PCI ID: wwww:xx:yy.z_portn. For example, a PF with PCI ID PF multiprocess support ----------------------- -Due to how the driver needs to access the NFP through a CPP interface, which implies -to use specific registers inside the chip, the number of secondary processes with PF -ports is limited to only one. +Due to how the driver needs to access the NFP through a CPP interface, which +implies to use specific registers inside the chip, the number of secondary +processes with PF ports is limited to only one. -This limitation will be solved in future versions but having basic multiprocess support -is important for allowing development and debugging through the PF using a secondary -process which will create a CPP bridge for user space tools accessing the NFP. +This limitation will be solved in future versions, but having basic +multiprocess support is important for allowing development and debugging +through the PF using a secondary process, which will create a CPP bridge +for user space tools accessing the NFP. System configuration -------------------- #. **Enable SR-IOV on the NFP device:** The current NFP PMD supports the PF and - the VFs on a NFP device. However, it is not possible to work with both at the - same time because the VFs require the PF being bound to the NFP PF Linux - netdev driver. Make sure you are working with a kernel with NFP PF support or - get the drivers from the above Github repository and follow the instructions - for building and installing it. + the VFs on a NFP device. However, it is not possible to work with both at + the same time when using the netdev NFP Linux netdev driver. It is possible + to bind the PF to the ``vfio-pci`` kernel module, and create VFs afterwards. + This requires loading the ``vfio-pci`` module with the following parameters: + + .. code-block:: console + + modprobe vfio-pci enable_sriov=1 disable_idle_d3=1 + + VFs need to be enabled before they can be used with the PMD. Before enabling + the VFs it is useful to obtain information about the current NFP PCI device + detected by the system. This can be done on Netronome SmartNICs using: + + .. code-block:: console + + lspci -d 19ee: - VFs need to be enabled before they can be used with the PMD. - Before enabling the VFs it is useful to obtain information about the - current NFP PCI device detected by the system: + and on Corigine SmartNICs using: .. code-block:: console - lspci -d19ee: + lspci -d 1da8: - Now, for example, configure two virtual functions on a NFP-6xxx device + Now, for example, to configure two virtual functions on a NFP device whose PCI system identity is "0000:03:00.0": .. code-block:: console echo 2 > /sys/bus/pci/devices/0000:03:00.0/sriov_numvfs - The result of this command may be shown using lspci again: + The result of this command may be shown using lspci again on Netronome + SmartNICs: + + .. code-block:: console + + lspci -d 19ee: -k + + and on Corigine SmartNICs: .. code-block:: console - lspci -d19ee: -k + lspci -d 1da8: -k Two new PCI devices should appear in the output of the above command. The - -k option shows the device driver, if any, that devices are bound to. - Depending on the modules loaded at this point the new PCI devices may be - bound to nfp_netvf driver. + -k option shows the device driver, if any, that the devices are bound to. + Depending on the modules loaded, at this point the new PCI devices may be + bound to the ``nfp`` kernel driver or ``vfio-pci``. Flow offload @@ -193,13 +205,13 @@ The flower firmware application requires the PMD running two services: * PF vNIC service: handling the feedback traffic. * ctrl vNIC service: communicate between PMD and firmware through - control message. + control messages. To achieve the offload of flow, the representor ports are exposed to OVS. -The flower firmware application support representor port for VF and physical -port. There will always exist a representor port for each physical port, -and the number of the representor port for VF is specified by the user through -parameter. +The flower firmware application supports VF, PF, and physical port representor +ports. There will always exist a representor port for a PF and each physical +port. The number of the representor ports for VFs are specified by the user +through a parameter. In the Rx direction, the flower firmware application will prepend the input port information into metadata for each packet which can't offloaded. The PF @@ -207,12 +219,12 @@ vNIC service will keep polling packets from the firmware, and multiplex them to the corresponding representor port. In the Tx direction, the representor port will prepend the output port -information into metadata for each packet, and then send it to firmware through -PF vNIC. +information into metadata for each packet, and then send it to the firmware +through the PF vNIC. -The ctrl vNIC service handling various control message, like the creation and -configuration of representor port, the pattern and action of flow rules, the -statistics of flow rules, and so on. +The ctrl vNIC service handles various control messages, for example, the +creation and configuration of a representor port, the pattern and action of +flow rules, the statistics of flow rules, etc. Metadata Format --------------- -- 2.29.3