From: Paolo Abeni <pabeni@redhat.com>
To: Daniel Machon <daniel.machon@microchip.com>,
Andrew Lunn <andrew+netdev@lunn.ch>,
"David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@kernel.org>,
Jakub Kicinski <kuba@kernel.org>,
Steen Hegelund <Steen.Hegelund@microchip.com>,
UNGLinuxDriver@microchip.com
Cc: robert.marko@sartura.hr, netdev@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH net-next v2 0/5] net: sparx5: add tc matchall port policer offload
Date: Thu, 5 Nov 2026 10:26:57 +0100 [thread overview]
Message-ID: <679b8dcf-0aac-4674-a006-5af0156a82ae@redhat.com> (raw)
In-Reply-To: <20261102-b4-lan966x-pci-fdma-sparx5-lan969x-port-policers-v2-0-3bd47ec1b227@microchip.com>
On 11/2/26 13:21, Daniel Machon wrote:
> This series adds offload of tc matchall filters with a police action to
> the ingress port policers of Sparx5 and lan969x, which are both served
> by the sparx5 driver.
>
> In hardware, each ingress port has four single-rate leaky bucket
> policers. A policer drops the frames that exceed its rate and burst.
> The four policers of a port share the pass and drop statistics counters
> of the port.
>
> The driver uses one policer per port, because with more than one, the
> statistics reported to tc could not be attributed to the right policer.
> This matches lan966x and ocelot. The policer meters each frame without
> preamble and inter-frame gap, so the configured rate is a data rate, as
> tc police expects and as on lan966x and ocelot.
>
> Since the policer meters all ingress frames on the port, only filters on
> chain 0 with protocol all are offloaded, and filters on shared blocks
> are rejected. A police action that is already offloaded as a port
> policer on another port is rejected too, since in software it is a
> single bucket for all of its users. Only drop is supported as the exceed
> action, and the police overhead parameter is not supported.
>
> Patch #1 drops a redundant prefix from the existing POL_UPD_INT_CFG
> register macros.
>
> Patch #2 adds the registers used by the port policer.
>
> Patch #3 tracks whether the ingress block of a port is shared, and adds
> the per-port policer state.
>
> Patch #4 adds the hardware programming of the port policer.
>
> Patch #5 adds the tc matchall offload.
>
> Signed-off-by: Daniel Machon <daniel.machon@microchip.com>
I understand the following will be very frustrating, but for unknown
reason AI review did not kick on this series.
The changes looks sane to me, and addressing points raised on v1, but
I think nowadays we need an explicit AI feedback.
Could you please re-submit the series?
Thanks!
Paolo
next prev parent reply other threads:[~2026-11-05 9:27 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-02 12:21 Daniel Machon
2026-11-02 12:21 ` [PATCH net-next v2 1/5] net: sparx5: Drop redundant POL_ prefix from POL_UPD_INT_CFG Daniel Machon
2026-11-02 12:21 ` [PATCH net-next v2 2/5] net: sparx5: Add registers used by the port policer Daniel Machon
2026-11-02 12:21 ` [PATCH net-next v2 3/5] net: sparx5: Track shared tc blocks and per-port policer state Daniel Machon
2026-11-02 12:21 ` [PATCH net-next v2 4/5] net: sparx5: Add hardware programming for the port policer Daniel Machon
2026-11-02 12:21 ` [PATCH net-next v2 5/5] net: sparx5: Offload tc port policers via matchall Daniel Machon
2026-11-05 9:26 ` Paolo Abeni [this message]
2026-11-05 9:39 ` [PATCH net-next v2 0/5] net: sparx5: add tc matchall port policer offload Daniel Machon
2026-11-05 9:51 ` Paolo Abeni
2026-11-05 9:40 ` Daniel Machon
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=679b8dcf-0aac-4674-a006-5af0156a82ae@redhat.com \
--to=pabeni@redhat.com \
--cc=Steen.Hegelund@microchip.com \
--cc=UNGLinuxDriver@microchip.com \
--cc=andrew+netdev@lunn.ch \
--cc=daniel.machon@microchip.com \
--cc=davem@davemloft.net \
--cc=edumazet@kernel.org \
--cc=kuba@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=robert.marko@sartura.hr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®