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 28096A0032; Fri, 24 Jun 2022 04:54:57 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B6F2D4069D; Fri, 24 Jun 2022 04:54:56 +0200 (CEST) Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12on2112.outbound.protection.outlook.com [40.107.237.112]) by mails.dpdk.org (Postfix) with ESMTP id D46FB4067B for ; Fri, 24 Jun 2022 04:54:54 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Jq35hoLpsEDQbuWi5vplRok3t/Tu/GfTyOmbqPePu8+EtMN7JS7PNxNI2ttoYhknWg7dXVpQTNhv2ujrdZTexAoCxNW3FH6ZmX9IWGIQ80Wqee5+ICs3eLjqA96Jei6IryOf0JxatOvfQJkSWooaGiJbZXniigN8tSXdMuYg9+Ij5uxB8tDOaEucwuV7B1jWT+vdHmrYBs2TPYPUoJQy+ynjSfYecEC33RN/mHJTniseeTASFWuA62GMObzPzweGu5FKPQKo1N4QkipyJgXOxJJpHlUzdsw1lSQH9xoR6ljTHTBsqymWixCn5FAL8AhAg7x6G1ikirxkHW3EYBJc3Q== 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=GmfDMjcG6bVbvzCLWEC9ixH8Ja5oJ17zdxoNGnK7wTk=; b=BqPZe1lsKb5y4FP0ZJg6hdrGs+eiXOEDYbkzaubWEWijka0JSpd8iC+lglJEGmjgP/3hurb4uNcPFSiyrIsLNgimPBtq5QluHJyNjsPdvdiUw8t//fknLnnf3ZmV4dPYbDl6NjHI34SL/IiZar+j6rCbU66RXTEx2CWUk4FbKbQlfTvtx+zWwhoMkjjUF9+NX/TUuvusU8uFIdR9WA0rHNFUZ2dYxfezoFjDjYZN3JS6pdn7U7nMu+MPf5Ffn6dfZFGqqXQi9UC9O+L1cKgGDr7CcsBuXyaZFt9YoHkx9XRPj2nt1QVbfyxJXTSpTIf22hqbd0DKHKBFwhJVCqnJdQ== 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=GmfDMjcG6bVbvzCLWEC9ixH8Ja5oJ17zdxoNGnK7wTk=; b=bgBaaVPvZyAfbnz4YTJPgrP+zTwBJSYETdC6BVt3oqZ1QWC0reG6oaNiK4P+Awgh3OS7LLvaKgiAnZFHRRG7RirXSyyiH2B0tGFQtLy0hTcRjRSvAFh9+b4ooK8/ADGwPyqNFKGbY40gCuAeDeWyumLUS3gA5e5zbYKu7B+Hbuw= 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 MN2PR13MB2752.namprd13.prod.outlook.com (2603:10b6:208:f2::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5373.15; Fri, 24 Jun 2022 02:54:52 +0000 Received: from SJ0PR13MB5545.namprd13.prod.outlook.com ([fe80::5d9e:9ce5:51d1:2021]) by SJ0PR13MB5545.namprd13.prod.outlook.com ([fe80::5d9e:9ce5:51d1:2021%7]) with mapi id 15.20.5373.015; Fri, 24 Jun 2022 02:54:52 +0000 From: Chaoyong He To: dev@dpdk.org Cc: niklas.soderlund@corigine.com, Chaoyong He Subject: [PATCH v3 00/12] preparation for the rte_flow offload of nfp PMD Date: Fri, 24 Jun 2022 10:53:49 +0800 Message-Id: <1656039241-20955-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: SI2PR02CA0030.apcprd02.prod.outlook.com (2603:1096:4:195::17) 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: e37f3073-c005-4ab5-26d3-08da558ce8e7 X-MS-TrafficTypeDiagnostic: MN2PR13MB2752:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: UVp0Yg8DKdxTe7DEtypUXma1jmhNfPStH0yjtN+omkKrvEOcegOUX4+B5rCQ0vjcm/6acKv9dPpO7R42SJXhyRZW9Ps9Qtbvc5luOm4Tp4CfsfltqbQT7OI1VuU+EBDp6FTWKa/O47P99ckgFZwCqvQw8z6DcIwQh1U3AvIZDP5ufAiSk8OX/gZsUtM+jaHLuqwQQOKF/TBWPLeRtgfX9gHH7BUwEFmwwazG+NvCvm7kljRZsCA4vXKxNYdVBa5wyKmSDuCfCQnu2xpxfe9wdZUEYiKKTOot6GyUsNY1In8/lbprCBSj7AguYKR5DPVScSSMTwmlS16718Nn8uPO3Yt8QitDlhwYVieNmK6HeLdai7ZdRMA4kWUIaKQutJkKBjGmf7BdHJIHraklqBMU45SN/8TRyfGYb2y24nwqxofKPm369URXYqXy8e+GHq3f3QkrTEGZQHKMn49Z/aZRS88HUhmHv1dCzXtpnousW3rYrvTDLIbwe65xZ200ylU2hBaiAJ495dFzyis8KP9dWZ3uQ++aEMPOI8b2sRFjOUA/LwF93rBIyd1tv9mssUNc4ZnygQZd9YC5xB9PCmBE+IpPlkHXPL9xrH4CAQdsCcvgkgxpQuBcwBegaBQsloZzgBrVD8iiDI74YlmLq0WJJdLcdALu301Nx+MKlGEtWjQfw4+AtqF68u2TFdswfE4lLGE45cU3pxl6U4SFukhoEn3WMBhVkSz+HdtGhMvDLpEIzN+ADU0X+laru3x6+BqmTfH/FRS8PxpL7DLUZp0bQjEIPawmK1dsC0eW+p0mFGDFvAB/Wa9yqLFjwQFgRFmDLYgRCAfRHvFyTOPH+/7sYw== 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)(39830400003)(376002)(366004)(136003)(346002)(396003)(66556008)(2906002)(66946007)(26005)(83380400001)(6916009)(66476007)(6486002)(2616005)(8676002)(41300700001)(38100700002)(4326008)(6506007)(6512007)(44832011)(86362001)(478600001)(36756003)(186003)(52116002)(316002)(6666004)(38350700002)(8936002)(107886003)(5660300002); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?Sk1xcExEVjYyWDdIT0VwVVVMRGNQREZwdVFtNUNVcXVJcG8yOVVTUWlKZzZv?= =?utf-8?B?ZHR3U1FrZUdVZnluNFV4YjV2ZjNRbDd3ZTRabkt6S1d0WTFQRlhZUzhGYWpj?= =?utf-8?B?SWE4Umt0YTliVTVhMDdCaElrVlNqMzJDUS9PUkovSDFUNFpMS3BSZE9uTlVB?= =?utf-8?B?d2pOTG1yMy93bHpyNnhHVnhBTFBPSVJGT1NEcU5BL2lNdGJlRXlmR1VTdmJK?= =?utf-8?B?aCtSV3VaSkRJdCtaYWRlU3ZuQk1mdUxCT0k4ZHNaOG40SUV4TnU0ZE5YTWNX?= =?utf-8?B?bnZ3UndydVVMMktsZnU1V1BDcjMzSXJMc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UFlj?= =?utf-8?B?cWN1S3dDR2szWG1tdzNXekJqVUNtT0RUZm5ia09MNkZBT2Jvc3o1bTJmK0xJ?= =?utf-8?B?NVE9PQ==?= X-OriginatorOrg: corigine.com X-MS-Exchange-CrossTenant-Network-Message-Id: e37f3073-c005-4ab5-26d3-08da558ce8e7 X-MS-Exchange-CrossTenant-AuthSource: SJ0PR13MB5545.namprd13.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Jun 2022 02:54:52.0403 (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: VyttH10pgnW1N6sAHLsEL8FrfsifwJr2e/LMhbn9RJS2iWsbOD5xuyXkbW75zOeLJH65SEgMK3lrfTuORnDRD8nCG0DQwyvC/YSj7QOEo0I= X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR13MB2752 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 v2 - Remove the use of rte_panic() * Changes since v1 - Fix the compile error 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 | 1565 +++++++++++++++++++++++ drivers/net/nfp/flower/nfp_flower.h | 71 + drivers/net/nfp/flower/nfp_flower_cmsg.c | 165 +++ drivers/net/nfp/flower/nfp_flower_cmsg.h | 173 +++ drivers/net/nfp/flower/nfp_flower_ctrl.c | 248 ++++ 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 | 87 +- drivers/net/nfp/nfp_cpp_bridge.h | 4 +- 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, 3412 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