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 41629A00C5; Thu, 15 Sep 2022 12:44:55 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D77F54021D; Thu, 15 Sep 2022 12:44:54 +0200 (CEST) Received: from NAM04-MW2-obe.outbound.protection.outlook.com (mail-mw2nam04on2096.outbound.protection.outlook.com [40.107.101.96]) by mails.dpdk.org (Postfix) with ESMTP id 165C140156 for ; Thu, 15 Sep 2022 12:44:53 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=VnDGNhqS3kXyFXeQaXvvPzT2JJpq1FtB0KZMtKHqYr7+ZaASeXk+wLVLRi9m7TBz11aSyLByBnGlE4EWwxWeS3C85J5N/lgUbdlTTYiGTFWXjmCmAaVXjnBu+hf9BzdJ4+ccCVOCAveqnFf4X0VNZ3ghcDt8VpNRGz+Ami6IMGjiVwlVyaixaZsARV2M+mkqmyb7pYc1S7Ipd8SrUnCCbDTKvL6X6LcVXVGgqo5+l09sz0z3hiNaBRQX0sgjjyGOkSmpKmsV7ZeNZgANR+EJ5GKHSaBm3alsDCphWI4qEqmdE3pYcurakh5y4yZhVHbRjKZmno9Grv7ARlkhO8pewQ== 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=ciCSxFr9cGU7rZ8kDVuszkG5HJk1uhOYcRwIOX+iKRE=; b=cMqlWaEJDtB+oghCD0hNQDckXsN00bgQlTdXv+WSbxbaBdYIZ7BqE1c2geKUrb2+IV1EGLVXzKI9utxKaZpWyJgTFXqfqI22OMwmFvoNjiOU1CVIFQppHr4Lnueg9pDpKn5AypU0kmxwgz4r16SwxCjBWC4IPoU1GB3ccFRy9fGNqss28Gj0edajcna3hONaQPjD/ffcn9oycK4bzW9iscVP/H737LfIGzdg2eqLz5dRR3oA+fQQ2xYMBTcIw00wnM8wtSW2WpqNS4jqbfJ3ealeEFuGX8PN4Zf3D+VwawL6u62UD5t6p1qyOVjyYzn0uY7RvuKNkCv3jwYM6xnPpw== 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=ciCSxFr9cGU7rZ8kDVuszkG5HJk1uhOYcRwIOX+iKRE=; b=VTyr7BNmj2fRvpGcq/Q6gKVKDvfW74ifBTrcfEptHbPRt0WWOLup1X+u0nUnqCDRMevZGaDXw5hSQic3uJjo6G+yoVw/W/vGcfs+V978uYfE2XeJkVPmfIAolwxq+oUhyBA5w69nOI6OYT/M5/9Dbk8W7d/jxKy4USBpepzq6m8= 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 SA0PR13MB4158.namprd13.prod.outlook.com (2603:10b6:806:9b::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5654.5; Thu, 15 Sep 2022 10:44:52 +0000 Received: from SJ0PR13MB5545.namprd13.prod.outlook.com ([fe80::819:38c:6513:bf15]) by SJ0PR13MB5545.namprd13.prod.outlook.com ([fe80::819:38c:6513:bf15%4]) with mapi id 15.20.5632.012; Thu, 15 Sep 2022 10:44:52 +0000 From: Chaoyong He To: dev@dpdk.org Cc: oss-drivers@corigine.com, niklas.soderlund@corigine.com, Chaoyong He Subject: [PATCH v9 00/12] preparation for the rte_flow offload of nfp PMD Date: Thu, 15 Sep 2022 18:44:17 +0800 Message-Id: <1663238669-12244-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: BYAPR11CA0071.namprd11.prod.outlook.com (2603:10b6:a03:80::48) To SJ0PR13MB5545.namprd13.prod.outlook.com (2603:10b6:a03:424::5) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SJ0PR13MB5545:EE_|SA0PR13MB4158:EE_ X-MS-Office365-Filtering-Correlation-Id: 41409843-59fa-4847-f880-08da970751a6 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: GHomHOAyU6IfHMh3N1e5TbIbURZoAu5v9OXvVt68PJFL88LB/OF2GTG7urEUAr5d534d1th+lxHUrQ53/oJiLwysdmsu9j6Fd00ylegD3GbfYDnNuKH/uFaxW9YitH5QdXm2uWh+C4yoPgRtlcANrLZHHikMlmU2EbhoKNLp6dAEvzdikga3aLwvXENa3aGQec1WUO+IgwQi79XDNMSW+OKTVvn5ROfDwr3FqYX/p8j5ZVOy8pi7bi0ecaLkMqrzVF6kavp0JOeXNV2J6EUCfo0Ab7yYzQHbwT3Rc/AwbcE5txMopGULHe/FbAkoirDr1629uwqfQ4CCqBxKU1vPxL5zUBs5BMsb94OM0hiXzQfUWPZMRXfecoBuzCmUeAkEOcCd5ZEEzDp11Aa14EKqDK0DJhKEwVkO1PS/5Gy0Pc5BDUp1P+UWtWtoZjEeMrYa7qTeLnoexu5AyBbywHNhZsUAu/qNawZHRCcPc6Y78DiFTEeiJE4x50AgnIDmTk95hbkVX+4DZLl/uRMsKXKxSMbS/YfWTiLeECPZAWxcQknrBUCkuNGIbaai33Vl0jsUuSSqfAZe6VK3BB+rHj/JORPfHg8oKqGLcmX4i/rtFZRsDkVlY2+87EtlVHTtz72mrK5XXVFH63e/7osNM+I9+cQlG05q02oGGJKdl1pr5IornPmufKmsz2NxPUbNGeUoGhejG9KsL9W/y/RqN2xgxnmPp3prnmwpHwQzHtsPDwzlllAIrOWvqqgnFqplXoYOUlIe10A2ryYYGjsQeA5QmA== 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:(13230022)(4636009)(396003)(346002)(366004)(376002)(39840400004)(136003)(451199015)(2616005)(38350700002)(38100700002)(186003)(86362001)(83380400001)(107886003)(8676002)(66946007)(66476007)(4326008)(66556008)(44832011)(8936002)(41300700001)(2906002)(5660300002)(6506007)(478600001)(6666004)(316002)(6512007)(26005)(6486002)(52116002)(6916009)(36756003); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?MVdSaEZDT0VQc3dYOUxubmV6dHFDSW9WQXJZVFM5OWJ0MCt3R2paRWVzSUxU?= =?utf-8?B?ZldUYTQrS0hKbVU1dEFuNGdGZnh5WUdTZWxuajd5d1M3WC8vYXV5a3JjYlFC?= =?utf-8?B?Ykh1RW9VdTRhRFgvRUxtamdwYmNyaHMwOHJPSU42UnVjUktiZHZjWVhwUldX?= =?utf-8?B?SE9OeDcvMFp4TXA0OXN2V0kycjhqU2JkOGd5Ym03b1FsV3AvVTVHQzlxYnRU?= =?utf-8?B?U0R3cXBhU0ovd0pmTWN0V1pSWGIyVHB4VFlWb0t4czZib081R2tWVEFKQWdN?= =?utf-8?B?WWVVVm5UekFjN0dCUGtDclh4Ung1RGYvanQzN1I2TGJIQnFhb284Z1BtYmdz?= =?utf-8?B?MW53N3hZVVV1VlN1a1BYbS9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B?anc9PQ==?= X-OriginatorOrg: corigine.com X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA0PR13MB4158 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 * Changes since v8 - Update the nfp.rst - Fix the 'app_hw' to 'app_fw' - Remove the ovs compatible header file - Remove the use of rte_eth_dev_configure()/rte_eth_rx_burst()/rte_eth_dev_start() API * Changes since v7 - Adjust the logics to make sure not break the pci probe process - Change 'app' to 'app_fw' in all logics to avoid confuse - Fix problem about log level * Changes since v6 - Fix the compile error * Changes since v5 - Compare integer with 0 explicitly - Change helper macro to function - Implement the dummy functions - Remove some unnecessary logics * 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 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 doc/guides/nics/nfp.rst | 32 + doc/guides/rel_notes/release_22_11.rst | 9 + drivers/net/nfp/flower/nfp_flower.c | 1310 +++++++++++++++++++++++ drivers/net/nfp/flower/nfp_flower.h | 70 ++ drivers/net/nfp/flower/nfp_flower_cmsg.c | 185 ++++ drivers/net/nfp/flower/nfp_flower_cmsg.h | 173 +++ drivers/net/nfp/flower/nfp_flower_ctrl.c | 250 +++++ drivers/net/nfp/flower/nfp_flower_ctrl.h | 13 + drivers/net/nfp/flower/nfp_flower_representor.c | 664 ++++++++++++ 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 | 35 +- drivers/net/nfp/nfp_cpp_bridge.c | 88 +- drivers/net/nfp/nfp_cpp_bridge.h | 6 +- drivers/net/nfp/nfp_ethdev.c | 347 +++--- 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 +- 20 files changed, 3222 insertions(+), 282 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_representor.c create mode 100644 drivers/net/nfp/flower/nfp_flower_representor.h -- 1.8.3.1