From: Simon Horman <simon.horman@corigine.com>
To: Vlad Buslov <vladbu@nvidia.com>
Cc: davem@davemloft.net, kuba@kernel.org, saeedm@nvidia.com,
vladimir.oltean@nxp.com, claudiu.manoil@nxp.com,
alexandre.belloni@bootlin.com, rajur@chelsio.com,
sgoutham@marvell.com, gakula@marvell.com, sbhatta@marvell.com,
hkelam@marvell.com, jianbol@nvidia.com, idosch@nvidia.com,
xiyou.wangcong@gmail.com, jhs@mojatatu.com, jiri@resnulli.us,
netdev@vger.kernel.org, maord@nvidia.com,
oss-drivers@corigine.com
Subject: Re: [PATCH net 0/2] Fix police 'continue' action offload
Date: Thu, 7 Jul 2022 10:33:32 +0100 [thread overview]
Message-ID: <YsaobEAamlg9dZfw@corigine.com> (raw)
In-Reply-To: <87wncqa77w.fsf@nvidia.com>
+ oss-drivers@corigine.com
On Wed, Jul 06, 2022 at 12:57:48PM +0300, Vlad Buslov wrote:
> On Mon 04 Jul 2022 at 22:44, Vlad Buslov <vladbu@nvidia.com> wrote:
> > TC act_police with 'continue' action had been supported by mlx5 matchall
> > classifier offload implementation for some time. However, 'continue' was
> > assumed implicitly and recently got broken in multiple places. Fix it in
> > both TC hardware offload validation code and mlx5 driver.
> >
> > Vlad Buslov (2):
> > net/sched: act_police: allow 'continue' action offload
> > net/mlx5e: Fix matchall police parameters validation
> >
> > drivers/net/ethernet/mellanox/mlx5/core/en_tc.c | 13 ++++++-------
> > include/net/flow_offload.h | 1 +
> > net/sched/act_police.c | 2 +-
> > 3 files changed, 8 insertions(+), 8 deletions(-)
>
> Adding maintainers of other drivers that might have been impacted by the
> validation change. If your driver supports 'continue' police action
> offload with matchall classifier, then you may want to also relax the
> validation restrictions in similar manner as I do in patch 2 for mlx5,
> as I also submitted OvS fix to restore matchall police notexceed action
> type to 'continue' here:
> https://mail.openvswitch.org/pipermail/ovs-dev/2022-July/395561.html
Thanks Vlad,
I've looked through the nfp driver and it appears that
nfp_policer_validate() rejects policer offload if the
conform/exceed action (act_id) is not FLOW_ACTION_DROP.
So I think it will not be affected by any new valid values for act_id.
And thus this patchset, which adds FLOW_ACTION_CONTINUE as a valid
value for act_id should not affect the nfp driver.
For patch 1/2:
Reviewed-by: Simon Horman <simon.horman@corigine.com>
next prev parent reply other threads:[~2022-07-07 9:33 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-07-04 20:44 [PATCH net 0/2] Fix police 'continue' action offload Vlad Buslov
2022-07-04 20:44 ` [PATCH net 1/2] net/sched: act_police: allow " Vlad Buslov
2022-07-04 20:44 ` [PATCH net 2/2] net/mlx5e: Fix matchall police parameters validation Vlad Buslov
2022-07-06 5:45 ` Saeed Mahameed
2022-07-06 0:11 ` [PATCH net 0/2] Fix police 'continue' action offload Jakub Kicinski
2022-07-06 5:46 ` Saeed Mahameed
2022-07-06 9:57 ` Vlad Buslov
2022-07-07 9:33 ` Simon Horman [this message]
2022-07-06 11:50 ` patchwork-bot+netdevbpf
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=YsaobEAamlg9dZfw@corigine.com \
--to=simon.horman@corigine.com \
--cc=alexandre.belloni@bootlin.com \
--cc=claudiu.manoil@nxp.com \
--cc=davem@davemloft.net \
--cc=gakula@marvell.com \
--cc=hkelam@marvell.com \
--cc=idosch@nvidia.com \
--cc=jhs@mojatatu.com \
--cc=jianbol@nvidia.com \
--cc=jiri@resnulli.us \
--cc=kuba@kernel.org \
--cc=maord@nvidia.com \
--cc=netdev@vger.kernel.org \
--cc=oss-drivers@corigine.com \
--cc=rajur@chelsio.com \
--cc=saeedm@nvidia.com \
--cc=sbhatta@marvell.com \
--cc=sgoutham@marvell.com \
--cc=vladbu@nvidia.com \
--cc=vladimir.oltean@nxp.com \
--cc=xiyou.wangcong@gmail.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.