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 9D36EA0547; Sun, 26 Sep 2021 11:46:05 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 881554003D; Sun, 26 Sep 2021 11:46:05 +0200 (CEST) Received: from NAM02-DM3-obe.outbound.protection.outlook.com (mail-dm3nam07on2074.outbound.protection.outlook.com [40.107.95.74]) by mails.dpdk.org (Postfix) with ESMTP id 092FF4003C for ; Sun, 26 Sep 2021 11:46:04 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=LssCrRByYOCnFxNMYeiZvwsizRLNN6tk0iwSST6xKN4PH5F9nQIjsxGqkz9vtwCJYuaK+zPEVW4UoAyofFaAhygi80/hgyRB+gUWN1+WZG5tO+b8gyOUKOXf6OdLzY6rJSA3WfS7x2bi0lq4KZgwuAZPoVjJumoAwiz07nZLTE7ubySGB7tufIKD1WpJB3XdTzlPMKzG0Bi14D9veVwbEk96i2r2j64Oi2W53cqzeZDiby85+AQ7iotCeTVebGXNgGGuLV3YkJSvKJBTY+lnlbnezCIkQWoOpikqqr8z+aJO7Cy3EfwpBP3Nn4oubDduuj2Opbie43OCcfvGR/ncPQ== 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; bh=Dsh65Vi2xSl3OYY/07+AipoAfVTC6sVybV19K5I7Lao=; b=EyX+LC+7IjEfMHJzgrpYIyb3n2eszSD9nZjz3J9MraCNjbaZg9OblKyR3SrNX+oAoKENvOgYqhv9B+TEUJ84KbJ89KNYbhp0PGAeWOqw6+HRpQ+endWrqWUic2JRMALvrS661e99nJExz1GstwZ9qFLBUf0xarTK/qDGZC0Vc8YP19t5QS1Su+UqJg8rBTKcaj0M4Wy0qbGN9CgLsGd9IgcthrqzS9549GkLLjnYZUJnF7ihQFKpVXRLjAZvURXDx71YIuK+UESszXt/YqzB+7RJjvabuaCDjY9YYc6ZAY7ceXE2tzHJtGFHlm6wow6D86idDjrBxgoqCqSwc4sbNw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; 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=Dsh65Vi2xSl3OYY/07+AipoAfVTC6sVybV19K5I7Lao=; b=NKKx4eMbmikuZdbAcZRFQve0z/N1MaMTLHWqVrPWfXz6mguXDY0CqKynFFXpLV+eViXs6AviYSV6aQVhvPY2HsYkeXpxV0EajPKyGuWZ1EriBpE1AocxJEsiy0NYMaWep9rfPfvFRU7WikDSbWykmPxb5zqz/v1iqEaVnbiOfaxepHkeiBainvaS/QDqcwdGHLhf2ReG9Yk07L8DGKTyzipUMiU0DjChgRs/wxeUZdn1HUI6Vua9+RnbHfZ6IHX/5os9HrYp5uehzpZl/M3GRnWKaeiAZiK3fK0Jaulhm9Q7eWz2xq7l1tVlcYMI1NfTO3+MCqUB1tsdOd7VtA+T9A== Received: from DM4PR12MB5039.namprd12.prod.outlook.com (2603:10b6:5:38a::18) by DM4PR12MB5183.namprd12.prod.outlook.com (2603:10b6:5:396::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4544.13; Sun, 26 Sep 2021 09:46:02 +0000 Received: from DM4PR12MB5039.namprd12.prod.outlook.com ([fe80::3096:12ef:d306:d065]) by DM4PR12MB5039.namprd12.prod.outlook.com ([fe80::3096:12ef:d306:d065%7]) with mapi id 15.20.4544.021; Sun, 26 Sep 2021 09:46:02 +0000 From: Wisam Monther To: Rongwei Liu , Matan Azrad , Slava Ovsiienko , Ori Kam , NBU-Contact-Thomas Monjalon CC: "dev@dpdk.org" , Raslan Darawsheh , "Jiawei(Jonny) Wang" Thread-Topic: [PATCH v2 2/3] app/flow-perf: add new meter CIR Configuration Thread-Index: AQHXff7gYlj/Lklp2EqGd7faXk2xL6u2en1w Date: Sun, 26 Sep 2021 09:46:01 +0000 Message-ID: References: <1617691848-94564-1-git-send-email-haifeil@nvidia.com> <20210721070542.1153843-1-rongweil@nvidia.com> <20210721070542.1153843-3-rongweil@nvidia.com> In-Reply-To: <20210721070542.1153843-3-rongweil@nvidia.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: nvidia.com; dkim=none (message not signed) header.d=none;nvidia.com; dmarc=none action=none header.from=nvidia.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: acca5c6f-ce9a-4aad-bb4a-08d980d273a0 x-ms-traffictypediagnostic: DM4PR12MB5183: x-ld-processed: 43083d15-7273-40c1-b7db-39efd9ccc17a,ExtAddr x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:2657; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: LLuRV+sPb1QhpQAg7TeQHUR7Kp3qfjlAE8rqIKpOBwmEEivu5DqxrGHy6N93Rh+9w5c/+0i5bXlHcOnOvrklP5wjDzuH5PMT9hhDHy3tJLrdEuJknQ5wlAHkMh1W6OettcDsHRsyDXaIBkAnEiW+xEphQHLI/31nS1iHky8sR3rX/lRmBw9Rk5xy63Y1vjoQwym1pR+6OMrbTA3xX2MDRrUHMBfp9v+oFj1EcasbtM8itJeluDVnJCHgYaDowlXZIYIp3WcDk2/IgICXfyiZhCGNclIV62/2iGGXkvXqTSqO10CcJyfdHv3VCga2iR4Vv56ZlDiGx56aE3/m4MZD8MOC/xUf4xP9HXck/Vf3Yny6jVo0okvIRimJ7wC77Ln/tWPWixqO4vU4anUheGPCpsDn4pmTT1CS3pXhLqL+oKfVPAHi5xRrvoSABQWTfKEOqtWia8JkJEt8FYyajiQ8UdrI3bcBsf6g8BoE1mPrFZqhtkpuMiXzCkukjmrzLzR1DBYbyjmEj1+cnSlB3BdWyW3vf5rXN/GLpXu8dywnCWD5+pdaJqsgyaINM2HyDYtV7MhV9H98wbIbcnKJosbzW2iV4xDRvf1qFM0xtTj2Apinci/lfldJSVzVETAGPrAPOazaYL25NseHVSwgxweFQMaf3AoWkPHN/b8gysW0+F2rmboBhvZxbKuCHUrnMXmvtZj0Dibou1IOsQANhK9fZg== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM4PR12MB5039.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(107886003)(52536014)(2906002)(71200400001)(33656002)(8676002)(122000001)(38100700002)(8936002)(86362001)(6506007)(5660300002)(66946007)(76116006)(110136005)(9686003)(7696005)(55016002)(186003)(26005)(54906003)(66476007)(316002)(38070700005)(66556008)(66446008)(64756008)(53546011)(83380400001)(4326008)(508600001); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?yJ1sJyvzH9npeyqSmCc2nBn0OjVKZYoCbNT8mMayEGra+h/mTWa6b+43Q4fh?= =?us-ascii?Q?d6EvI5pAqGymws6c6ZzN4SRXF3HAVdJLzNeUnH6gU6elTY/W2fwdvIFzw9/Q?= =?us-ascii?Q?QxlBr/1kk588Acl2L5GuWTc+NuUMWg64y1dFrjqdr5GxdL6/Gl5ET8/d05fq?= =?us-ascii?Q?d2wZG1W/6P3sWvDgK4IVT61v1F+UqmUqEf+0eadUYYsxu2e09C6GmocBTuRy?= =?us-ascii?Q?mrnH9mE/gLHvaymkjTovw5ssCAuBeQX/l5CyxXjsE7T+ZrIlnmK5N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xrljfmRZUckIYFKEXyvVUO+eYmP+Uty5T?= =?us-ascii?Q?/x4iuzEl93GhgHvyfk7LbLrKdHhwPxfwe5hcgfj2qP0dpico1CNwRxH6czKA?= =?us-ascii?Q?+gRUXCsDtpjCzGq/J+IqNEz7mOmPJbAbxzFhWCj5I8u+9hRyRPW6ngT5CY6g?= =?us-ascii?Q?zk+muE8bgdlthN5487EfCYib?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM4PR12MB5039.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: acca5c6f-ce9a-4aad-bb4a-08d980d273a0 X-MS-Exchange-CrossTenant-originalarrivaltime: 26 Sep 2021 09:46:01.9652 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: JMcik9gVOhY9k2+RhrrsE1HGppkF/2Q4L5lefsiuZvDrSNngSpSClWwk1F9tHdvPimJR+i7yMAUBpb2BxIoyqQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR12MB5183 Subject: Re: [dpdk-dev] [PATCH v2 2/3] app/flow-perf: add new meter CIR Configuration 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" > -----Original Message----- > From: Rongwei Liu > Sent: Wednesday, July 21, 2021 10:06 AM > To: Matan Azrad ; Slava Ovsiienko > ; Ori Kam ; NBU-Contact- > Thomas Monjalon ; Wisam Monther > > Cc: dev@dpdk.org; Raslan Darawsheh ; Jiawei(Jonny) > Wang > Subject: [PATCH v2 2/3] app/flow-perf: add new meter CIR Configuration >=20 > Add the new meter CIR configuration parameter, user can set the different > value for committed information rate(CIR) parameter. >=20 > The usage as below: > --meter-cir=3DN, default count is 1250000. >=20 > Signed-off-by: Jiawei Wang > Signed-off-by: Rongwei Liu > --- > app/test-flow-perf/main.c | 8 +++++++- > doc/guides/tools/flow-perf.rst | 3 +++ > 2 files changed, 10 insertions(+), 1 deletion(-) >=20 > diff --git a/app/test-flow-perf/main.c b/app/test-flow-perf/main.c index > e0d94f943a..dd0aac8b06 100644 > --- a/app/test-flow-perf/main.c > +++ b/app/test-flow-perf/main.c > @@ -141,6 +141,8 @@ usage(char *progname) > " actions that support data, such as header modify and encap > actions\n"); > printf(" --policy-mtr: To create meter with policy\n"); > printf(" --policy-g_actions: To set meter policy green color > actions\n"); > + printf(" --meter-cir=3DN: to set committed information rate(CIR)" > + " parameter in meter profile, default is %d\n", METER_CIR); >=20 > printf("To set flow attributes:\n"); > printf(" --ingress: set ingress attribute in flows\n"); @@ -582,7 > +584,7 @@ args_parse(int argc, char **argv) > { "cores", 1, 0, 0 }, > { "policy-mtr", 0, 0, 0 }, > { "policy-g_actions", 1, 0, 0 }, > - { "meter-profile-alg", 1, 0, 0 }, > + { "meter-cir", 1, 0, 0 }, The old one is irrelevant meter-profile-alg. Moreover, i agree that meter-cir is control > /* Attributes */ > { "ingress", 0, 0, 0 }, > { "egress", 0, 0, 0 }, > @@ -814,6 +816,10 @@ args_parse(int argc, char **argv) > } > if (strcmp(lgopts[opt_idx].name, "policy-mtr") =3D=3D 0) > policy_mtr =3D true; > + if (strcmp(lgopts[opt_idx].name, "meter-cir") =3D=3D 0) { > + n =3D atoi(optarg); > + meter_cir =3D (uint64_t) n; > + } > if (strcmp(lgopts[opt_idx].name, > "policy-g_actions") =3D=3D 0) { > token =3D strtok(optarg, ","); > diff --git a/doc/guides/tools/flow-perf.rst b/doc/guides/tools/flow-perf.= rst > index 90b6934537..113e078eb5 100644 > --- a/doc/guides/tools/flow-perf.rst > +++ b/doc/guides/tools/flow-perf.rst > @@ -105,6 +105,9 @@ The command line options are: > Such as header modify and encap actions. Default is using fixed > data for any action that support data for all flows. >=20 > +* ``--meter-cir=3DN`` > + Set the committed information rate(CIR) parameter, default count is > 1250000. count -> value? > + > Attributes: >=20 > * ``--ingress`` > -- > 2.27.0