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 1278143BDB; Mon, 26 Feb 2024 02:45:26 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C9744402B2; Mon, 26 Feb 2024 02:45:25 +0100 (CET) Received: from NAM04-MW2-obe.outbound.protection.outlook.com (mail-mw2nam04on2090.outbound.protection.outlook.com [40.107.101.90]) by mails.dpdk.org (Postfix) with ESMTP id 4EB4240271 for ; Mon, 26 Feb 2024 02:45:24 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=f2OxYg/3/kcPH70+mFG4BhglTpdzp5dWRsg3sSrN3M3gpmnuAzIt0EcwVnQxbWELp9t9tyuQpjd5FWsuS/2w/AFbqWIAuHlvTbiwMR7MyOJIom04LjPFq9iDQAmIlYaMWNgkHTBolaJD62lm5NimyFvxPwysjSV8ta1CsXxCCs1AQolmuJeB1mo/iqDj9gv+EooNvmhEm/hYfUFx/a1pvgkE67+m5SYrqH1Iji/p/BdSrLS75Z7CEjQLsYiWkiJRNHuhr6I8DRLmj07ghNrw75DSCEXksmxAYH9H6NEw5OIOCp4at1r5ARUNRNb8Gx5bsv1911AZh+NfXmELy3Q0tQ== 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=zeRvptfB1F46dNdP1267njdEVTfFOE4id22fADLShGI=; b=JXNc5fGbJz/YViLDLA2Ibdld2kzNE0QMj2jxzCyiiPnEb7M9scrMXAokXjQgNbkyPe2Pn8bAzQW4yg+xcxkD5MHCOoX1KKGw2BG45gWAnA2raTvC+fjmXGjmit8eX8Y8uqeBJ4ZGMJh60WmAJ6oY5xRu90Phc9bnOihiUBXY6GFCfWq+jmAMG1I9Otu1lgr8JyqAM0z53+GvJ+eCzMDaUkEBA5xffwXBtG/CAdTvEetI+mxL7u+v7OmcVut/2Ozkkz6zKliX+UvUs0S0MlvLeqnw3k8V02HzQbWWxIJ2RmK2OWi22TuB2GKVSuzYY9ftmdSm47UEI3lviI31rXcxnQ== 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=zeRvptfB1F46dNdP1267njdEVTfFOE4id22fADLShGI=; b=Z0vZzc6ejP06nYx6KRmEQawo2MwSEEKy/3AswTE3tzmp29bzzzNH81mrJ5kxMOFXu3cXeN7bmjBFJoAnfGsfO5Ryhv6xtmtx/2444ERafhdoy/0ey2FZXPNBj4kT69vshoFyy5O4/pf8pOiP8+Wvp0bhKN3VFCG+LFvl6DjdZgk= 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 PH0PR13MB5794.namprd13.prod.outlook.com (2603:10b6:510:11d::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7316.34; Mon, 26 Feb 2024 01:45:21 +0000 Received: from SJ0PR13MB5545.namprd13.prod.outlook.com ([fe80::8e02:f738:570a:f8aa]) by SJ0PR13MB5545.namprd13.prod.outlook.com ([fe80::8e02:f738:570a:f8aa%7]) with mapi id 15.20.7316.032; Mon, 26 Feb 2024 01:45:20 +0000 From: Chaoyong He To: dev@dpdk.org Cc: oss-drivers@corigine.com, Chaoyong He Subject: [PATCH v3 0/4] add support of MARK and RSS flow action Date: Mon, 26 Feb 2024 09:44:56 +0800 Message-Id: <20240226014500.3537561-1-chaoyong.he@corigine.com> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20240223024217.3052031-1-chaoyong.he@corigine.com> References: <20240223024217.3052031-1-chaoyong.he@corigine.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: PH8PR05CA0005.namprd05.prod.outlook.com (2603:10b6:510:2cc::14) To SJ0PR13MB5545.namprd13.prod.outlook.com (2603:10b6:a03:424::5) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SJ0PR13MB5545:EE_|PH0PR13MB5794:EE_ X-MS-Office365-Filtering-Correlation-Id: 9af27c1b-694c-445f-aa62-08dc366c973b X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: cw3VK/gQcIbkt3GDETrRae1xyc9IUzE7mx//sD9vHQDge99feocvR9p8fIZ4n85MM43xhgkriHo1BRur7Xw1A4fkgGfi6SSurU1SAMSHNRcjYSOVR1HzlGSArpQQoEnAa90rNRqBJY+EHaafwOq3yEeCx260cCcn7DgQLBR6Ixd4ueXHhXMVwmQ0ZQecAyPqlAh5Vp3Y1Etd4cFmqXwB/XsCDzD1tr/Gh5ila+pqUsJjAULVMe2kdfJQq09xl6bRrvrp17JMmx5RQ5x5r12o4KYwjKBZRvmybohVD0X/zwejYHRkz6SUy+F/Qss2ulKA38jj4X+tHxmlr8IqjLqKcfkGQytgSX54mLGa4La6/MTre3TOlTN3KcIkrme6EtIWyTRIEXPhHpW/5QdDNs9Ku46YCf35PfDeLZxKE/sWpLKq9SiWtV6tih+yDT6WJAlttYbxdCxAqjhTkbN6WdZpeNAHsxoMEQSSoWhVlmvP66lCtUWvDONImoBIs+GURBtHnkql4tM5RKkdljd83ciTzL8bmczjnnzNvRLpqu4D2LwAzXtEiui/BGD9KjUO9jw6Skr+RNRlwk8kukaS79Eid5dKqFYeRlokb+TdFg2Ywu8/YbH1X93NsJa3JowO7MXFZmwFm05S7GSThGY6roJt5YHZZhkiJt1wvRm8o1JFtFX5JM06QJkaQbW/chB672wBH98o6otYf2RGgP5P+8G+zA== 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:(13230031)(38350700005); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?YcrTSaZm4VPX6OgiL+0FRJmMlySIjxwzJEWXYXPuzu6MhCX+xTioKkpKw/K3?= =?us-ascii?Q?fclYvao7jFvNEzf2XRbvjE3SCTRmdU1bk40n6ZbxkkuK8Bq+BcZHB8tWmepQ?= =?us-ascii?Q?kbPAcxYLcO9WhIQsxC5a3rbSMQPAeaPP1Xlrd2MIv6PcqSltS2FEWqJDtq31?= =?us-ascii?Q?AfVqBf1+7b1uhiJfep/D50etzo+ySSwu9u2yIBUiyFVgu/pg/nnG1N+v/qVZ?= =?us-ascii?Q?4Nn1qNzYABXEA3ZGilSifXUuyU5DZcUahbZMhESDs0Cp5BzRJAEwH4zmEjmv?= =?us-ascii?Q?FfhGNeXxSgiPVtfBqAsn/pmPyfl/4CkFn05NwExOvIwfEeRZT2ZQFz7sPyhQ?= =?us-ascii?Q?YlL/gXeWwYC+klfwCc4tGSfUESkpgNU7DdE3hrfZby2JKF6zUMOudSMUL401?= =?us-ascii?Q?wd9xSzkZd3RKjUCqLifPuH4K3LbMNbKJXlBIx3pRa+RYWNBpODVHrCSoGq0c?= =?us-ascii?Q?MqXowJa/cR5jEpdGCjOC1LjgSxMzslVV1fqO/1UPHNIXKrXAGZXhrk7zKH0s?= =?us-ascii?Q?C4c4BUb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1hgjU0SH5bjSwe0?= =?us-ascii?Q?V9NrnwTFp/+ZsJptkbHRMKuYsFhL+CUTVaZHu9LfQglcatSz9j2hz3lLrO0z?= =?us-ascii?Q?0U9kYpFUh4MqPY5RgEDCSPWCo7zDQrOfW0OChdfW+yQB+JUhmzdfjc79H4fj?= =?us-ascii?Q?b6yLVaMGwow0E/ZN54kc8fDSqueWHZwV+GHEZpSaulwD598nPJ59gvlK7L86?= =?us-ascii?Q?aA=3D=3D?= X-OriginatorOrg: corigine.com X-MS-Exchange-CrossTenant-Network-Message-Id: 9af27c1b-694c-445f-aa62-08dc366c973b X-MS-Exchange-CrossTenant-AuthSource: SJ0PR13MB5545.namprd13.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Feb 2024 01:45:20.5051 (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: Ms8RvVRZUVSmyWwII0s9h0eukRsJu+0IKs0K8mAOQ4rZrPHlGG9GC98440p8myWd+u9MRacQfoFBBcM/F99Niir3OuUCO/keWknr6zkfZBw= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR13MB5794 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 add the support of MARK and RSS flow action for NFP PMD, also add a new function to help check if a device is representor port. --- v2: * Modify the title and description of patch series to make it more clear. * Add a new function to ethdev library, PMDs can use it to check if a * device is representor port. v3: * Drop the update of release notes. * Replace two more instance in 'rte_class_eth.c' with the new add helper function. --- Long Wu (4): ethdev: add function to check representor port net/nfp: support MARK flow action net/nfp: add representor RSS configuration net/nfp: support RSS flow action doc/guides/nics/features/nfp.ini | 1 + drivers/common/nfp/nfp_common_ctrl.h | 1 + drivers/net/bnxt/bnxt.h | 3 - drivers/net/bnxt/bnxt_ethdev.c | 4 +- drivers/net/bnxt/tf_ulp/bnxt_tf_pmd_shim.c | 12 +- drivers/net/bnxt/tf_ulp/bnxt_ulp.c | 4 +- drivers/net/bnxt/tf_ulp/ulp_def_rules.c | 4 +- drivers/net/cpfl/cpfl_representor.c | 2 +- drivers/net/enic/enic.h | 5 - drivers/net/enic/enic_ethdev.c | 2 +- drivers/net/enic/enic_fm_flow.c | 20 +-- drivers/net/enic/enic_main.c | 4 +- drivers/net/i40e/i40e_ethdev.c | 2 +- drivers/net/ice/ice_dcf_ethdev.c | 2 +- drivers/net/ixgbe/ixgbe_ethdev.c | 2 +- drivers/net/nfp/flower/nfp_flower.c | 12 +- drivers/net/nfp/flower/nfp_flower_cmsg.h | 16 ++ drivers/net/nfp/flower/nfp_flower_flow.c | 153 +++++++++++++++++- drivers/net/nfp/flower/nfp_flower_flow.h | 8 + .../net/nfp/flower/nfp_flower_representor.c | 19 +++ .../net/nfp/flower/nfp_flower_representor.h | 1 + drivers/net/nfp/nfp_mtr.c | 2 +- drivers/net/nfp/nfp_net_common.c | 21 +-- drivers/net/nfp/nfp_net_common.h | 9 ++ drivers/net/nfp/nfp_net_flow.c | 2 +- lib/ethdev/ethdev_driver.h | 17 ++ lib/ethdev/rte_class_eth.c | 4 +- 27 files changed, 275 insertions(+), 57 deletions(-) -- 2.39.1