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 24439C00144 for ; Sat, 30 Jul 2022 02:58:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232186AbiG3C6u (ORCPT ); Fri, 29 Jul 2022 22:58:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40038 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230251AbiG3C6u (ORCPT ); Fri, 29 Jul 2022 22:58:50 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4B9281102 for ; Fri, 29 Jul 2022 19:58:49 -0700 (PDT) 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 ADEAAB829CB for ; Sat, 30 Jul 2022 02:58:47 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C7E77C433D6; Sat, 30 Jul 2022 02:58:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1659149926; bh=0t6/0FFZTTOgQ6u2UKLSdI4nYgYhYF5zMuA7VRgPGa8=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=bjUGXJWPIPr+zgYBh9hnQ2EM0oZesjG0+0EumcsTB+58pMvsOLHpN6BrQEISATUw4 DhKZDUfoTpqquOP+VxhaL5LX1VTzGUjUgaPBN6jsJYAuN+mUAWi6x+Rpf5sdFgWBZj ZzjN9rX0QXg0j+Tc3pTquU8y5ADjZw72Ft4M6GTEOg+0XlEnodZPzsyBFl8TZF13up dqknwiB6AiOLKQRPj9ROiSWHQSIfo/V83kiRFuqv+QyHQXQ2K+39UPHk/I9LhbueE5 p3FA+Qk7RLFu7We6x0/TbaShqVlE3/TtFMUoRV9xJERR4yZs+As76rhgKdymFAGoX7 cDSlU1uRuVE9g== Date: Fri, 29 Jul 2022 19:58:44 -0700 From: Jakub Kicinski To: Simon Horman Cc: Simon Horman , Saeed Mahameed , "David S. Miller" , Paolo Abeni , Eric Dumazet , Saeed Mahameed , netdev@vger.kernel.org, Tariq Toukan , Roi Dayan , Jianbo Liu , Oz Shlomo , Baowen Zheng Subject: Re: [net-next 06/15] net/mlx5e: TC, Support tc action api for police Message-ID: <20220729195844.23285f4d@kernel.org> In-Reply-To: References: <20220728205728.143074-1-saeed@kernel.org> <20220728205728.143074-7-saeed@kernel.org> <20220728221852.432ff5a7@kernel.org> 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 Fri, 29 Jul 2022 17:51:05 +0100 Simon Horman wrote: > my reading of things is that the handling of offload of police (meter) > actions in flower rules by the mlx5 driver is such that it can handle > offloading actions by index - actions that it would now be possible > to add to hardware with this patch in place. > > My reasoning assumes that mlx5e_tc_add_flow_meter() is called to offload > police (meter) actions in flower rules. And that it calls > mlx5e_tc_meter_get(), which can find actions based on an index. > > I could, however, be mistaken as I have so much knowledge of the mlx5 > driver. And rather than dive deeper I wanted to respond as above - I am > mindful of the point we are in the development cycle. > > I would be happy to dive deeper into this as a mater of priority if > desired. Thank you! No very deep dives necessary from my perspective, just wanted for the authors of the action offload API to look over.