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 9F5D2A0A0C; Fri, 2 Jul 2021 11:15:06 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1C96E40686; Fri, 2 Jul 2021 11:15:06 +0200 (CEST) Received: from NAM02-BN1-obe.outbound.protection.outlook.com (mail-bn1nam07on2044.outbound.protection.outlook.com [40.107.212.44]) by mails.dpdk.org (Postfix) with ESMTP id BB9DB4014E for ; Fri, 2 Jul 2021 11:15:04 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=k+lomMpA1xpUPjO7976HlfCmqId0V2jDRaVjy7xtHAYyniz65ATdBEeJXMS0EoEwlzuXZiyNlUs3l48OCd7w30W5C+ImIB0O8hShCjPrSOOB6E2hOJ4bPqCh1D2Svy2BOmSWs1pq4yk/rWD+oOncZ2LVZavTtTVNXC82+7lw0LVQER5bnjVOOJO+KQtrHAbmzjtS3HPKR4yyWSrZrFTb1xjH5qzTbh1daG4l0nstsp93x7NAU9pdjilBPsthYmhCKJxy1tqEWA+AfUSQm0tgTHu4p/lyiDmExEQP7puqZ+ITpy09cySIhXZaSgqKGf/su6JTd977UhH6T0Sg87Rnjw== 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-SenderADCheck; bh=mIEGYzu994VFI4iYKrF0f4BmPPuMrN5BGAGJmA3yAdc=; b=RWdSEQBEe1Ox4AbasxurN6PLITHaOGi9Ib9IWGngmyVtu8Ek0UJpNH3TCkl123Rx149lZOT9lduNH/QC/NbRNwPxmw+O89pA2b0HjAPEpyZQVyJPr8lntsqErZBGzJInzhlouLEPEWefo9dT45jusdVvH0dGlla2GVHOFm14ukS0fpH+QMlg4rZGe0+gW3VY0ozLkPSBwPad/qG6bkdyDtzxYJIssqM1Dg3gX7nfJuLCFNOcCYeJRKtI/oA2EjBKcg6wSE9KpAgFzTTru+FDw1Mfp7N4zTte5las6Oy6ICPsNRVnasOMDiCeydfqAvEv/NFMITLjg3X+ZQiYSv3HGA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.112.34) smtp.rcpttodomain=monjalon.net smtp.mailfrom=nvidia.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none 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=mIEGYzu994VFI4iYKrF0f4BmPPuMrN5BGAGJmA3yAdc=; b=COCoZDe11A2XskeO785+MSsPqpiOQ/9GkSfEm39sEV89RDsxpGKF6oeAMx9RBkMa4/7eKHE+qvuik4C6Fl592xOvEB9tsRkuyekjVBt7HnmQ7UsqHqHzLNFTzQ79sffGG19sfeoo3sJjNZ58iPtxxTpyfDTJyo5sGu5UTK3YwhDfUcqeW8axuNr1jm8dBim4wuUV0BSzgW5z+0dGeE7LudQMBajs9wgK94obrxMr8Cbef/MPn7xT5XLsCuILwpDOi7FP9ASA7doN8bfzrCHwlRlG8UU/+MVZcp2oJLOMSoT9qaVZH9PSJPSxs3RaeVl73XXwcsaVPFVMDZxmwhsBmg== Received: from DM5PR21CA0007.namprd21.prod.outlook.com (2603:10b6:3:ac::17) by BL1PR12MB5093.namprd12.prod.outlook.com (2603:10b6:208:309::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4287.22; Fri, 2 Jul 2021 09:15:02 +0000 Received: from DM6NAM11FT034.eop-nam11.prod.protection.outlook.com (2603:10b6:3:ac:cafe::69) by DM5PR21CA0007.outlook.office365.com (2603:10b6:3:ac::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4308.2 via Frontend Transport; Fri, 2 Jul 2021 09:15:02 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.112.34) smtp.mailfrom=nvidia.com; monjalon.net; dkim=none (message not signed) header.d=none;monjalon.net; dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.112.34 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.112.34; helo=mail.nvidia.com; Received: from mail.nvidia.com (216.228.112.34) by DM6NAM11FT034.mail.protection.outlook.com (10.13.173.47) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.4287.22 via Frontend Transport; Fri, 2 Jul 2021 09:15:02 +0000 Received: from nvidia.com (172.20.187.6) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 2 Jul 2021 09:15:00 +0000 From: Shun Hao To: , , , CC: , , , Date: Fri, 2 Jul 2021 12:14:42 +0300 Message-ID: <20210702091446.24635-1-shunh@nvidia.com> X-Mailer: git-send-email 2.20.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [172.20.187.6] X-ClientProxiedBy: HQMAIL111.nvidia.com (172.20.187.18) To HQMAIL107.nvidia.com (172.20.187.13) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 097f5c18-7071-4052-dd61-08d93d39dfd5 X-MS-TrafficTypeDiagnostic: BL1PR12MB5093: X-LD-Processed: 43083d15-7273-40c1-b7db-39efd9ccc17a,ExtAddr X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:3173; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: KifH4G6Zj499rgdwZqDjrP7OJaiWfn91AQsZluH2sOUvFzv1etrzdy9GR3n7RqfgvZtg4XUiYxUoSyeUKzjM37ZVeFEBhuVqb1toyDdAjyROoBgz44yQScN9i6sZwIzyMrvNpYzbjIy4+H8oMysDeas7Wr+ZRH+vC59/P9c43yNyo9ozdCpoFhGktoH1+GIhqFsxm5PeMaX4O72dlFHXjoguA/vO46fdKEaP8OMI2/KIcSrXTMHU3cOcD7IA9MZ1zQ0PF7ZrZuaE//KTJKyibKG3TlO7yk6DXJKZ2Jb5MJXZjKdWcyDViev71vod+VWBIsjkUfUQ8bZgqtBIVwIYRhwpRtHOl7a7JgjcogHcVKuTLAEsVWRkLzsDPKNWXJ2vKRIzdfZEPCIIKyZpqvFPiNuMaWz1s3DJ+bZ6Qg3fFluKGlfA7Mej9K/DwwNMA6C7jotFdQc02u2PsfBlm+cN6rEQ4z+qf89uhSANfNJfLh4auvCpyNoRAEMoqWiyL62kqRdPtgJHmogyMglNycxvUbYLeE38dlfc3EgEg/5N2dsXnOACe4iUdHa6hz0oWNrOSgu1rJGleYGOkVMYt022ogyPoYTlYYkpnyz2rvWGQqp7YOjWTkMbM5T6rTywD2HrQijAtVskP4SJGhTGp7ZleWv11s1IUFmqYgoPSCU4ytLIAmDPr3KbC7bLaMm3BcGL3WbgfOaveC4KFtUeyT8zng== X-Forefront-Antispam-Report: CIP:216.228.112.34; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:schybrid03.nvidia.com; CAT:NONE; SFS:(4636009)(396003)(136003)(39860400002)(346002)(376002)(36840700001)(46966006)(55016002)(316002)(26005)(336012)(36756003)(110136005)(82740400003)(36906005)(4744005)(54906003)(82310400003)(6636002)(5660300002)(86362001)(186003)(16526019)(6666004)(1076003)(7636003)(6286002)(70586007)(47076005)(36860700001)(70206006)(107886003)(356005)(7696005)(426003)(2616005)(8936002)(83380400001)(4326008)(478600001)(8676002)(2906002); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Jul 2021 09:15:02.6251 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 097f5c18-7071-4052-dd61-08d93d39dfd5 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.112.34]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: DM6NAM11FT034.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL1PR12MB5093 Subject: [dpdk-dev] [PATCH v1 0/4] ASO meter sharing support 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 Sender: "dev" This adds several fixes in ASO meter. With these fixes, meter created on one port can be shared by other ports. Shun Hao (4): net/mlx5: use meter profile lookup table net/mlx5: fix meter policy ID table container net/mlx5: fix meter flow direction check net/mlx5: fix meter policy flow match item doc/guides/nics/mlx5.rst | 8 +++ drivers/net/mlx5/linux/mlx5_os.c | 6 +- drivers/net/mlx5/mlx5.c | 2 - drivers/net/mlx5/mlx5.h | 7 ++- drivers/net/mlx5/mlx5_flow.c | 83 ++++++++++++++++----------- drivers/net/mlx5/mlx5_flow_dv.c | 58 ++++++++++++++++--- drivers/net/mlx5/mlx5_flow_meter.c | 91 +++++++++++++++++------------- drivers/net/mlx5/windows/mlx5_os.c | 6 +- 8 files changed, 172 insertions(+), 89 deletions(-) -- 2.20.0