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 5EAC1A00C3; Fri, 13 May 2022 05:58:03 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 08A4F40DDE; Fri, 13 May 2022 05:58:03 +0200 (CEST) Received: from NAM12-MW2-obe.outbound.protection.outlook.com (mail-mw2nam12on2040.outbound.protection.outlook.com [40.107.244.40]) by mails.dpdk.org (Postfix) with ESMTP id 2BEC240698; Fri, 13 May 2022 05:58:01 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=IxnnmejY378q/GU9E9DUCRDJGwkNvhs9GJak5p0tCI3fH91bXX9UG7JaEW3Jo5Ha8v8Sc6yM+adxXFf4f6sjJV75o1rLRvBYGsXO5IxavaJzV51rrYW1R0Oumkf0AXsaD0rlZLo0AmNzIpE9JUUNb+Yhi5p9HqsLQ7Acl0hvuUyFLhJHl8UZorjLNMtUWvBk2vbv2PvvyjNhjWwlW1Q1y7Uzr970zKLI6pjG10fwQYYvDTosyU7rIGH+XInrKyLs+ikDgQz2+QHY2G58XSYUkGkB1ZgNNz5FyjCa4fAU8VA4jUxCs8xE8U7aZQDEy+U5u4tbKflhPuIhowtDWnZ6fw== 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=aF7LmaYnXtq9Ibpo10GExE/WBHvaonxOeeQx0Rt2MVM=; b=dNkEBwvNbHQq/GJjYvPoB8/NVlCdimMfaKx0GItqSgKZDs2WORoANfhtX5dkTT8Gz3qiZeHUMBiEzZ82RU/ci7CBO8RqV3RTF9GlR33w5YSqY9/JYYtnyoPUV/kITxrqWf94XpjFhaRMPGDGp1fr5CM5t3UUEDikjiKtGhjY8xBN7S3cgWJPCkYGehOR1Oq6PZzfWj1BudN+nao7o8R/kjI61MY1BaO922hvGHKrRkJv3H+smqTbLUbbibZSApdDaCo5KYxUBia/II0DR/sNUwboPSRikAuBS1Vq6b+TWy+TyHUf2/zwYU0hrWmqlWesIPiGbbdqH96DFWSjJjPuVw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 12.22.5.238) smtp.rcpttodomain=intel.com 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 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=aF7LmaYnXtq9Ibpo10GExE/WBHvaonxOeeQx0Rt2MVM=; b=tq3vuCRtH66j3U/Oe7jSAmiQes+G+rrVJ4YtqZwkox/b7K09N8pZZEa0eTRnujoLk4iAmBiuC9vawWA4WwKbBkGTs5Ao1Ui8egQaaCSLegglYUdZ+IV1oMUEiCvxQj/9lp5BN0OlYx7cAPxwNe0KAO5om7NwSwqgJ4+9lFObSK4YaB9XBuF5eSYcLcs/Hj5xc4FOs5TAAkpBGbQyVYOhnLmT1HuWV8skQtrF3CBv2Uusrf/orCDxao8X+RmK0JTjCccQVBAi/EH4Lfcdbi0J/9fV+LzHTzyezwNAc6JwzeTlOPvKiJM+Apk9yQBoIeWQprxdSBVA0y6B3Wkkic8FMQ== Received: from MW4PR04CA0380.namprd04.prod.outlook.com (2603:10b6:303:81::25) by BYAPR12MB2917.namprd12.prod.outlook.com (2603:10b6:a03:130::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5227.23; Fri, 13 May 2022 03:57:59 +0000 Received: from CO1NAM11FT030.eop-nam11.prod.protection.outlook.com (2603:10b6:303:81:cafe::b8) by MW4PR04CA0380.outlook.office365.com (2603:10b6:303:81::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5227.22 via Frontend Transport; Fri, 13 May 2022 03:57:59 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 12.22.5.238) 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 12.22.5.238 as permitted sender) receiver=protection.outlook.com; client-ip=12.22.5.238; helo=mail.nvidia.com; Received: from mail.nvidia.com (12.22.5.238) by CO1NAM11FT030.mail.protection.outlook.com (10.13.174.125) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.5250.13 via Frontend Transport; Fri, 13 May 2022 03:57:59 +0000 Received: from rnnvmail201.nvidia.com (10.129.68.8) by DRHQMAIL105.nvidia.com (10.27.9.14) with Microsoft SMTP Server (TLS) id 15.0.1497.32; Fri, 13 May 2022 03:57:58 +0000 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.986.22; Thu, 12 May 2022 20:57:54 -0700 From: Shun Hao To: , , , "Xiaoyun Li" , Aman Singh , "Yuying Zhang" , Jingjing Wu , Jasvinder Singh , Adrien Mazarguil , Cristian Dumitrescu CC: , , Subject: [PATCH v1] app/testpmd: fix metering and policing command for rfc4115 Date: Fri, 13 May 2022 06:57:38 +0300 Message-ID: <20220513035739.2792-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: [10.126.231.35] X-ClientProxiedBy: rnnvmail201.nvidia.com (10.129.68.8) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 0b5cfbb3-aa50-499e-c222-08da3494c50a X-MS-TrafficTypeDiagnostic: BYAPR12MB2917:EE_ X-LD-Processed: 43083d15-7273-40c1-b7db-39efd9ccc17a,ExtAddr X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: X1JlUYyIl81DExnV/7B80bx7zMDdHwyi+FgQOUsKKoB4JHYS8sw/QfdfvU2JE41NZwSZpqWTRlEMmwWKh9Kq345TqH74B3jZ/bqlfI2pvfhuQygpYR2FjlazmUYm2Z5iK1+93e3DG8rwWx0VM1KV4AlTE5Am95wrJ+03QpmzEdOqHwVt37sdebB4jeS3O+G9BUAGjPOYsGBKKVTFCk9FY/0tRd2ngO+mxQFPQAt4OLRap7g+p5UGRtsDiVrcxufqdZtZYZlzzCWnPL8OZT1OH5Vb36O7aVRqNl2v5pixcX55TyEmiD10scbuR9zSG66+ziR6k/TutTPv/4ecIwadalKNemv02VehCWm99tUm8dFp4/OizE7GxC5egcIa9KpuhZ5+B+yYFGfu8N0HQIQZdH8hLbzz/UkWrFCTyrcRlLbTgasDAod9IMaVgPhoj7w43s9KxQsbNBBtMlLPKxux03YKrJBQPOsYp32YVPzW4BvJZhq7wHNrCkkvmSLERqNl154bVcZ7NCf2KTQNKnGFQ+FUtJKQpBLd1Yp6hC1KAHxE4lyCk44XS45mYKOFtO5RLtkKQo24onWlLlWFiqPQKCb8CQ0A3S1e6WN5YPoKfVPMo1oEUJM94y/+EOo2wJIGfrj1eWcJjKogJI8uPeogxPqIwJ/zlCSN8DQUsqRGKqa/ST8nyWmxaiksgDVkh4JUQGwIJFKrgmO+JLU5lalBGWZ1wU5DqjWqdyNDOTM0Jrw= X-Forefront-Antispam-Report: CIP:12.22.5.238; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:InfoNoRecords; CAT:NONE; SFS:(13230001)(4636009)(46966006)(40470700004)(36840700001)(2616005)(40460700003)(6286002)(26005)(36860700001)(82310400005)(8676002)(4326008)(55016003)(36756003)(1076003)(186003)(316002)(336012)(47076005)(16526019)(426003)(54906003)(110136005)(70586007)(70206006)(508600001)(86362001)(2906002)(5660300002)(6666004)(8936002)(81166007)(356005)(921005)(4744005)(7696005)(36900700001); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 May 2022 03:57:59.0873 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 0b5cfbb3-aa50-499e-c222-08da3494c50a X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[12.22.5.238]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: CO1NAM11FT030.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR12MB2917 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 Add CLI command support for metering and policing of trtcm_rfc4115. Fixes: 30ffb4e67ee3 ("app/testpmd: add commands traffic metering and policing") Cc: stable@dpdk.org Signed-off-by: Shun Hao Acked-by: Matan Azard --- app/test-pmd/cmdline.c | 1 + 1 file changed, 1 insertion(+) diff --git a/app/test-pmd/cmdline.c b/app/test-pmd/cmdline.c index 6ffea8e21a..34410fe9f7 100644 --- a/app/test-pmd/cmdline.c +++ b/app/test-pmd/cmdline.c @@ -17966,6 +17966,7 @@ cmdline_parse_ctx_t main_ctx[] = { (cmdline_parse_inst_t *)&cmd_show_port_meter_cap, (cmdline_parse_inst_t *)&cmd_add_port_meter_profile_srtcm, (cmdline_parse_inst_t *)&cmd_add_port_meter_profile_trtcm, + (cmdline_parse_inst_t *)&cmd_add_port_meter_profile_trtcm_rfc4115, (cmdline_parse_inst_t *)&cmd_del_port_meter_profile, (cmdline_parse_inst_t *)&cmd_create_port_meter, (cmdline_parse_inst_t *)&cmd_enable_port_meter, -- 2.20.0