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 CEE1943B91; Fri, 23 Feb 2024 03:42:45 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 958CA402E3; Fri, 23 Feb 2024 03:42:45 +0100 (CET) Received: from NAM12-MW2-obe.outbound.protection.outlook.com (mail-mw2nam12on2115.outbound.protection.outlook.com [40.107.244.115]) by mails.dpdk.org (Postfix) with ESMTP id 95E74402BD for ; Fri, 23 Feb 2024 03:42:44 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=iEs7Xe4zCv84dbdN3IbRd/MqNMPpIYh7ubnT+o0AMzLd2kRLGwAh5/yMkuhonPtY7+bNLTmmf4YwwP3cB70WTxuDljKJZ9td2XMP5Eq+90ZLpy3Kmgr9jydaowUVW9g+AFDBKVhA4EN2an0n8kyrahrN5Txl61QSSOshMwK9WzUGpQ0xv1oOVgp7382a2KVSIKWtaC874dzWmnlb2K7mvWTkX9kP5WWBFF/qyACFsGV/7OODPlxVy6n5CQZnLEIIGUZzeGfLX6O2g32oL8y3VSKG3vwGXbEYBw8+iHGVqwC4e9WPz7k8A8G7CR80bsAyCFnSwzbfzwAkjq/X85JrHA== 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=byH6qxLg02E5vbziJw3nzZlzX3THaXi0IGl6GYfznaM=; b=KiSJDIs404IKYTRMFrTE396zIWd156ksHorYDR8yWREtlPQ7k0nVtl8Br2vcRKTRLWMIdpnSl/IJQBhk8KQla+aRleqUA3fyyE0V1b5zd7d7tD2kL8ujLezZtd3ZkYWYXSoOjhPSS6u6iXZLfpnx05v07h5ddF43pGtGSEsxPOytqAzdcQKKraK+kYgHREzbXXYvmz9GAWtt51oACOBN1fyKMPnKc1RXvF7aemLqdxBpCOo8QO+YvvlLN2QcUz4j0FtR8CWw0DGg64ThQfUgB3jZZV9Jjh+IFm72PXto0yV9aZt2CL2dgtRsyulbzsytN+SQiXltnjDWt68sYKmFcg== 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=byH6qxLg02E5vbziJw3nzZlzX3THaXi0IGl6GYfznaM=; b=D3g1TYb0o38khA2OZ7f5oqHmiW/tYL2q3agxGAvsl/NsCaE+FFhK9AukexMAFa2aeI9jtyDVjhK7wUzwDd7V91DIs0eh5yCk7poqza4S9q6XJMw78Lqz44GJsd0g2H+QMQ2UonYaT+R5nVQjGPheeTfA/Zl3Fg7jiD37Phvsr3o= 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 SA1PR13MB6645.namprd13.prod.outlook.com (2603:10b6:806:3e6::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7316.24; Fri, 23 Feb 2024 02:42:37 +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.023; Fri, 23 Feb 2024 02:42:36 +0000 From: Chaoyong He To: dev@dpdk.org Cc: oss-drivers@corigine.com, Chaoyong He Subject: [PATCH v2 0/4] add support of MARK and RSS flow action Date: Fri, 23 Feb 2024 10:42:13 +0800 Message-Id: <20240223024217.3052031-1-chaoyong.he@corigine.com> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20240210104214.1248772-1-chaoyong.he@corigine.com> References: <20240210104214.1248772-1-chaoyong.he@corigine.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SJ0PR13CA0040.namprd13.prod.outlook.com (2603:10b6:a03:2c2::15) To SJ0PR13MB5545.namprd13.prod.outlook.com (2603:10b6:a03:424::5) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SJ0PR13MB5545:EE_|SA1PR13MB6645:EE_ X-MS-Office365-Filtering-Correlation-Id: eff632a2-f670-4532-8abb-08dc341917fe X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: SGIz2dBlqRZ80/O8kCPJU4gwiOK6FdSdb6cDrdJfPTMVxEOa7aOcQfx4DAMe8yRfY8sAy2SZQ1lrpOAST7U4KtZ7bP5Hn9rlHm5qAQwVFo02hlMSoslJ14n6CvQrEJw2Vmy5TadGpK4DXBNcFS42uqS47bD5EnW5jDPXftmaEz0Wxxslgjin0E3Hm2T66+3OgPIIKO0jsyglrIYVzv5h5RWx3Mxh7ZSn7MhP8zgnom20O70qedDI1AE5wOmrO95PzP3lAENj1s8rWaGWKgitOUxlrrkKtgxFSmJ8svXWackC7fK3o1wtDKncNz9XqBU5iLFmaTGVGtcGfYpGBd2jiIezGvrH7SX9UEozu5me32MKtaKnnSHAChlJpTrznlt5/u0CBPJ92DGwhoRCuR9truznZs01FheibgA1m/EoGliY+8m1HCy5fA1saG3PAbbxlCMF1m1f4PqekuTYWYO5udTmCNy2IMdoyCCq7g+mCmj+EmsmCMyeyt0/9HccRNDyokMaFnLp61Gq2q+s1uRpH7+u1/AfLIw8bvirKsOZF5wed+nsc1DCq4nkT6Q6TPb8g33o5R69AJk4gkHn8QQaoXYEkhZHaY8ghqEGHiUSzihqE2pfb8plZUF69BEXRXGx 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?kLbMFE6YRbydYHTVAyHvgW21XQz6FJV0VNZGEUgSIUIMnHmsotCiSomgLA/F?= =?us-ascii?Q?pJzjF82gWHuboKBtlcbkH1R2SDZ6rw9O22uB4Tkt7icn1NehnuwlXEFx6uMK?= =?us-ascii?Q?BfzEUhG4tmJLMk+ymR8/kOkkhCbVlLys9vpK3U90L+cVmWHKv4MV+TO7c8EU?= =?us-ascii?Q?TeBgdR4mp3Nz+VHqaohZLQiwcYExb3XBvRY0et5MwIvz/Zj3fNzLSiqAMTFh?= =?us-ascii?Q?J9ZRkxyYBszNvUYY6ZCn0vf9qXDA3T1TB4UO8YTNZNDWe8v2WK+NO102IclC?= =?us-ascii?Q?y5RYyR1SLqXCaMBYKbDCwjsOyOkBmtUcKPx2UFrf6IzDKCUdm1v2N+8keluz?= =?us-ascii?Q?86OXcpkozcMYZ5RKP0LzY2WQbx1AvbanU1WgzR+5uen0ogLiZ5Ga/niqrLxr?= =?us-ascii?Q?9J1Kwppb7HqRVWRcH63Pq3CGftwR/6jkMulfI12y2TIxUve70zJWPz2xMiOt?= =?us-ascii?Q?MD6t63yYp4+FW7Ssv6QoClGPe3q8nrUcoHUmh3qjixvIZxWBexuxuIC1ajOc?= =?us-ascii?Q?Z+A+ixr6zrHWTHp2klLvFLrgT5eTmgJ6PFTwEXEMuw7385lOZTa9h/JoV8B+?= =?us-ascii?Q?+CsCNEOdOXq6sCgSYoimCN3S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us-ascii?Q?OxBh/We9+HhfhNTDV6Jigc8k2BO2u/FncJL14VKWCXK7kyPAmQT6f0qK+7LF?= =?us-ascii?Q?/ZdAZVQkd64Gy/d5chTLhgSPKlDh52fdN160x/Vvtdcu6swpTlaJbd1Fh57k?= =?us-ascii?Q?jA=3D=3D?= X-OriginatorOrg: corigine.com X-MS-Exchange-CrossTenant-Network-Message-Id: eff632a2-f670-4532-8abb-08dc341917fe X-MS-Exchange-CrossTenant-AuthSource: SJ0PR13MB5545.namprd13.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Feb 2024 02:42:36.4115 (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: rq/QCy3QTuNhx+YsO4bq1PkpSMa67qUTy8ApYLRFjf8J5Yv4vBi0777w+hbxSRIK/aqbjJYksmsZpXGmY4YoxVSz0isW6wWrVywYO0/xpWE= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA1PR13MB6645 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. --- 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 + doc/guides/rel_notes/release_24_03.rst | 3 + 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 ++ 27 files changed, 276 insertions(+), 55 deletions(-) -- 2.39.1