From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by dpdk.org (Postfix) with ESMTP id 3B203B6AB for ; Wed, 27 May 2015 00:03:46 +0200 (CEST) Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) by mx1.redhat.com (Postfix) with ESMTPS id 584DD8E79F; Tue, 26 May 2015 22:03:45 +0000 (UTC) Received: from x1.localdomain (ovpn-113-51.phx2.redhat.com [10.3.113.51]) by int-mx14.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with SMTP id t4QM3iPn009702; Tue, 26 May 2015 18:03:44 -0400 Date: Tue, 26 May 2015 15:03:43 -0700 From: Chris Wright To: Maciej Gajdzica Message-ID: <20150526220343.GQ5860@x1.localdomain> References: <1432643987-8916-1-git-send-email-maciejx.t.gajdzica@intel.com> <1432643987-8916-2-git-send-email-maciejx.t.gajdzica@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1432643987-8916-2-git-send-email-maciejx.t.gajdzica@intel.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-Scanned-By: MIMEDefang 2.68 on 10.5.11.27 Cc: dev@dpdk.org Subject: Re: [dpdk-dev] [PATCH v3 01/10] table: added structure for storing table stats X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 May 2015 22:03:46 -0000 * Maciej Gajdzica (maciejx.t.gajdzica@intel.com) wrote: > @@ -187,6 +193,24 @@ typedef int (*rte_table_op_lookup)( > uint64_t *lookup_hit_mask, > void **entries); > > +/** > + * Lookup table stats read > + * > + * @param port Parameter is actually called table > + * Handle to lookup table instance > + * @param stats > + * Handle to table stats struct to copy data > + * @param clear > + * Flag indicating that stats should be cleared after read > + * > + * @return > + * Error code or 0 on success. > + */ > +typedef int (*rte_table_op_stats_read)( > + void *table, > + struct rte_table_stats *stats, > + int clear);