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 2A0E5A00C4; Fri, 5 Aug 2022 08:33:07 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 660EF42C17; Fri, 5 Aug 2022 08:33:03 +0200 (CEST) Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11on2093.outbound.protection.outlook.com [40.107.220.93]) by mails.dpdk.org (Postfix) with ESMTP id 5534542C14 for ; Fri, 5 Aug 2022 08:33:02 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=LR0X1uR3D3qvinkpsVDwuh9uxyYBcAF84iNw3avyRYlhcAHwhbaCWXj31bzNlS+6FfYPuE+/7cwk2tzX9lCjYdeUvE1YbpRiBU7e6SRV8a0JTJXhKNitK4FAeS3eCRDczULqYCvYxkZ9oFYgo0X89aAXrPjQQumuPxb0NHztCDp1xj88u0Prv4VR0wa02m7m3+QPJbPJYdNl5QCRBye+OOfIiXQSuoCaB4PWn0N1RFDYA/pCg2b9/VDLNJtl6h92KsuD/k/YSLw3INLT03ZRedXAEyL5sTK5j90W/OHvyXx9Bu+jyyZqxSYiriXruyIZSi2LyXb6JVBmDNUNRhjafg== 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=GZJ4iSIPHOgvW3ooTCR6pCp3VaaG6QSPlCi+oZbn6fY=; b=NUQEaTfwpk968ScIDp5XN4W3yCew9go6ZKFTsqrv8lmU07rxrYf9g22y563q4upY4oEKXcsCG4RpChohlNQnGXQAscCCFjnF5p1nwOy5y7J5Mo/LDlhNs2X6Vp9kqh50Tipsp5BrDVfVMSrXglIV7Itv6eZT60h6PnfXRF9JaLxfmhINuWWMdTDZLIzwElno/99UjI8vfBObOQ0XgLQqXbAGb/duKNt9C5zd/XMaIYgvxNs+iUx2iybl/7FWB2B21cNzjmHMOrfWoqxpG4kbUErm4STeT+wMoVq7Co2zfda6okp2d7gt65l6LVWjuVlzmYFJITcFu850/cGLgDDRFA== 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=GZJ4iSIPHOgvW3ooTCR6pCp3VaaG6QSPlCi+oZbn6fY=; b=N1HwK/k1PG176uSWdFnLSi24t9SYaiJ0l1U+afiGU8/YJVJ8PAw7U4tyTMPZEkbS1OtdOK0enolR/GrASspIWNO1w+b3JvX2ciQ28tj33E8mCQ6xL8IBBnsTtz8QaeuDFk1EEAbcfwWoB260+8dCdwwT1NgASbsAGGHw/RkGNeY= 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 MW5PR13MB5854.namprd13.prod.outlook.com (2603:10b6:303:1c0::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5504.14; Fri, 5 Aug 2022 06:32:57 +0000 Received: from SJ0PR13MB5545.namprd13.prod.outlook.com ([fe80::402d:6abc:83a8:2431]) by SJ0PR13MB5545.namprd13.prod.outlook.com ([fe80::402d:6abc:83a8:2431%5]) with mapi id 15.20.5504.014; Fri, 5 Aug 2022 06:32:57 +0000 From: Chaoyong He To: dev@dpdk.org Cc: niklas.soderlund@corigine.com, Chaoyong He Subject: [PATCH v5 00/12] preparation for the rte_flow offload of nfp PMD Date: Fri, 5 Aug 2022 14:32:23 +0800 Message-Id: <1659681155-16525-1-git-send-email-chaoyong.he@corigine.com> X-Mailer: git-send-email 1.8.3.1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-ClientProxiedBy: SG2PR04CA0157.apcprd04.prod.outlook.com (2603:1096:4::19) To SJ0PR13MB5545.namprd13.prod.outlook.com (2603:10b6:a03:424::5) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 74dd4870-6d86-4597-3c6b-08da76ac55be X-MS-TrafficTypeDiagnostic: MW5PR13MB5854:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: zhBYSjiGGpDBL4IrsN7f/SAfmgGf/GTvB7HPs47s5IFDCg8cVREv6QQD350VfpcB80gEJbPX/YBeKne/9roq46DIW556aHkGV30Z5DecI1L2xR9Lr5iL6KlRzaIhHLCAoX2gzVDQFif16bTKSBzCXZT208u0CvrvX0dTL0xTd/4S4uVlyudbPr9/RzA3kXxwJK6o0Ze5cj+Ls9PdyskaC3V2teMqV4VrOs4APQQ95cl8w9BTxzUMNREt4VpTqi5sUHArNT3cT+1DJxNJvoP+JH+obRFtRuJivWSfqkcuux54xL/BNcubhs67En8XxX5BFEPewUxfAmT0U7e8PUD5pqRW38lZBBU1NTpIy2xFA21XM2de53ixp1ZpX1l1KnR7E1ZAMp2KZvG7kuw+3whrUe1LThkdLDQC9oSunFOIHaa5ecrXt4zkQ99lAc+ZxfBDHWFZ0sceh5HKA7ciBNBYlBwAICXSS71rI7fhbflceACUSEz1y7kE+K4yj/dheFG6V3Yc5vVC1YNwZXJEvlzYL6fTdGFqNk8eOtk6KJ4tfVmA9of+98zrpj3KGr2Hd6nFYXz13Xk5D0G+HOLeDD9KPRfjGYp9rABalwdV0M6vGgRuq2tWgTklpAZKNZlHSFO55eB+qUjmLOOjrmp9QyguxdBArkVX9DfoM5lJD79TE93EhTpuO+VBvDBtMgfVG8G3hzLS0J6dGcfT3ofpAmxXPScV8V1/s/9+Rzyl+5TDwhXsP6zLwkBV6/k0T5BsOULqdycVcE52lFrI6XODn/9fqoakYDDB7UZLb2IiKOIpuXk= 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:(13230016)(4636009)(366004)(136003)(346002)(39840400004)(396003)(376002)(4326008)(6512007)(6506007)(52116002)(6486002)(36756003)(26005)(41300700001)(6666004)(6916009)(186003)(316002)(66556008)(86362001)(66476007)(44832011)(8936002)(8676002)(2906002)(5660300002)(478600001)(2616005)(83380400001)(107886003)(66946007)(38100700002)(38350700002); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?U0FJWlJFNS9ucmk1amUxbFZ6SFVPUC9QRkJPMXZuRmN2SGlYdWtyN3NjdGJY?= =?utf-8?B?UERxblROazVjaFcwZHNXUUxjdkxRbDVPanJMcEViSVcrbk04VzRGUDlxSmVG?= =?utf-8?B?TlNRUUdOM3dRM0FzWHhGeXdXYTUrWGowOHV2WlhydUY2RXdYbjdrNUd4aWFF?= =?utf-8?B?c0xUbmhHckxZZzgwRUNKU2ZjbVEyUXNZMFpWa1F2M1EzcnkwalIrNDUydzVY?= =?utf-8?B?TVdwS1dLQStWMk4rVVBLT00yNEE5R2FYQ2dIT3ZCdkpQdGtHVFBaRDU0RWlS?= =?utf-8?B?YVFqZk1KR0ZTWVkycXloUDI3NjRETzNPb1ZzT3YzT2N2WGppcjZkNmJEZFl5?= =?utf-8?B?V1FrQ1ZPTWx1N1NaS0lqTlBqZGY2aCt3VmsxOUx6REJs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=?utf-8?B?TFE9PQ==?= X-OriginatorOrg: corigine.com X-MS-Exchange-CrossTenant-Network-Message-Id: 74dd4870-6d86-4597-3c6b-08da76ac55be X-MS-Exchange-CrossTenant-AuthSource: SJ0PR13MB5545.namprd13.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Aug 2022 06:32:57.4610 (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: ene7mj/LyXNw0Ls0ktV8M08W3EcckuvPhA2WzYWgP7hYUfwT1tMnj+4WAuYcsoDAodpcQVJK6PEvmZM8W2O8abSGVPk6lAjJZEoXqRrw09k= X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW5PR13MB5854 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 is the first patch series to add the support of rte_flow offload for nfp PMD, includes: Add the support of flower firmware Add the support of representor port Add the flower service infrastructure Add the cmsg interactive channels between pmd and fw * Changes since v4 - Remove the unneeded '__rte_unused' attribute - Fixup a potential memory leak problem * Changes since v3 - Add the 'Depends-on' tag * Changes since v2 - Remove the use of rte_panic() * Changes since v1 - Fix the compile error Depends-on: series-23707 ("Add support of NFP3800 chip and firmware with NFDk") Chaoyong He (12): net/nfp: move app specific attributes to own struct net/nfp: simplify initialization and remove dead code net/nfp: move app specific init logic to own function net/nfp: add initial flower firmware support net/nfp: add flower PF setup and mempool init logic net/nfp: add flower PF related routines net/nfp: add flower ctrl VNIC related logics net/nfp: move common rxtx function for flower use net/nfp: add flower ctrl VNIC rxtx logic net/nfp: add flower representor framework net/nfp: move rxtx function to header file net/nfp: add flower PF rxtx logic drivers/net/nfp/flower/nfp_flower.c | 1551 +++++++++++++++++++++++ drivers/net/nfp/flower/nfp_flower.h | 71 ++ drivers/net/nfp/flower/nfp_flower_cmsg.c | 186 +++ drivers/net/nfp/flower/nfp_flower_cmsg.h | 173 +++ drivers/net/nfp/flower/nfp_flower_ctrl.c | 252 ++++ drivers/net/nfp/flower/nfp_flower_ctrl.h | 13 + drivers/net/nfp/flower/nfp_flower_ovs_compat.h | 145 +++ drivers/net/nfp/flower/nfp_flower_representor.c | 508 ++++++++ drivers/net/nfp/flower/nfp_flower_representor.h | 39 + drivers/net/nfp/meson.build | 4 + drivers/net/nfp/nfp_common.c | 2 +- drivers/net/nfp/nfp_common.h | 37 +- drivers/net/nfp/nfp_cpp_bridge.c | 88 +- drivers/net/nfp/nfp_cpp_bridge.h | 6 +- drivers/net/nfp/nfp_ethdev.c | 359 ++++-- drivers/net/nfp/nfp_ethdev_vf.c | 2 +- drivers/net/nfp/nfp_rxtx.c | 123 +- drivers/net/nfp/nfp_rxtx.h | 121 ++ drivers/net/nfp/nfpcore/nfp_cpp_pcie_ops.c | 31 +- 19 files changed, 3426 insertions(+), 285 deletions(-) create mode 100644 drivers/net/nfp/flower/nfp_flower.c create mode 100644 drivers/net/nfp/flower/nfp_flower.h create mode 100644 drivers/net/nfp/flower/nfp_flower_cmsg.c create mode 100644 drivers/net/nfp/flower/nfp_flower_cmsg.h create mode 100644 drivers/net/nfp/flower/nfp_flower_ctrl.c create mode 100644 drivers/net/nfp/flower/nfp_flower_ctrl.h create mode 100644 drivers/net/nfp/flower/nfp_flower_ovs_compat.h create mode 100644 drivers/net/nfp/flower/nfp_flower_representor.c create mode 100644 drivers/net/nfp/flower/nfp_flower_representor.h -- 1.8.3.1