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 2298E43B61; Wed, 21 Feb 2024 11:14:26 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 93500402D1; Wed, 21 Feb 2024 11:14:25 +0100 (CET) Received: from NAM04-BN8-obe.outbound.protection.outlook.com (mail-bn8nam04on2050.outbound.protection.outlook.com [40.107.100.50]) by mails.dpdk.org (Postfix) with ESMTP id 260BC402CE for ; Wed, 21 Feb 2024 11:14:24 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=a3RSOhSKb4C6b4HGJFQepy2r36KoLt6knkNM1G8vGHmYekLnt+vZMNUbONYIWEm5sObCXfsP8d3O2sV3bYFAcz4J+6SUkgth5fXXwyxWEnGTMjACnCO04/fEdtwAZb4nMiDiaflcUdDceDUjBLuhJrsMZFJU8puhZ/fgJZm001E3DNxDX784bqXbQMQytHQ7BaIvl92ZIHafdxEpoWP03FeOdTO+ZWLM1q/Zwa2AIFxVI4R+llaH0wzc1JreVB4QfdJljQw3F/ppUQIzl3gTHSeXKwZHP2Jib0B6jdYQ12WRBZE4/EE6c1yehFmB/LJdOjHc8G5Vcs/o9ZDzJbEvxQ== 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=DShl/EbG0ws6rcIcDAOv3AGas0wTurHwkbW8q8JQOrM=; b=etqiSWstu1pYCRYwZeVmoT5J8lh+ES/O9ROlZ0Um+KHi6cF9zX2bDfUqud5GqNhNlrFLjsDN185pLrrZCcxaNcE7ADM5umw6Os58juD2aLxkwA0a9AxWEyJ2/TdXm16iZ6YPisKaMYEmovi5Q78Oen5pVMzEwdBbzWhsTxP3jWX0rAfTN+vJiYxmTjlIbS3cdu88sBeNQVuqUSrtExm/SQKXNtS6u9mPcDnikv7xJJTb5DsghVPeQephMxSX83QiYTajXBNvqSGTvgF0ibDswQSspfjQok1YAVJpOHS+1xyooHSHthJ9sLfuUcTz1jr4M02IMLhUCpcY31TxV9UUIw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.160) smtp.rcpttodomain=dpdk.org smtp.mailfrom=nvidia.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=DShl/EbG0ws6rcIcDAOv3AGas0wTurHwkbW8q8JQOrM=; b=IJfIROegLUpvaH/9wDDJn+PsL78FxluX4PAuB9o+b1B2gkosGHjiLPxd9PXWgVZcI7oHHsKmPZN4xc0Cv895c1CpZpZ1eHcfIvRHCQIGdDzfN4VlkiNWavNRduJXd1Pf1GPK6+FPaWSliHNw3TbcifBKB4PGicbQtSati/GtDQlw8xhvu+YI2z51nSKOQGRMTBRkeNCZk8/REeRmhFJkXPZen7zwuo1ylRfpBAIoqdLtq9XR/xqNJxVs2LEq/wSoTCDj4tsuEuD+ZoaoxJC5NdN+mUIQG2seoi2lMAbG89s8VhswzOUFWu349wKaRCXQrzxrHGNZveY5NRaB6yDPZQ== Received: from SJ0PR13CA0225.namprd13.prod.outlook.com (2603:10b6:a03:2c1::20) by BY5PR12MB4180.namprd12.prod.outlook.com (2603:10b6:a03:213::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7316.23; Wed, 21 Feb 2024 10:14:21 +0000 Received: from SJ1PEPF00001CEB.namprd03.prod.outlook.com (2603:10b6:a03:2c1:cafe::d8) by SJ0PR13CA0225.outlook.office365.com (2603:10b6:a03:2c1::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7316.12 via Frontend Transport; Wed, 21 Feb 2024 10:14:21 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.160) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.117.160 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.160; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.117.160) by SJ1PEPF00001CEB.mail.protection.outlook.com (10.167.242.27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7292.25 via Frontend Transport; Wed, 21 Feb 2024 10:14:21 +0000 Received: from rnnvmail201.nvidia.com (10.129.68.8) by mail.nvidia.com (10.129.200.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.41; Wed, 21 Feb 2024 02:14:03 -0800 Received: from nvidia.com (10.126.231.35) by rnnvmail201.nvidia.com (10.129.68.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1258.12; Wed, 21 Feb 2024 02:14:01 -0800 From: Dariusz Sosnowski To: Viacheslav Ovsiienko , Ori Kam , Suanming Mou , Matan Azrad CC: Subject: [PATCH 0/2] net/mlx5: add cross port meter mark action sharing Date: Wed, 21 Feb 2024 12:13:24 +0200 Message-ID: <20240221101327.9820-1-dsosnowski@nvidia.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.126.231.35] X-ClientProxiedBy: rnnvmail202.nvidia.com (10.129.68.7) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SJ1PEPF00001CEB:EE_|BY5PR12MB4180:EE_ X-MS-Office365-Filtering-Correlation-Id: e5abac9f-e1b7-4855-50b0-08dc32c5df32 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 6BfdSzpcVv5HJoh7gJsA6eYN0x0qv7ORAtBRRTZZ/iYJArzuYoB0yHEoJsYGF+bxANgjTHaq9L7csXrAfoJqjbSXOxN/LapT7hHdifHpJnqxfhfc7nfw61S3wFMN7Xt4mdBtdJ8tdjGhYQC/veLB9L2gYZ3fx4HbVXwbmPCKG5FxhsF3ZzOAHC1YMxEP/KiVH0AsapJ/lJ3qv86BsxX78OidRitSEONEbZkReE/zPWkm5ELD23e/nqyAECn5mLOEyYaxUsldydm/EG7knm4O49spIcpQFJEwmClnOT8ck1DOlPg2eo9uq8tqyT4QOiawrVvnxztusrtvyAVd3Xzn/bV/hnH6oUaRh0gosDirzI8eJpz6zgLOFB27duNkLYh4gigDAVZy9yXH5zm8lhKtyusLcfssmCZkDx2KGlLMXD1yMXe+w72YmqtdMgCLTcwCuY24X3amQa4OxRNrJwhXmt837u8Vx27SIEsly7T4AokbAJpKKbiAytaOqeG5AQPdc8LLztNmpc0ktcS09xbVv62XvFo94tEsIFulwl+CKJjQ5mWh87wP99s15uCRuXXVHmMspxMdt0f6E+7v57CPhMGQ2RgibcvpoAaacSaGZi+8RPkfwRebSaxlfi5GykGgjV5VlDx/UYepT45+e7wVrNY3NaY7ugBTGP3AgCB2Hvg= X-Forefront-Antispam-Report: CIP:216.228.117.160; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:dc6edge1.nvidia.com; CAT:NONE; SFS:(13230031)(36860700004)(46966006)(40470700004); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Feb 2024 10:14:21.2455 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: e5abac9f-e1b7-4855-50b0-08dc32c5df32 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.117.160]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: SJ1PEPF00001CEB.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY5PR12MB4180 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 patchset adds support for sharing indirect METER_MARK flow actions between ports, when flow engine is configured with RTE_FLOW_PORT_FLAG_SHARE_INDIRECT. Dariusz Sosnowski (2): net/mlx5: move meter init functions net/mlx5: add cross port meter mark action sharing drivers/net/mlx5/mlx5_flow_hw.c | 237 +++--------------------- drivers/net/mlx5/mlx5_flow_meter.c | 284 +++++++++++++++++++++++++++++ 2 files changed, 308 insertions(+), 213 deletions(-) -- 2.34.1