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 EB12BA0C43; Wed, 12 May 2021 14:08:56 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 673EF4003F; Wed, 12 May 2021 14:08:56 +0200 (CEST) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by mails.dpdk.org (Postfix) with ESMTP id 6C8354003E for ; Wed, 12 May 2021 14:08:53 +0200 (CEST) IronPort-SDR: kSIaFhxYYZZVGuuPBhjtfPwe0H5o7RMgwZUF+px1B5IupPhkGaPL5GHoRpgZ59yz0kBFLWJVDY CLFbV+AX5IpQ== X-IronPort-AV: E=McAfee;i="6200,9189,9981"; a="187114603" X-IronPort-AV: E=Sophos;i="5.82,293,1613462400"; d="scan'208";a="187114603" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 May 2021 05:08:49 -0700 IronPort-SDR: EzMqfjyF+tQfvbRKb8IJUrsb5abyv7hI5vQJpR5lctZkumt7G5ONwzQT3Ew5T0uBwT9PMstE+L +KWJ17Rde40g== X-IronPort-AV: E=Sophos;i="5.82,293,1613462400"; d="scan'208";a="609898418" Received: from fyigit-mobl1.ger.corp.intel.com (HELO [10.213.210.216]) ([10.213.210.216]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 May 2021 05:08:46 -0700 To: Haifei Luo , matan@nvidia.com, orika@nvidia.com, viacheslavo@nvidia.com, Xiaoyun Li Cc: dev@dpdk.org, thomas@monjalon.net, rasland@nvidia.com References: <20210428141015.25728-1-haifeil@nvidia.com> <20210512104933.27999-1-haifeil@nvidia.com> From: Ferruh Yigit X-User: ferruhy Message-ID: <4431f86a-d085-a9f6-984d-d96ca1238941@intel.com> Date: Wed, 12 May 2021 13:08:43 +0100 MIME-Version: 1.0 In-Reply-To: <20210512104933.27999-1-haifeil@nvidia.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH v4] app/testpmd: add CLI for action meter color 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" On 5/12/2021 11:49 AM, Haifei Luo wrote: > Currently action RTE_FLOW_ACTION_TYPE_METER_COLOR is defined. > Add the CLI for this aciton: color type (types) > There are three types: green, yellow and red. > > Example for the new policy meter CLIs: > add port meter policy 0 1 g_actions color type green / end y_actions > color type yellow / end r_actions color type red / end > > In the above command, the action type is RTE_FLOW_ACTION_TYPE_METER_COLOR, > the meter policy action list: green -> green, yellow -> yellow, red -> red. > > V2: rebase the latest code. > V3: update the document. > V4: add sample in the document. > > Signed-off-by: Haifei Luo > Acked-by: Ori Kam Carried ack from previous version: Acked-by: Cristian Dumitrescu Acked-by: Ferruh Yigit Applied to dpdk-next-net/main, thanks. (doc warnings fixed while merging)