mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Paolo Abeni <pabeni@redhat.com>
To: Daniel Machon <daniel.machon@microchip.com>
Cc: 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, 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:51:30 +0100	[thread overview]
Message-ID: <6810d4c3-a3b9-4da5-97fe-27cfd92563c1@redhat.com> (raw)
In-Reply-To: <20261105093905.ln6tdot26wyej7pi@DEN-DL-M70577>

On 11/5/26 10:39, 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.
> 
> Yes, I noticed that. I thought you maybe had some magic button you could push,
> in order to trigger the review manually.

Unfortunately, I personally don't have it. AI review is sponsored by meta,
only Jakub has direct access to that piece of the infra, and he is AFK for a bit.

>> The changes looks sane to me, and addressing points raised on v1, but
>> I think nowadays we need an explicit AI feedback.
> 
> Ack. I think the missing sashiko-nipa check is not isolated to this patchset
> alone. Just FYI.
Indeed I hit more patches/series without AI review. In some cases I can run
the model locally (for single patch, due to many constraints).

Thanks,

Paolo


  reply	other threads:[~2026-11-05  9:51 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 ` [PATCH net-next v2 0/5] net: sparx5: add tc matchall port policer offload Paolo Abeni
2026-11-05  9:39   ` Daniel Machon
2026-11-05  9:51     ` Paolo Abeni [this message]
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=6810d4c3-a3b9-4da5-97fe-27cfd92563c1@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®