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 X-Spam-Level: X-Spam-Status: No, score=-0.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E42C4C43331 for ; Mon, 30 Mar 2020 18:44:20 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id BA48A20771 for ; Mon, 30 Mar 2020 18:44:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728259AbgC3SoT (ORCPT ); Mon, 30 Mar 2020 14:44:19 -0400 Received: from shards.monkeyblade.net ([23.128.96.9]:40864 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726385AbgC3SoT (ORCPT ); Mon, 30 Mar 2020 14:44:19 -0400 Received: from localhost (unknown [IPv6:2601:601:9f00:477::3d5]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id C888E15C60D01; Mon, 30 Mar 2020 11:44:17 -0700 (PDT) Date: Mon, 30 Mar 2020 11:44:16 -0700 (PDT) Message-Id: <20200330.114416.1872962832740552526.davem@davemloft.net> To: olteanv@gmail.com Cc: andrew@lunn.ch, f.fainelli@gmail.com, vivien.didelot@gmail.com, jiri@resnulli.us, idosch@idosch.org, kuba@kernel.org, netdev@vger.kernel.org, xiaoliang.yang_1@nxp.com, linux-kernel@vger.kernel.org, horatiu.vultur@microchip.com, alexandre.belloni@bootlin.com, allan.nielsen@microchip.com, joergen.andreasen@microchip.com, UNGLinuxDriver@microchip.com, yangbo.lu@nxp.com, alexandru.marginean@nxp.com, po.liu@nxp.com, claudiu.manoil@nxp.com, leoyang.li@nxp.com, nikolay@cumulusnetworks.com, roopa@cumulusnetworks.com Subject: Re: [PATCH v2 net-next 0/6] Port and flow policers for DSA (SJA1105, Felix/Ocelot) From: David Miller In-Reply-To: <20200329115202.16348-1-olteanv@gmail.com> References: <20200329115202.16348-1-olteanv@gmail.com> X-Mailer: Mew version 6.8 on Emacs 26.1 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Mon, 30 Mar 2020 11:44:18 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Vladimir Oltean Date: Sun, 29 Mar 2020 14:51:56 +0300 > From: Vladimir Oltean > > This series adds support for 2 types of policers: > - port policers, via tc matchall filter > - flow policers, via tc flower filter > for 2 DSA drivers: > - sja1105 > - felix/ocelot > > First we start with ocelot/felix. Prior to this patch, the ocelot core > library currently only supported: > - Port policers > - Flow-based dropping and trapping > But the felix wrapper could not actually use the port policers due to > missing linkage and support in the DSA core. So one of the patches > addresses exactly that limitation by adding the missing support to the > DSA core. The other patch for felix flow policers (via the VCAP IS2 > engine) is actually in the ocelot library itself, since the linkage with > the ocelot flower classifier has already been done in an earlier patch > set. > > Then with the newly added .port_policer_add and .port_policer_del, we > can also start supporting the L2 policers on sja1105. > > Then, for full functionality of these L2 policers on sja1105, we also > implement a more limited set of flow-based policing keys for this > switch, namely for broadcast and VLAN PCP. > > Series version 1 was submitted here: > https://patchwork.ozlabs.org/cover/1263353/ > > Nothing functional changed in v2, only a rebase. This looks fine to me, series applied, thanks.