Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp196010rwd; Mon, 12 Jun 2023 12:06:01 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4xoYMIztulIqXDeJlgoHcdvjUyR/7qUjMjn6ZK3WfRyL18A4KcAypp06i5xna/ZNRDQfFE X-Received: by 2002:a05:6a00:1746:b0:663:5fbe:c695 with SMTP id j6-20020a056a00174600b006635fbec695mr12641191pfc.16.1686596760667; Mon, 12 Jun 2023 12:06:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686596760; cv=none; d=google.com; s=arc-20160816; b=w1SYB84TumN+32+vvH488Vh9r1gEWKRr4hnfq1OuYtuQhmLJvL81tucwsdP8JM/umJ 1YHHkC05iTRNV3skts4h5XwfhmCO9C/65WamaynmdDzmYXrCJImVwkapY9XfWunAFFds SFfiyAcmbi+VJk7ko6OSX6BBSzu3cAGtJqy+DKjWoaCqyptTgdl94ff+RlAPPTVmFVNz EhzfGaArOzxJdO3k8jrVOcwvzY3lZYjRxE7pc5m3QKT3BizADTi/tkUCZH8kMyQhNJX+ 91DhP4GzcOsuT2BxvugH4XyD7t7viHs8e3ggevOxwRtacIArkcvjEhqBlv5yaVscyWFm 937w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=hM2bcW1LFJ85TQw0TjBRJcRn+H5yaOsbrGxlp/leb9I=; b=lA5/PjL/MB3cczLEjrdHn30bEuApzgPcr63CYEdk+Dx2x8J38VqUM8ZjSdrDiAQv4k HQ8F9ixiGxG125YNsC3tqxpzbvQ7dsRJDwzEsthf6AtNncA+aYrDZqNTJBzlkIF1VgMX 3JHKFmhu7WppimKz6ifXhtcqR281RVUoPayZ3VQS18BlV2tJfehKz55g1Xczu1gbtEMX CkhO/xK0332LNTdEulFUv3ikSbCNTa8idNcYhsDTxix9iSWsNNmG40nF7K+ao4wAwEBN /FX/56xA3vWVeDJ+X3TGuQN98d2QnKs1usYKaKHb16syIUsGuiAR2G1N/VMYqgavm18e QWVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=VMSwAL45; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r2-20020aa79622000000b006581d3c44d1si5029930pfg.89.2023.06.12.12.05.47; Mon, 12 Jun 2023 12:06:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=VMSwAL45; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233410AbjFLSvR (ORCPT + 99 others); Mon, 12 Jun 2023 14:51:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33812 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232904AbjFLSvQ (ORCPT ); Mon, 12 Jun 2023 14:51:16 -0400 Received: from mail-ej1-x635.google.com (mail-ej1-x635.google.com [IPv6:2a00:1450:4864:20::635]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B66EF184; Mon, 12 Jun 2023 11:51:14 -0700 (PDT) Received: by mail-ej1-x635.google.com with SMTP id a640c23a62f3a-977e7d6945aso829521566b.2; Mon, 12 Jun 2023 11:51:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1686595873; x=1689187873; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=hM2bcW1LFJ85TQw0TjBRJcRn+H5yaOsbrGxlp/leb9I=; b=VMSwAL45vFsVVj8p7peRFkBaI6gSYrmDq87jds5qA+lCMNVJOC1REo+++nzWEpRBYu 9DDmWmSaJpCOAnXoW/Mx9N+6thP/Qc9j4tIs8timUmlTstzev/IncMnsLcwt+lDGfOba zkELTMcZ3R8b8+oSQ8bP85iyZBGF9JRqhLrOY0xQkOy4EX8jj3w4gjJgyzVkJw58PeUb TiNpGBlHyQ09hJjcgB4EERzNRjnPPpBEobQv54Cn6jMiywACEV6h4Op8EyVpZqdCiWi/ wVhuuns9VCtzhiLg+KL7JEbap82DormDNZj4VJewAhAScyvuchaej/gd/wl+57BYn+js qvZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686595873; x=1689187873; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=hM2bcW1LFJ85TQw0TjBRJcRn+H5yaOsbrGxlp/leb9I=; b=SJ50+F9bnNJaj1nvsDoF4hV5yM6koTvsnyc2j2jYBYS78uVzkstVfpju8mdDmV2BO0 hWH3xT+JBpB78ZTQlT2PXP7Oe4NsotA8KUUwnLkdhFVeX0Rq8LVsYQFk8bDYnyJIuy8l 4poCW9e8v5TrlPnUZSkGIHVuRFLD3LqgECVTz5OexnvWqBlqsUXO/utdLXcSFK0M0hWH BAYumqvY1RrkK7sOM4zq+28cV52ABQ+Xx0ygwFUdG+Fr/bT34lo1JQJ6mz+J9iWN9OsO MfW9bq0rqdOzKr4/7tlwaS3T/T9f7gClNUjbfRXCFjLAYu0MU8SIBnfTUwBnerZYdq0Y l+xg== X-Gm-Message-State: AC+VfDy+ivGIcgt3qMppcmjy1fEzyzPjL8tVvm82VVxnWIaaTG768pCH LwWbIskD3usH/4mWJZh8M7o= X-Received: by 2002:a17:906:d555:b0:978:b1fe:99b8 with SMTP id cr21-20020a170906d55500b00978b1fe99b8mr11068382ejc.56.1686595872979; Mon, 12 Jun 2023 11:51:12 -0700 (PDT) Received: from skbuf ([188.27.184.189]) by smtp.gmail.com with ESMTPSA id p6-20020a1709061b4600b00977e4c1727esm5524760ejg.29.2023.06.12.11.51.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Jun 2023 11:51:12 -0700 (PDT) Date: Mon, 12 Jun 2023 21:51:10 +0300 From: Vladimir Oltean To: Sunil Kovvuri Cc: Alexis =?utf-8?Q?Lothor=C3=A9?= , Andrew Lunn , Florian Fainelli , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , linux-kernel@vger.kernel.org, netdev@vger.kernel.org, Thomas Petazzoni , paul.arola@telus.com, scott.roberts@telus.com Subject: Re: [PATCH net-next 2/2] net: dsa: mv88e6xxx: implement egress tbf qdisc for 6393x family Message-ID: <20230612185110.bppazw2mgbyoj6nz@skbuf> References: <20230609141812.297521-1-alexis.lothore@bootlin.com> <20230609141812.297521-3-alexis.lothore@bootlin.com> <176f073a-b5ab-4d8a-8850-fcd8eff65aa7@lunn.ch> <20230612094321.vjvj3jnyw7bcnjmw@skbuf> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 12, 2023 at 11:53:06PM +0530, Sunil Kovvuri wrote: > On Mon, Jun 12, 2023 at 3:13 PM Vladimir Oltean wrote: > > > > Hi Sunil, > > > > On Mon, Jun 12, 2023 at 12:04:56PM +0530, Sunil Kovvuri wrote: > > > For setting up simple per-port ratelimit, instead of TBF isn't "egress > > > matchall" suitable here ? > > > > "matchall" is a filter. What would be the associated action for a > > port-level shaper? > > As Alexis mentioned I was referring to "matchall + policer". The idea would be to pick a software representation which matches the hardware behavior. A policer drops excess packets, a shaper queues them. This hardware supports some sort of egress rate shaping.