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 1BE20A034F; Wed, 10 Nov 2021 13:57:48 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 956A44068B; Wed, 10 Nov 2021 13:57:47 +0100 (CET) Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10on2079.outbound.protection.outlook.com [40.107.93.79]) by mails.dpdk.org (Postfix) with ESMTP id 037CF40683 for ; Wed, 10 Nov 2021 13:57:45 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=V21j3w/osPuSlBhjJkrWvz8lRGkFSFpvixotE13bHZxUKc7vrt2wm0ZjeP6sdL3H5CTKhcMCiB0lLen5XR9pGEMx05YsVJYiGI9fe8U2hgYGXE1ECL34G+gjLGuSSOcPsV2pLscGAGhXngx0IC8VtexNUcctdQXyFvlNADbpS1y1gct9G3MicAMMwJxeUo8HMFcvIMoH1yY1r+SfXcpqnIQrLtvtKj/jRcK6evAGcP1WOMvG/utziY3+nb8dfx9vPNkQsIZXTCSRVWEtQsklrQ0GVM4ZyexTCIx9i8qFxqu0KUI0JCInhy0W5rc8/M6NBoG11MOTbk2hIrX2ybGKMA== 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=CyLRaHpmZW4w1rYpwhT/F3GraxxgF1Z2lDfJljswuZo=; b=lcOB94ALXxWThZBy7rkbirDCSY+A2s232o6k+S+R2aoSIIu605Pf/WR0+EGehxJWSCmKU2B+4zl6qfyJInNv5zXmqCsrL83+P+poynI2oKtdgduSV49gJDNoK818hGJu1VNBTULHq5Z5H8RJWQhR0k79imOGrUlTgeZY+/MeVUUAQT+g+ZvlfPp9o//TQRYA169iYR6kOFSWGhKXO/W1AJSgde7ZzyXqcViQQEn7taFyLj1iL463ibh9k3x//hJkrT1OKF1+ssfPGdDjvHkvCjgJHcCFU5mJWxzfVay4c0mPg0EP/bKiMmXp8BnDpwt5FdTeoUkkt0tby4H6TJQgpA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.112.34) smtp.rcpttodomain=dpdk.org smtp.mailfrom=nvidia.com; dmarc=pass (p=quarantine sp=quarantine 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=CyLRaHpmZW4w1rYpwhT/F3GraxxgF1Z2lDfJljswuZo=; b=uEOpfvVFzubK1tVhDo0jEwDm96J71kxQwR5lZEY8/82RYqFpenKWjElcdv2XPAC8a+67fsPz5eSAZE1MSabTPZm49KHkC9/b1d7W9SX8r3tx11MLEMR/GRn7J/gSqV0G1Ejz9+2Gl7FFcqm4N+A/93CWQzZpO6j1SU1fDE5pDKQy3bTF1bPC1LzRuTwuS1N2Uz0wzLzyrXsucjY92xUc26M7oh7WIBo0iK8Uwl5wdkQjfXZsTAcPoGqqbqf34uvQLjP2/c8XBDFeqXGZQvOngx9O95vbRSQo56sSAwX3CKhUsjTjWWksEJXRzo6K2aQG0ye63iGW12HLis39/HZivg== Received: from CO2PR04CA0189.namprd04.prod.outlook.com (2603:10b6:104:5::19) by BY5PR12MB5560.namprd12.prod.outlook.com (2603:10b6:a03:1d8::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4690.17; Wed, 10 Nov 2021 12:57:42 +0000 Received: from CO1NAM11FT008.eop-nam11.prod.protection.outlook.com (2603:10b6:104:5:cafe::42) by CO2PR04CA0189.outlook.office365.com (2603:10b6:104:5::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4669.11 via Frontend Transport; Wed, 10 Nov 2021 12:57:42 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.112.34) 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.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 CO1NAM11FT008.mail.protection.outlook.com (10.13.175.191) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.4690.15 via Frontend Transport; Wed, 10 Nov 2021 12:57:41 +0000 Received: from nvidia.com (172.20.187.5) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Wed, 10 Nov 2021 12:57:38 +0000 From: Rongwei Liu To: , , , CC: , Date: Wed, 10 Nov 2021 14:57:22 +0200 Message-ID: <20211110125725.2076706-1-rongweil@nvidia.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <6177033.fEpqbVaury@thomas> References: <6177033.fEpqbVaury@thomas> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [172.20.187.5] X-ClientProxiedBy: HQMAIL105.nvidia.com (172.20.187.12) To HQMAIL107.nvidia.com (172.20.187.13) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 0267296c-d6ef-4b92-7270-08d9a449aeac X-MS-TrafficTypeDiagnostic: BY5PR12MB5560: X-LD-Processed: 43083d15-7273-40c1-b7db-39efd9ccc17a,ExtAddr X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:3968; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: u2Y5ojl487ZtaBc7Xi9GCmW+eTnAmxpadrZuyWj0odfkGyo3FikChGoraz22lssxFuSevPJhibHK9a8IOnsm8Idi1D3w8q3wLV6/MHtiFXY7gmetq0GibNHMkgBlXfL2rGwx6zAnzXTuHrjIjHbslreKF5zA4EBu1RMM7wxxWXPDILCdtO75o1Ta2LWkx/ykitac9oFl1h/bAeGnJUkkvc2Slv0qxxflFiMkU71ChFYOXI/Z5WLHD8LO9o1Vku9Eil1S66dtI83806ZchM+muF6I/8P0uNTdCifYN8G7KMUt0A94dzRa7Y61SdiEmjAA0RqcdGz/R7FldkoC+9CHTkNrc0bJ2p/mYZnmuuBZOsWigsStHUQcvyWKtHUPkqImdB89lox/7IjAj5FP5fCN+NFj6Gdwq8gnBZsGz9SaLsTaKi6GzEwxnpXpQf5SpVcVi5ELQKJYg3C0C2kFKGsOcRMEJ2QBVOlAnh3nbk1t27cQK5mXLbd86vC+cywvjwNE0VQXAjYC3vWgsT9ubmjYC4BgMSc2PAaegYcrYghgsyW3bd1bckeOQSAVRtJUgYR26dR4CqpJ1acdxa7mM8ALtP9ncX0Lkgrm7g53PcQ5HORYqKe7iu9AtbkKEHn4lHilVjjxYzKRTNW0B+ucSDWZ5OUREZ4PYoBlZtMqZSafRrJUKc9kHikU2McSzHzqFMAOEUayf8x88fK7/+s1cG+I9WPgH1laK8acEE5UFPF9WcxXjpCopRD289BsirstHWAIjnMASSIWrrR9/+gXVpDzkBlxyjJKb4YKA/6LBVSUdcI= 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)(46966006)(36840700001)(7696005)(4744005)(4326008)(107886003)(82310400003)(356005)(47076005)(8936002)(83380400001)(70206006)(8676002)(336012)(6666004)(186003)(7636003)(86362001)(16526019)(426003)(2616005)(70586007)(26005)(36756003)(1076003)(55016002)(54906003)(110136005)(5660300002)(2906002)(316002)(36860700001)(508600001)(6286002); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Nov 2021 12:57:41.8701 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 0267296c-d6ef-4b92-7270-08d9a449aeac 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: CO1NAM11FT008.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY5PR12MB5560 Subject: [dpdk-dev] [PATCH v8 0/3] add meter policy support in flow-perf 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" Add meter policy support and provide options to specify green/yellow/red corlor actions and cir/cbs/ebs values. v2: add option to specify green color actions. v3: support yellow color action and ebs options. v4: rebase on top of master-net-mlx. v5: fix intermediate werror. v6: rebase on top of main. v7: rebase on top of dpdk.org/main and fix existed styles. v8: clean log. Rongwei Liu (3): app/flow-perf: support meter policy API app/flow-perf: support dynamic values for meter profile app/flow-perf: add packet metering mode app/test-flow-perf/main.c | 834 +++++++++++++++++++-------------- doc/guides/tools/flow-perf.rst | 16 +- 2 files changed, 501 insertions(+), 349 deletions(-) -- 2.27.0