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 73E0C45492; Wed, 19 Jun 2024 11:58:51 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5D47740E38; Wed, 19 Jun 2024 11:58:51 +0200 (CEST) Received: from NAM11-BN8-obe.outbound.protection.outlook.com (mail-bn8nam11on2099.outbound.protection.outlook.com [40.107.236.99]) by mails.dpdk.org (Postfix) with ESMTP id E777D4026C for ; Wed, 19 Jun 2024 11:58:49 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Hc6fsHu78OYOlytMWqQJ3O/OaheEaaOp41gKZ7B/vLE0h8kv8GLHdfieqO6z8X3WuIRYrRfpg2CZd2I8pdUGyR4GjZCYdhFcEn3U/GvAWV+YfIj/JH767zTVkK3rc9+zAuJqPOulj3VOZo8Vl55gDoy/AeJgyKcfo5rxkptU7ewqHDq4V9Ty0O0AFjKlHvHoAtwdotGcNcehL7bq0L5k6o/gb7f+iIFuwJGcjrVj7/YtcKfr+uGaIcAX2x1s3sij5wFH61oZOsPXrzj5Y8H1Na57sGdtcSLYfb5EOXcH6+4T5f5o2Iaz0b1aldti9xtf8Jf4MYgSzfs+LB9OLVZcnQ== 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=dk4+c99mDNiGeRRHxY+Y0bkEx0YLgQJdkCQqIoHgkhU=; b=SZeDKNW3LvnEBYPjQNhfwY+lN1LevL2oBjJeKRkuqMxpPS2ZO/hmIJhHCYm+br/eFbwfJFPCiE3t+K6ixU5wdJWDk0ODtt1WcKQgBTB/Em6QO6AhVmeFj2sQXkYOyvDjjv+2/ryfW599fs/SdTSI3a+YiuqijNScoJtFXKsc/nFgwHW+zhNFtjue0I5NhZ99Bp7vAkjAUNuFhvUX7D40a+SYKiZ23eQ5HdSTPcr8+phJuyWHjLNXe+4q+MGzJdtdeDb4PBfG5Eq+YhmYYhMHSy+xr/BBXrmCKTvRNCK591QIi3PMkQIKO2l1YRQxGp3e8R/aNNw0yrzPDN2omBpwQg== 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=dk4+c99mDNiGeRRHxY+Y0bkEx0YLgQJdkCQqIoHgkhU=; b=E1QDKvGZiW+B+WIhT842IyLZ/ESVHTRKGiM9k8BPO2bMeXYZ5jjHbdNJGOgw9NQ8BoYj+Cq17rMx/p6iTKvt1H/4bniVcnkAZQ0cflt5WHG2mkBA/Hcvav7voo0FaeI34meWs9xF2I1Y5CQsQ6PX5TyR5CFIhX9b2frBLnZfAQ8= 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 CO3PR13MB5782.namprd13.prod.outlook.com (2603:10b6:303:171::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7698.20; Wed, 19 Jun 2024 09:58:48 +0000 Received: from SJ0PR13MB5545.namprd13.prod.outlook.com ([fe80::b900:5f05:766f:833]) by SJ0PR13MB5545.namprd13.prod.outlook.com ([fe80::b900:5f05:766f:833%4]) with mapi id 15.20.7677.030; Wed, 19 Jun 2024 09:58:47 +0000 From: Chaoyong He To: dev@dpdk.org Cc: oss-drivers@corigine.com, Chaoyong He Subject: [PATCH 00/23] support flower firmware with multiple PF Date: Wed, 19 Jun 2024 17:58:07 +0800 Message-Id: <20240619095830.3479757-1-chaoyong.he@corigine.com> X-Mailer: git-send-email 2.39.1 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SJ0PR13CA0057.namprd13.prod.outlook.com (2603:10b6:a03:2c2::32) To SJ0PR13MB5545.namprd13.prod.outlook.com (2603:10b6:a03:424::5) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SJ0PR13MB5545:EE_|CO3PR13MB5782:EE_ X-MS-Office365-Filtering-Correlation-Id: 393ff7bb-06bd-4ccb-449e-08dc904669ca X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230037|366013|52116011|376011|1800799021|38350700011; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?NorRTJxO44yZS4ubmRoSVeflefGw4sS65fiXVApzqtkwzlfIZ5Pr/32yuOEo?= =?us-ascii?Q?+tRFlDcy+desT6F54A3zjdI6Bfisedfjc5c4Iwoo0Me9LUeblwN1CRGXcib1?= =?us-ascii?Q?J6VJ2aWYYsj02NavwM0Zmsf+fXUZN0gUmsaJZOGllsJxrwdPnXlay28crjUn?= =?us-ascii?Q?Dg8C/mwZmjogd1Lutk1fuRrExdwI60DpIjtacRsHL3HuNg7obYeaNzzEfIBG?= =?us-ascii?Q?ky7n7EQLH3pDb+p3gsFPRH/yWqY/111IvJQTFBssTymhDHss7FR1csUQAlrb?= =?us-ascii?Q?TvaUln3FiqJdLij9FN2vVcZwJbqWB77uGB4OKjS8Cxr1lhAc72v63bGjOgFE?= =?us-ascii?Q?KaU9L7J51X1m/Iw7iWzhT9DBSy+lraB+cdB8dssKVP5ChEyXgE2LhQ1O+Lg3?= =?us-ascii?Q?fxuL0Fylmoi+pzrgiaX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?Q?o9LnyBIxGApA/cQZg6u4Nf6X91D66Cfhdp357jYBHjkJmyYjrqEW70WHPKCj?= =?us-ascii?Q?Yxh0Gt0=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SJ0PR13MB5545.namprd13.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230037)(366013)(52116011)(376011)(1800799021)(38350700011); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?tBFObbegImXFyzsVvov8y4Q5YWyj9CkW4bk0Njv+ZjgDix5sDTPvYARK+jz4?= =?us-ascii?Q?RlqHwNPE3Fh1jaLDZzskDLe/+QNKgH5eHOjPcRFo4/bt6+osDMKbXydND++l?= =?us-ascii?Q?7UvAXh4raOsPtik5CdE4l0JvGSqdM6QGO0dwW1MvMY3soNkKVAh2fY/HdaDK?= =?us-ascii?Q?hua6UPQdkyBlKHpenoAd+is83F8cZcX6atPqPX7UBgcirYE7riQN7q4SRDJQ?= =?us-ascii?Q?mD2g4UeFg6v4OaTbzwp+to+/dlX1G2gGzdj3Ca0aiNdhdKwslzxReSjuart2?= =?us-ascii?Q?mmq3Z6mzRJ0S4vLEFr8HksevgaCw22+B2G66JHlG1R7rJHmZhhG2cebNjrTF?= =?us-ascii?Q?PBCY/2ZMF2K4X5/Bi65yW3Mr/kw0o+M4M2MlzTf09Omh6xUxBhwsnqaULpib?= =?us-ascii?Q?YgA6KWiGtH/chrxRrB/S7cTvdlndJjP7x7y69BRrtM5lJoeh3WxViN444ApG?= =?us-ascii?Q?R4fg0PABTzhBAKLAwBZs6CsJCjsICqJvdeOvaeqczwaBtIgembTpbgFYkEs4?= =?us-ascii?Q?WfFIogsvfXRMpCnFsGsWRzHAeStvqLgL712s0nIs7wnn8JuypGXUPxIjJVvQ?= =?us-ascii?Q?a6WpFT7vv6NwIHEHwvEiK0BA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4x2DjRh45kPx00PyAAf/8woKeclbcQ15v6vXImcIEg0Kz1mhMRFOh?= =?us-ascii?Q?pM43kCsXoqgRl2GrZPPa5QusIUFXrO0XStXdrFCgkwcXqbYiIoQ/dzpzM185?= =?us-ascii?Q?Yw=3D=3D?= X-OriginatorOrg: corigine.com X-MS-Exchange-CrossTenant-Network-Message-Id: 393ff7bb-06bd-4ccb-449e-08dc904669ca X-MS-Exchange-CrossTenant-AuthSource: SJ0PR13MB5545.namprd13.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Jun 2024 09:58:47.9416 (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: ZPE1rTG5TbZTYtV2FBXzzTpHjk754h6RjMvJDR3K24S+86JJiZfJAlYwxmw2ADP/bb58cTTQ5aw8LoWUMoCuB27OVjD891TKSRDA3QLzPsM= X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO3PR13MB5782 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 This patch series refactor some data structure and logic in order to support the flower firmware with multiple PF. Peng Zhang (23): net/nfp: fix dereference of null pointer net/nfp: disable ctrl VNIC queues net/nfp: fix dereference of null pointer net/nfp: fix repeat disable the port net/nfp: fix repeat set the speed configure net/nfp: make the logic simpler by adding local variable net/nfp: rename the variable name net/nfp: export function ID get interface net/nfp: extract total phyports net/nfp: extract the initialize helper function net/nfp: get the VF configuration net/nfp: refactor the logic of flower service net/nfp: get the first VF ID of the PF net/nfp: add the helper function to map rtsym with offset net/nfp: add the VF table to record the VF information net/nfp: support configuration of VF numbers net/nfp: configure the VF queue net/nfp: add check for numbers of VF representor port net/nfp: add support of ring pop and push net/nfp: add resource share mode of host context net/nfp: add resource share mode of mask ID net/nfp: add device active command for nsp service net/nfp: add support of flower firmware with multiple PF drivers/common/nfp/nfp_common_ctrl.h | 21 + drivers/net/nfp/flower/nfp_conntrack.c | 2 +- drivers/net/nfp/flower/nfp_flower.c | 25 +- drivers/net/nfp/flower/nfp_flower_cmsg.c | 10 +- drivers/net/nfp/flower/nfp_flower_cmsg.h | 3 +- drivers/net/nfp/flower/nfp_flower_ctrl.c | 28 +- drivers/net/nfp/flower/nfp_flower_ctrl.h | 2 +- drivers/net/nfp/flower/nfp_flower_flow.c | 241 +++++++-- drivers/net/nfp/flower/nfp_flower_flow.h | 4 +- .../net/nfp/flower/nfp_flower_representor.c | 58 +- drivers/net/nfp/flower/nfp_flower_service.c | 24 +- drivers/net/nfp/flower/nfp_flower_service.h | 4 +- drivers/net/nfp/nfp_ethdev.c | 494 ++++++++++++++---- drivers/net/nfp/nfp_net_common.c | 183 +++++++ drivers/net/nfp/nfp_net_common.h | 27 +- drivers/net/nfp/nfpcore/nfp_nsp.c | 10 + drivers/net/nfp/nfpcore/nfp_nsp.h | 1 + drivers/net/nfp/nfpcore/nfp_rtsym.c | 117 ++++- drivers/net/nfp/nfpcore/nfp_rtsym.h | 6 + drivers/net/nfp/nfpcore/nfp_target.c | 2 + 20 files changed, 1053 insertions(+), 209 deletions(-) -- 2.39.1