Linux RDMA and InfiniBand development
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Mohsin Bashir" <mohsin.bashr@gmail.com>
Cc: linux-rdma@vger.kernel.org
Subject: Re: [PATCH net-next v3] net: mlx5: Allow police as the last action of a TC rule
Date: Tue, 24 Nov 2026 22:28:53 +0000	[thread overview]
Message-ID: <sashiko-outbox-232132@kernel.org> (raw)
In-Reply-To: <20261124220251.776944-1-mohsin.bashr@gmail.com>

> From: Mohsin Bashir <hmohsin@meta.com>
> 
> In switchdev mode, mlx5 does not offload a rule where police is the last
> action, although TC needs no other action for such a rule. The upcoming
> selftest series relies on these rules. With nothing after police, the
> police result alone decides where the packet goes, so each result must
> be offloaded as TC executes it. The driver does not do that today. An ok
> result is handled as pipe and runs the actions after police, a pipe
> result always returns to the post action table, and a jump is counted
> from police while TC counts it from the start of the action list. A rate
> police is also rejected by verify_attr_actions(), as its forward to the
> post meter table is added only after the check.
> 
> Make the offloaded rule behave as it does in TC. An ok result ends
> processing in TC. A pipe result does the same when police is the last
> [ ... ]
>     action police rate 100mbit burst 1m conform-exceed drop / jump 2 \
>     action drop action ok
> 
> Cc: Carolina Jubran <cjubran@nvidia.com>
> Signed-off-by: Mohsin Bashir <hmohsin@meta.com>

Sashiko has reviewed this patch and found no issues.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261124220251.776944-1-mohsin.bashr@gmail.com?part=1

      reply	other threads:[~2026-11-24 22:28 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-24 22:02 [PATCH net-next v3] net: mlx5: Allow police as the last action of a TC rule Mohsin Bashir
2026-11-24 22:28 ` sashiko-bot [this message]

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=sashiko-outbox-232132@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=linux-rdma@vger.kernel.org \
    --cc=mohsin.bashr@gmail.com \
    --cc=sashiko-reviews@lists.linux.dev \
    /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