From patchwork Fri Feb 3 08:08:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Chaoyong He X-Patchwork-Id: 123005 X-Patchwork-Delegate: ferruh.yigit@amd.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org 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 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?q?oPyC066YWNzBSg59EutiSavLqD1I?= =?utf-8?q?p75E0X5y8ascycpiQVGtHPBGyMwxOwjSw2MMUNT4u7s2CgS62rHWD1tnj6UGzPPYn?= =?utf-8?q?KO7iO3oESEpP6+swRMrutMlOjhgO+JhgQxRmoyKCkd1T9Lw8r0Bj4RiCuaFaacVSg?= =?utf-8?q?32LIh2usUP2eTdTe4AU/4Xmib9NaxO9AgItk9Yk59j2poxJNYNXzmwY5A+bFaIrT0?= =?utf-8?q?H8woJ61p90t3C2dI7u6eFqbzB3d2YVYIAoD9MY9K2AnuW9hrNaFvat29pAVkzMeOg?= =?utf-8?q?E+haPEXT4LB2815F7AIEl4jHZR4eysTpUwWgQxR2/RhYOuNqyxsJLTWlRlU+9AGbm?= =?utf-8?q?/el1/WTgZ8WM+8uyYsptTWML0EwFrYdQIO+/eCFd3Mhy6Wwmf8yC0ryqG9i7H/4/q?= =?utf-8?q?jAWUYmGw3w+ym1+rRnWsaKAfmn8D0/nfKrGVzLYVz1jGRZcETuPJHiYKVSZxnYXTd?= =?utf-8?q?UlabbyPnWZJbTdrqqq3cW/Ahqhtw+Guzhi9GjiC4ZzhG0+JO96Kv8WA+Ax9Qsk0ug?= =?utf-8?q?Q88jP9mWLY+LWBIhh+f/Z8OHt2rNeDxvvt5GNi908WfcJrNnHm6jmvBkNfJ2NT1Oj?= =?utf-8?q?gdxrljcJkzZRBOJmpZ+3vmoHuE4/fWT4Yw4QTkTPU4C9rbODco9PO8D94tY6uhQts?= =?utf-8?q?5mhLtA7ki9rX910YcmWn1jAyZsYVpWctf3ucfgFWZW0/6PcUgIcLFG0KxAaOr7r8m?= =?utf-8?q?LZDC50HTfUwC43yQumQXEHqseMBNiY0BYEKS3Nm5QY/kNVNJ5BYuijRER6Tk0+TMT?= =?utf-8?q?oDWV2d0y0uKZA0aFGgU6NVll+hAaNLJHbB3dCHyZboeA5PxPznWd0t+RtnT9iFGFs?= =?utf-8?q?wnuPWIXB3LHnlHytvfjUXBFReYzfecgkHuu2zihZPbfvIDaZfFxnw4EUIvqPdPfSQ?= =?utf-8?q?QUZSKRpVQuEclY1efxpw3rR1hbGXM31b8jSuTMS2pP8Z36ovJIXmeVduYUUXxfBMH?= =?utf-8?q?qj0oB4dOSVk+vtuX9o9PE6H69G/EPDjB7gnEU6tdJqtb8ZhS3d/xbg5TasTbIuoS2?= =?utf-8?q?slBT8+04geGt5C0A8k5DzkMCrTykNA3qMVqnz0P5J69mc6BydwjHRuGoPL4yEasxL?= =?utf-8?q?BSpTN2CTzIgahYNDpHhv6YpJHqtoGxlxNSPg8Q6PEjMRMqUX+itQNuWw8zTjCJlR7?= =?utf-8?q?cL2AmIBQ3BhACdTQ5VYD0shws1ze2SF+9ErtHELo3GIS5ELzWmD2jGkX1xrPagBm9?= =?utf-8?q?syYblFrEEA1NnIoIdXAzvAtLKeCXfKZVmuz2TntFWEzmZsWvZEODyrXJFgh0KcPKE?= =?utf-8?q?B1DrvvTJiER6g4ezJC/YUWwkIDgTMrGyQ06mEFWyi8YfPpxeSbxcBY80JGO3WPSJq?= =?utf-8?q?/YT8Neja4DofcsuNA4SJFUeOkrXLvSYx2Vd9KLP7GClG0OhrH3UpFgGEb4rUoWeDQ?= =?utf-8?q?9H0gbVYNhwL3QT/QNjEiZZWgVHCCtz7rz/0NwsJz2wqLgpV0rqGTQMrocQ6jARCPt?= =?utf-8?q?b25BiEBXswH4LPeqCzKkfL/ry0TpDtThWN8MKrjWvYZlqDGhyY3jZmXDoYxVosPhP?= =?utf-8?q?TyTNGZXL98fxj9wMj9Ryl+1lQWLh8cx96Q=3D=3D?= 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 ---------------