From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mohammad Abdul Awal Subject: Re: [PATCH v2 1/4] ethdev: add group counter support to rte_flow Date: Fri, 6 Apr 2018 14:31:10 +0100 Message-ID: <67730aa5-5e46-8975-fd7d-1cc2b5bbdbd4@intel.com> References: <20180405135148.16388-1-declan.doherty@intel.com> <20180405135148.16388-2-declan.doherty@intel.com> <1554473.I9SMy4Ex4Y@xps> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Cc: dev@dpdk.org, Alex Rosenbaum , Ferruh Yigit , Shahaf Shuler , Qi Zhang , Alejandro Lucero , Andrew Rybchenko , Remy Horton , John McNamara , Rony Efraim , Jingjing Wu , Wenzhuo Lu , Yuanhan Liu , Bruce Richardson To: Thomas Monjalon , Declan Doherty Return-path: Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by dpdk.org (Postfix) with ESMTP id 7A57D1CC76 for ; Fri, 6 Apr 2018 15:31:15 +0200 (CEST) In-Reply-To: <1554473.I9SMy4Ex4Y@xps> Content-Language: en-US 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 05/04/2018 17:31, Thomas Monjalon wrote: > 05/04/2018 15:51, Declan Doherty: >> +Group Count Query >> +~~~~~~~~~~~~~~~~~ >> + >> +Query group counter which can be associated with multiple flows on a specified >> +port. >> + >> +This function allows retrieving of group counters. Data >> +is gathered by special actions which must be present in the flow rule >> +definition. > I would like seeing an explanation of how group counter work. > The guide can be more verbose than the doxygen comments. A bit elaborated explanation is as below. This function allows retrieving of group counters. A group counter is a counter which can be shared among multiple flows on a single port or among multiple flows on multiple ports within the same switch domain. Data is gathered by special actions which must be present in the flow rule definition. When the tunnel is created, the underlying PMD can keep track of the tunnel which is specified as table 0. Then each time a packet is received belongs to the tunnel, the counter is increased. During the query the counter is returned.