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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id ECEBAC369A2 for ; Mon, 14 Apr 2025 15:51:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=V/Za7g0FQ1lSb2oVYg3YfT9f/o0ed3+rcLZGrY3qbaE=; b=WAxA9JYYPCPzS4IAiDktzHytnM qphNHCC2vfeM2ORBF5+VRg3v1Mmoj0JH0b+r2g1LLWL01FDVgKKvrLSj5obGNOR5l+McTqTGtSfoc wMu2/hxYjfTaB+dAgpUXf10JNg1VZ+5zyg9kH9Wm15hHvrLx+gtx2LSR0u0rHjreBxLYqpuQNdCPp /qCYytw2nlRzB2RByxD8VUeXxo2eIKa4r11/PnyB0pnmGINJUigeBXNCKvhQvOPH0BE6Oncy8cP9a YL8z5MBdimpWYOv+BXJ3rBH2F6TrKW5leS4LZI3NNIrgUrQ0rZ2M8vLFAO9SXd5WoxjREIwK10xXf eZjy0/Sg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1u4M5s-00000002hLw-3gqv; Mon, 14 Apr 2025 15:51:32 +0000 Received: from dfw.source.kernel.org ([139.178.84.217]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1u4M40-00000002h4N-1Evd; Mon, 14 Apr 2025 15:49:37 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id 4EE265C41E7; Mon, 14 Apr 2025 15:47:18 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 10A9FC4CEEB; Mon, 14 Apr 2025 15:49:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1744645775; bh=0OlpI8A8o3k0NMv+HqSy0AS0cRdyO/+tn5fykeOZP7M=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=a7Dfn27v2z9ZYmy0BaU3Q/yhi7InElazHQbj4WEnKg/E8+xjMDxQj75Ocy4CAujAD cTTFE0mMPKjwFvgLVjQNK3KZG+wUXT3oYuoqWs6NR4ZUpCo5fmm/bYSZH62yM67h8k fBksYdPnntidj7W9Sw6E8crMJWCOkfjhbbbF/tpvG319NLX5Ad35iRuJvMW6DWkb44 eZKXIMntYOv4gjlwPFzlRrSqhvgVTLN459PNe4jMWtq09WmEgrdldKGth+7UEqAwqd yG61IBJHmyiyaEIDBozSik5zC/IWCYP3C5PF9BDCSpJ2knidaqT6qnqpTL9xXiP0GP MPnffgRyhJkww== Date: Mon, 14 Apr 2025 16:49:30 +0100 From: Simon Horman To: Lorenzo Bianconi Cc: Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, netdev@vger.kernel.org, Davide Caratti Subject: Re: [PATCH net-next v3] net: airoha: Add matchall filter offload support Message-ID: <20250414154930.GU395307@horms.kernel.org> References: <20250410-airoha-hw-rx-ratelimit-v3-1-5ec2a244925e@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20250410-airoha-hw-rx-ratelimit-v3-1-5ec2a244925e@kernel.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250414_084936_377211_0E51273E X-CRM114-Status: UNSURE ( 8.89 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org On Thu, Apr 10, 2025 at 05:25:37PM +0200, Lorenzo Bianconi wrote: > Introduce tc matchall filter offload support in airoha_eth driver. > Matchall hw filter is used to implement hw rate policing via tc action > police: > > $tc qdisc add dev eth0 handle ffff: ingress > $tc filter add dev eth0 parent ffff: matchall action police \ > rate 100mbit burst 1000k drop > > The current implementation supports just drop/accept as exceed/notexceed > actions. Moreover, rate and burst are the only supported configuration > parameters. > > Reviewed-by: Davide Caratti > Signed-off-by: Lorenzo Bianconi > --- > Changes in v3: > - remove duplicated entries configuring REG_PPE_DFT_CPORT0() regs > - Link to v2: https://lore.kernel.org/r/20250409-airoha-hw-rx-ratelimit-v2-1-694e4fda5c91@kernel.org > > Changes in v2: > - Validate act police mtu parameter > - Link to v1: https://lore.kernel.org/r/20250407-airoha-hw-rx-ratelimit-v1-1-917d092d56fd@kernel.org Reviewed-by: Simon Horman