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 2B0E741CFC; Tue, 21 Feb 2023 10:29:30 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 168984319C; Tue, 21 Feb 2023 10:29:30 +0100 (CET) Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10on2063.outbound.protection.outlook.com [40.107.93.63]) by mails.dpdk.org (Postfix) with ESMTP id B5F61406A2 for ; Tue, 21 Feb 2023 10:29:28 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Zuzj8bX1a4qbhocrb5AxM5ydvOKdsuk9gFE+yG1nd/oj0rHRpQA/BcNeybb4FOOZi5REQ1ZsqUBe2Pl3wNepf3oU7UhNS+SWFiUeTMu+7woeMz4FzAR38kM+uDnJNP/Sl/VTnh9/cSaz+nbNvlVeN5v2Fjb04ARpS0QGuE5RyMzJUCehLE13XuAi36kR+YfwSJXpnxWUA4jc+42bmL5bABFkl4F2FP5T/jB78iOCpwoAn9P1tVbQ9o0KNxTlupZNmAQKIUWYPe2QdoKHRkexm6Wgla2GoQ1YwYUBQa0NjjXJxoZWNHggy+GYohoz8cCMTujJR8hzkGzM/YAE0mU5WA== 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=n8e7CYFj/Uzo122oC9ogMVe4zJeJNYKx5L8w0Wnx2fs=; b=H7INwOyxeBpDgYH37ljd8+Sohz3YErknqvZmFpeYYfBkhjHWZlOkdH5kxzEh/KAYq8lRw0clMYIg9PMrgwUrYiOG7sX8QPVsz2HgL+XYkbWTKCTGZtN2orjRvi77SCpaAWDgdZ1y4EDxhrTD5Kwh+banQzORCJzfCRngP8vBJswecDVA++13wkzUXtuj4mUITjeHxKGRncwuqjlT5ut+8uauRFmoQMnfmStBdi5OcHLg03KOA0Ps5DjkyXtXVTfQU7Ai9auL7clnt3nVPs0YZXIbXF7R688aka5ljz3Ap5frCpkcqKqvncaIW48aabmzQznTAYugmE5s/b0wlwuwag== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=n8e7CYFj/Uzo122oC9ogMVe4zJeJNYKx5L8w0Wnx2fs=; b=OSU+4g9j3ecq7SM/z2OBO6SZi7COK1mQ/WotPSV+JgS24Qxi/BwaR3MMuV9rXUaZWM3xKZ8ja8VGjx9YOjkGd1izycONMQPDagvRgiugUuRhEXij3HGWTP3fBDrQhwWzk+/YWJis8YAsPwHQxsmNgh6Tkh+amelcatwgQp932xQ= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; Received: from CH2PR12MB4294.namprd12.prod.outlook.com (2603:10b6:610:a9::11) by DM4PR12MB6567.namprd12.prod.outlook.com (2603:10b6:8:8e::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6111.21; Tue, 21 Feb 2023 09:29:25 +0000 Received: from CH2PR12MB4294.namprd12.prod.outlook.com ([fe80::3614:22ed:ed5:5b48]) by CH2PR12MB4294.namprd12.prod.outlook.com ([fe80::3614:22ed:ed5:5b48%8]) with mapi id 15.20.6111.020; Tue, 21 Feb 2023 09:29:25 +0000 Message-ID: <58d6df9a-4f4d-b911-a08a-d13e3688f23e@amd.com> Date: Tue, 21 Feb 2023 09:29:20 +0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 Content-Language: en-US To: Chaoyong He , "dev@dpdk.org" Cc: oss-drivers , Niklas Soderlund , Walter Heymans References: <20230203080845.24126-1-chaoyong.he@corigine.com> <20230220084111.40531-1-chaoyong.he@corigine.com> <20230220084111.40531-3-chaoyong.he@corigine.com> From: Ferruh Yigit Subject: Re: [PATCH v2 2/3] doc: update outdated information for the nfp PMD In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-ClientProxiedBy: LO4P265CA0155.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:2c7::7) To CH2PR12MB4294.namprd12.prod.outlook.com (2603:10b6:610:a9::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CH2PR12MB4294:EE_|DM4PR12MB6567:EE_ X-MS-Office365-Filtering-Correlation-Id: d589b8a7-430f-46ee-b3e7-08db13ee1f36 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: /vTFXm2hN5he6rytksIBYCYl28JmZ9A5vPeyTx9Zd8APgyP7jSsFm34/Z3/Vqc831YDRAlnKDxSP/jp6jfSH/JP2esU2frUwksxR0nKRwmPgSqnsHhFWePmCJQP2CWaNpuXwG025KCEs7sQAlTYAhg2SyXy89ca/tP53vtiJM6GaTSFfk7WiuWU1jxY23kKuixRzowEYwB98ohLDczz6JS9XElwmFDTKavB1y/ZSwSSXKZjtGvPYpnwSAp376hWPiEu7T5HAuIL1jkzEsFklgDqnUIDpG6VeZ3XrYWQabEgECW/BQttOp3wj0nE19o81+KxSpSpcMYTWI0qLU6OCRxw31/0pTJNBwqifC80a5FUmLpzgAarJVs+3aksFtZaGOcmoMHYm7rKT2KLDulNpmPs9EswoTa1380hfsfewSuyIlKsPbc+B1Y9NkLRbZw8/QLJn/5WEUaB81hD/qdhLJMBSg9TP9MkqR486PR7iGi76OpzNFXIU5TfdA52SRkmXLAgQ9wDOcNljVcUM+9RKqfMp23M1kz1NeMD05rEgPQ5p6YnAS0UBTF3iWgP1wY1jAdbN0Yr0yTG5uN6t7xVIUe6IkFvJZ+J8psYU5k5LMQ7PHAcqUz2eGmrQHm4DVYXiC9lp0ioI9wbgNAMkw5v7ai3ZdW0cBjqk749+f1+q1QguVVM1VxLQ2i106gnyA1Y3Dvg/EHFJMmNJCkS9RvagaQBWplRqHy0tQhI5FPOt11I= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:CH2PR12MB4294.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230025)(4636009)(346002)(39860400002)(136003)(376002)(366004)(396003)(451199018)(83380400001)(66476007)(66946007)(66556008)(8676002)(86362001)(6666004)(44832011)(6512007)(186003)(53546011)(26005)(6506007)(31696002)(36756003)(478600001)(110136005)(66574015)(54906003)(316002)(966005)(6486002)(2616005)(38100700002)(2906002)(41300700001)(8936002)(5660300002)(15650500001)(31686004)(4326008)(43740500002)(45980500001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?RDdxL093SXNmNUpyeERuMXMrUkNqWUgxWmF3bnYzU3JRZzBNcjlnT3BYQ29Z?= =?utf-8?B?Z1VJRmFNOVMrcVl4VEtGT0RYRWFxNk9pN0NUNHJNSnZoMHRpTHRsTllMMmQ0?= =?utf-8?B?SURzRU81MG1mOVZ6NFZKYXVhSEpVZ20xVm5kT05IcitRWmlERmNmaDVhbmNS?= =?utf-8?B?bDhQZ1FhQk5WUnhqNHVCZ3Q3OFM2RUpVZE9GQWQwZ1Z1T2dJeW40a3hBby9n?= =?utf-8?B?amxWUWV2OXdPQzNDdGxtMFhPU1NESWdHbjY1czFWQzVPMFlP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TmRBblgzWWZHTUJSTC9CZFI3aTBndUE5?= =?utf-8?Q?zaskTNCyaUqDZuoKZwhzSUW2p?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: d589b8a7-430f-46ee-b3e7-08db13ee1f36 X-MS-Exchange-CrossTenant-AuthSource: CH2PR12MB4294.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Feb 2023 09:29:25.2380 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: JXYUfupurSYiYQD5LDFV1gzf3CVtEGjmjORb3zNFKj9m7qcnoKhU0OH3OiNh5eWw X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR12MB6567 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 On 2/21/2023 9:04 AM, Chaoyong He wrote: >> On 2/20/2023 8:41 AM, Chaoyong He wrote: >>> From: Walter Heymans >>> >>> Update nfp documentation with new information and remove outdated >>> information. The most significant changes that are updated include: >>> - Previously the NFP PMD did not support functionality to control VFs, >>> it now does. >> >> What I understand is DPDK supports VF but if PF is bound to Linux driver. >> >> Previously support matrix was as following: >> >> PF VF is supported >> ----- ---- -------------- >> Linux DPDK Yes >> DPDK - Yes >> DPDK DPDK NO >> DPDK Linux ?No (not recommended) >> >> >> Is PF:DPDK, VF:DPDK supported now? >> This requires DPDK PF driver updated to manage VFs, if so can you please list >> commits that adds this support in this commit log? > > Yes, we support this mode now. > But actually, our PMD didn't do anything to support it. > After the VFIO module in kernel has support vf (not sure about the exact kernel version import this), we can directly use the command below to support this mode. > modprobe vfio-pci enable_sriov=1 disable_idle_d3=1 > dpdk-devbind.py -b vfio-pci xx:yy.z > echo 2 > /sys/bus/pci/devices/0000\:xx\:yy.z/sriov_numvfs > And we get this information first time in this link: https://lwn.net/Articles/813045/ > Ability to create VF via vfio-pci is one thing, as you said that support is added unrelated to the driver. Other thing is PF driver's capability to manage VFs, since not all operations are supported by VF driver, sometimes VF driver sends a request to PF driver for this, so PF should have capability to receive and handle these requests. Is your driver working in similar way? Following documentation is from previous version (that this set removes): " ... 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. " I was expecting some code changes are required for above mentioned "PF implementing VF management", are they done already? If so while removing that part of the documentation it can be good to document commit IDs of those changes. And more directly, right now, do you support to run dpdk application on top of both PF and VF at the *same* time? >> >>> - Previously the PF had to be bound to the kernel driver to create VFs, >>> then VFs were created and bound to 'vfio-pci'. Currently it is >>> possible to bind the PF to 'vfio-pci' and create VFs bound to >>> 'vfio-pci'. >>> - The name of the Linux kernel driver changed for VFs. Previously the >>> 'nfp_netvf' module was used, but now both PFs and VFs use the 'nfp' >>> module. >>> >>> Signed-off-by: Walter Heymans >>> Reviewed-by: Chaoyong He >>> Reviewed-by: Niklas Söderlund >> >> <...> >> >>> @@ -209,8 +207,8 @@ 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. >>> >> >> Above change belongs to first patch. > > Thanks, we will move it in the next version.