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 CC02141CE4; Mon, 20 Feb 2023 09:42:17 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 45E2E42FBE; Mon, 20 Feb 2023 09:42:13 +0100 (CET) Received: from NAM02-DM3-obe.outbound.protection.outlook.com (mail-dm3nam02on2131.outbound.protection.outlook.com [40.107.95.131]) by mails.dpdk.org (Postfix) with ESMTP id C0C5C42FA8 for ; Mon, 20 Feb 2023 09:42:10 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=gGsGiYIeiBqL/1eyU6RwroQ4GC6zFC2uAyGJQuT3eZuBw6moPZABgmFksJdQnJkrkNJJ26uRBJEsKMZhrjW1eRTeRtk7wElxGKU0JR+4DAb0kfxFqgF0/X9/Uq5qep8ZmradQgjwVvhdXMGKr4V68Lj5w/OqDl1L17UwaineUvaq5oB7DywE3exlEm1w/jvYMeWb4fIQwvTtR+bGhAJoWzxJlSrVOZaBEUxVIxvHWcM1ahMb4SJcWMcDXDl1k6uvqEoG/3d3SgkV9BFPo6tTU+IlkDqofs7ZkxK9+pXIeSuAphmDiHzmsH2oca/0vR2zYjNmvwn7VH50IQ0QeZx/vA== 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=YvdjRJtMUa6TwPL5ytO7FHRsMO9Ds4hCFJFfthglH9I=; b=ccsFs+CAwDOFntsFWTaW4dCMiGH/lCgfXvxOJQkzC8pLpZDYVfSxNgiVjhRzIB649JwQPUfxUBm9ha9JcFKMjPdh+iZfAaiKOv2XaviawKZ0nEJvAQ+DkQtLP5dR2RXyatEoO50n2YF+WaIan7XTwkxCpwmt9bzXGyawo4Wn3vmoT/n9rd0ekG8Uw5Wh9vILcMaMnRuI6GbZjMncPRD/te+PSrkbW8xxzct1/x4EprAPcG+5iXYVEXF04C1yDT0iRcIs/tUrMYAv1QXM/cYL/VxCtZ5KMpSL8UPhRknYsl56H7Rssq0OLlnxIm6BrQ1jmRTE7M8HW/RSslntboBU4w== 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=YvdjRJtMUa6TwPL5ytO7FHRsMO9Ds4hCFJFfthglH9I=; b=mVqutYc3+8nARgw0JpFqvNhMDK0aiV/rSqU+WBi7OpravHs+0q5q13Ps6l6o9v8+96Js1MyEUFRBUiYbLvDMpplfZuLqq497JexCCGyalqJK1a9WLYH0KloIsFfXJQEb13L0sgyZJLuij4CI01Pa3XPFhdufqjX4weue3LxEERU= 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 SA0PR13MB3966.namprd13.prod.outlook.com (2603:10b6:806:9e::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6111.20; Mon, 20 Feb 2023 08:42: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%5]) with mapi id 15.20.6111.018; Mon, 20 Feb 2023 08:42:09 +0000 From: Chaoyong He To: dev@dpdk.org Cc: oss-drivers@corigine.com, niklas.soderlund@corigine.com, Walter Heymans , Chaoyong He Subject: [PATCH v2 1/3] doc: wrap nfp doc to 80 characters and improve grammar Date: Mon, 20 Feb 2023 16:41:09 +0800 Message-Id: <20230220084111.40531-2-chaoyong.he@corigine.com> X-Mailer: git-send-email 2.29.3 In-Reply-To: <20230220084111.40531-1-chaoyong.he@corigine.com> References: <20230203080845.24126-1-chaoyong.he@corigine.com> <20230220084111.40531-1-chaoyong.he@corigine.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-ClientProxiedBy: SG2PR04CA0158.apcprd04.prod.outlook.com (2603:1096:4::20) To SJ0PR13MB5545.namprd13.prod.outlook.com (2603:10b6:a03:424::5) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SJ0PR13MB5545:EE_|SA0PR13MB3966:EE_ X-MS-Office365-Filtering-Correlation-Id: 4e5e5737-9d95-4a03-a153-08db131e5a7b X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: VGqi2+SMtp+rdtDZldL0ZjxR+aiQWDWKtMHaVEGh9fUO+gK9A5FmksumvplS/xzox9QwLoAydKNnX+DI1I1zcx9s8fdLttIXaVmzQ2e8GPecW21Uckf/IJbM47J8rDM2Y5OK5T9HpKDXvEc6AWjYMHbZWQgr3kAahBhg1iUpPFqmiZqDX+HfE0uJy/i+1qie+2ZX6cNfM1HVSOT/9wRDb41g+1G0PnTODm5bdXI56NBpx/1rQ/9R5YIdmzRvg/+3XKFOBthGcfIPp9VziB3b/Gd2vJjPc4IxVc9jwDbkIkuVi+xGs/SRzoXtwdO1az/kjhdHPX3LZAuc4LfJi3frdxZbu6O5IYjnrZvbQqERSbJv68isqiMeSA3FjlEwuWOzXVK5q3oQl6x6KwsGzf78eKEcxRPe9vMII0b/sIrEaXMwSD3Y7oEhxTFWV75EqNfpMKJ7/YkRAdVIoYq9D9Pai+zMMV2LTC5JoDwfXf5Odt9bdKEXzkF7JHcp9nJjHC72Cjy+miGC9ZmnOUZZcFojuZ+jQZgkSNA0xaYRR2kbFLb+Q7SwoNpcUB6yZJn24/BHiYZPsennXFY2s8emuvX7X+8b8XqiiNKlKU8X+f6V/TVhPYg41wPYCMLukqpDvoRDq3ZSF8GOhuKoMWAtmh30cYpj+M2QYnFR4/LPQqfbT9EbwamJmYd2TlxwI+m/wVJf 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)(39840400004)(376002)(396003)(366004)(136003)(451199018)(83380400001)(8936002)(5660300002)(66574015)(41300700001)(86362001)(44832011)(2906002)(52116002)(4326008)(6486002)(966005)(6512007)(186003)(26005)(1076003)(6506007)(107886003)(316002)(8676002)(66946007)(66476007)(6916009)(66556008)(478600001)(2616005)(54906003)(38350700002)(36756003)(38100700002); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?b2w5TmVDb3FVelNKYnpzdTRsSGc0K25odWtKakZYZzdqNXlMYTBoTk9NNjM0?= =?utf-8?B?NEFLL1ZHNjJzMzFCZUx1NnJwRVZQQzgrT2lEeXM2bXNORHhxRFI4S1NoSHNI?= =?utf-8?B?M2VKUUZpcFFkUUd2emRsaW9UR1dhUnAwU29UcGZMU0tsYUMwditDamxpQUpu?= =?utf-8?B?K3dwaTZIUndLMW83c2lUb2xjbEZXRHhIZUJiTWlGSkpVUURDcXRuV0JRQlRT?= =?utf-8?B?WW4vSUtDODliR3FaaWY1L0twNXdnQ2UzSEJZVjVhUTFDOEt0cFY4Y0lCSWk5?= =?utf-8?B?QWJ2dEh0YVZBRS9jOE9WSERyNFNIYTFBUVNZQUpXenM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?utf-8?B?RnZOSlBUbGw4bENwZmZiT3JBQU9CRnpyYllLMmhOTXlzUURNRkdDUFFyNXBF?= =?utf-8?B?bWc9PQ==?= X-OriginatorOrg: corigine.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4e5e5737-9d95-4a03-a153-08db131e5a7b X-MS-Exchange-CrossTenant-AuthSource: SJ0PR13MB5545.namprd13.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Feb 2023 08:42:09.4023 (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: S4/moJVTRXnBbN3YlG+oyWyvl9WQq/7LLcYUh+ypsS4dtNamv18g+3nu3gCfBkiis4RVeSt6V11t/z84xh1sUWA10GsdaYyQj99ih73Ha9w= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA0PR13MB3966 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 Wrap the nfp.rst documentation to 80 characters to improve readability in raw format. Also fix some grammatical errors. Signed-off-by: Walter Heymans Reviewed-by: Chaoyong He Reviewed-by: Niklas Söderlund --- doc/guides/nics/nfp.rst | 76 +++++++++++++++++++++-------------------- 1 file changed, 39 insertions(+), 37 deletions(-) diff --git a/doc/guides/nics/nfp.rst b/doc/guides/nics/nfp.rst index a085d7d9ae..36c447a17c 100644 --- a/doc/guides/nics/nfp.rst +++ b/doc/guides/nics/nfp.rst @@ -15,7 +15,7 @@ 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). -NFP is a SRIOV capable device and the PMD supports the physical +NFP is a SR-IOV capable device and the PMD supports the physical function (PF) and the virtual functions (VFs). Dependencies @@ -57,8 +57,8 @@ 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 ------------ @@ -71,8 +71,8 @@ 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 @@ -92,18 +92,19 @@ 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'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. .. 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 - for more information on the various firmwares supported by the Netronome - Agilio CX smartNIC. + 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 for more information on the + various firmwares supported by the Netronome Agilio CX smartNIC. PF multiport support -------------------- @@ -114,11 +115,11 @@ firmware symbol during initialization to know how many can be used. DPDK apps work with ports, and a port is usually a PF or a VF PCI device. However, with the NFP PF multiport there is just one PF PCI device. Supporting -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. +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,24 +138,25 @@ 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 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. 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 @@ -178,7 +180,7 @@ System configuration lspci -d19ee: -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. + -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 nfp_netvf driver. @@ -193,13 +195,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 +The flower firmware application supports 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. +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 @@ -210,9 +212,9 @@ 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. -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 representor port, the pattern and action of flow +rules, the statistics of flow rules, etc. Metadata Format --------------- -- 2.29.3