Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1076912ybb; Sat, 28 Mar 2020 17:55:47 -0700 (PDT) X-Google-Smtp-Source: ADFU+vtvq91OSbhX6+vCrV82ByOqc4k+ARw79ZoGgNiR8oLclc0VGqY3IS53SB4MO+NBNQ2qipBf X-Received: by 2002:a4a:3150:: with SMTP id v16mr4984210oog.71.1585443347819; Sat, 28 Mar 2020 17:55:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585443347; cv=none; d=google.com; s=arc-20160816; b=uXuuENena+COe099NOZzM+E06wSk1jBuir/LssK3wAzxUGsX2FmwrRSLIYoguH5NtQ DMYpzKdhA1XfCFnHivmORwtQFAHFH300Lt/+HueaGKX3jef2k8TSyvdejruMXGjs4QwE +a3gM3jYh5OGhNB5eUCZhcYA6t4c1K+gNPJpnn3eOq6kFRocIVzaDYseB376AtoXJ0gu RbbJsTEXv2zxnPqJI13peuTP5O6X0+x4jAb0aaVYii5CISZ7IfV+AJ3nZ6X77RK1PbKN BZrbx0lc+IlWKA2a0jHoAmq3LzQQTSH+sP6tofSoLm787AGQsEPhzIuduwmnJL0SGc49 G4Vw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=ElUSaKZRyWkOVdhpqdH4XORAPdjmLaagKayrUu0ClMg=; b=CguqMw8N6lmoT54NhXuCzIMY+RZdBpaOHjWIDLx4PoGg+Ybx0bIGdF5tP16qaACKzx uW+enUsk73XwNZusBUxjcBgm0cYzBHbaCO+YwwUUz8jF7Mx9m63NwpYRboZEeQH6h9Yo 2W391msQAED1Um1M3z3VloiN7k5IJcQhri8DGA6Uf3HIIF7D/1B4JMXRLiQhza/lubdo hPnvqhnU1E0WZAiC6h+uPRM6vfbD/4gg8gqt8nuVDrDr8u+S90u23T+FEgpfrPKBQkpA zYR8cV7r03V6Nk7ixBToQkj4Eboj+3qFmjlbjwL8d7ikMnvxvAwsZ8MHPsLgiFBYU0Ll NVgA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ufN1X6r7; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f29si4259592ooh.85.2020.03.28.17.55.36; Sat, 28 Mar 2020 17:55:47 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ufN1X6r7; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1727797AbgC2AzD (ORCPT + 99 others); Sat, 28 Mar 2020 20:55:03 -0400 Received: from mail-ed1-f47.google.com ([209.85.208.47]:42652 "EHLO mail-ed1-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726604AbgC2AzC (ORCPT ); Sat, 28 Mar 2020 20:55:02 -0400 Received: by mail-ed1-f47.google.com with SMTP id cw6so15792856edb.9; Sat, 28 Mar 2020 17:54:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ElUSaKZRyWkOVdhpqdH4XORAPdjmLaagKayrUu0ClMg=; b=ufN1X6r7BvDhOYuF1ccjjOpckLRvfaESmO16ScKg1xQTGWAa8vfnh6uj5+WQZlJp/+ MnUNXgFPXf0G+TlyJRJyrBWMz6OKFFPBU+/MtzpzsLQ9NvF5Q7vqtzsYsMqWoPI5SFmC aRxPXbusGdqXxfeyTz46sY1zlMAI5VKFb/J0lJ0mvkOoHu7MJptUl16aaIUnkI0WuH3T g6IopZbVka2wT6NAF8mGh1uNilWUEVIwuEfUWnnn/ZflbFyulFuvihtR1afMuiQJoLzP gKxN9j7AUHwPGixh46kDmgdR4LkF8XpqaL9MzpPwxu3eip3OSMTSJYzbnqJn+iQskuj7 EXCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ElUSaKZRyWkOVdhpqdH4XORAPdjmLaagKayrUu0ClMg=; b=uUnYh0UmPaTkHZiYpk+KquOCCkKCf9bB5rsDyLHbs91euTf1v58goxJpWRBtLpiG3/ WQU2uCiTdUFbjO3b+i0m6d0Xnzh70kT6grMQUD+nfWLQ/fTp6xTwDN2gYPA4mPtnEOXF 6nxQi3JaCI7nExmCk6yojkMSqQuLInKaGqUFzhndq4NqDZD6wa/fWVY/4S1ExMCcM5hq nRYcv0Qg5fVoILfflqHcUETz5wa3PJXwlwBXw6qyuSmIlTsowTvH49dIDlkDmc6ZyirV Hlz28yx27F238vtY4ENHeaWc8RDBx5vu9P2n1Lwt4HJNinrKhinjvYBi5SgQq0rgu9r0 Q9wA== X-Gm-Message-State: ANhLgQ0lsapwZQnZVtaoDujyEJW4tIG9Yjv+6GifsUCvv1jnpG28c6FW lOz7qgxSGvjK+d09OgoycK9RlSivvNb9P94t5e6hPg6+42G9Zoc1 X-Received: by 2002:a17:906:fc18:: with SMTP id ov24mr4994780ejb.189.1585443298803; Sat, 28 Mar 2020 17:54:58 -0700 (PDT) MIME-Version: 1.0 References: <20200328123739.45247-1-xiaoliang.yang_1@nxp.com> In-Reply-To: From: Vladimir Oltean Date: Sun, 29 Mar 2020 02:54:47 +0200 Message-ID: Subject: Re: [net-next,v1] net: mscc: ocelot: add action of police on vcap_is2 To: Xiaoliang Yang Cc: "David S. Miller" , netdev , lkml , Ivan Khoronzhuk , Horatiu Vultur , Alexandre Belloni , Andrew Lunn , "Allan W. Nielsen" , Vivien Didelot , Joergen Andreasen , Microchip Linux Driver Support , "Y.b. Lu" , Alexandru Marginean , Po Liu , Claudiu Manoil , Vladimir Oltean , Li Yang , Florian Fainelli Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 28 Mar 2020 at 15:50, Vladimir Oltean wrote: > > Hi Xiaoliang, > > Thanks for the patch. I've tested it, but sadly, as-is it doesn't compile. > But then again, net-next doesn't compile either, so there... > > On Sat, 28 Mar 2020 at 14:41, Xiaoliang Yang wrote: > > > > Ocelot has 384 policers that can be allocated to ingress ports, > > QoS classes per port, and VCAP IS2 entries. ocelot_police.c > > supports to set policers which can be allocated to police action > > of VCAP IS2. We allocate policers from maximum pol_id, and > > decrease the pol_id when add a new vcap_is2 entry which is > > police action. > > > > Signed-off-by: Xiaoliang Yang > > --- [snip] > > For what it's worth, I am preparing another patch series for port > policers in DSA, and I'm keeping your patch in my tree and rebasing on > top of it. Depending on how things go with review, do you mind if I > just take your patch to address other received feedback, and repost > your flow-based policers together with my port-based policers? > > Regards, > -Vladimir I took the liberty to repost your patch with the compilation error fixed, as part of this series: https://patchwork.ozlabs.org/patch/1263358/ So this patch is now superseded. Thanks, -Vladimir