From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 452D6C636CC for ; Wed, 8 Feb 2023 05:29:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229779AbjBHF30 (ORCPT ); Wed, 8 Feb 2023 00:29:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55398 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229712AbjBHF3Z (ORCPT ); Wed, 8 Feb 2023 00:29:25 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 768041A48E for ; Tue, 7 Feb 2023 21:29:24 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id F3CE2B81B3B for ; Wed, 8 Feb 2023 05:29:22 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 46B95C433D2; Wed, 8 Feb 2023 05:29:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1675834161; bh=30e8mHKhzEDU9csgdsuvYqoR+bLghpv3e3pExeKhaas=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=iF9v8KZfEcOVPgj5TuABznxpfFD64GkpIe0xQ3qHlxHcn8sfhZFCst/DfbGRCsH63 XfAmtdrbeO2D8JUIbi8zAY+uDQe/2COYOPx5ASvSWqo918vbkiE+gbfIdYYNmmGhml j+ZLE9ffOoraaN0eCXUN6XAL/il3fpjRNqDrzW+X7rJcVkE4FRcpPS08U0ggEzHaC6 J55cBQluVv6yaN2nCP+s8Me34pph7Y71lj3O1nNyiiLM4iWthievVPCok9QYQwci5q jqU0HWOtIz9Rev/JKFdaOz/SOPXwtb+ZyGrDci2FqYUT20ygPW9mg178jSUjKf6XT/ D81axe5nDGHjg== Date: Tue, 7 Feb 2023 21:29:20 -0800 From: Jakub Kicinski To: Marcelo Ricardo Leitner Cc: Oz Shlomo , , Saeed Mahameed , Roi Dayan , "Jiri Pirko" , "Simon Horman" , Jamal Hadi Salim , Edward Cree Subject: Re: [PATCH net-next v3 0/9] add support for per action hw stats Message-ID: <20230207212920.4cb83475@kernel.org> In-Reply-To: <20230206135442.15671-1-ozsh@nvidia.com> References: <20230206135442.15671-1-ozsh@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On Mon, 6 Feb 2023 15:54:33 +0200 Oz Shlomo wrote: > There are currently two mechanisms for populating hardware stats: > 1. Using flow_offload api to query the flow's statistics. > The api assumes that the same stats values apply to all > the flow's actions. > This assumption breaks when action drops or jumps over following > actions. > 2. Using hw_action api to query specific action stats via a driver > callback method. This api assures the correct action stats for > the offloaded action, however, it does not apply to the rest of the > actions in the flow's actions array, as elaborated below. Mercelo would you like to review this one as well or it's of lesser interest?