From: Jianbo Liu <jianbol@nvidia.com>
To: <linux-kernel@vger.kernel.org>, <netdev@vger.kernel.org>,
<linux-rdma@vger.kernel.org>
Cc: <olteanv@gmail.com>, <andrew@lunn.ch>, <vivien.didelot@gmail.com>,
<f.fainelli@gmail.com>, <davem@davemloft.net>, <kuba@kernel.org>,
<rajur@chelsio.com>, <claudiu.manoil@nxp.com>,
<sgoutham@marvell.com>, <gakula@marvell.com>,
<sbhatta@marvell.com>, <hkelam@marvell.com>, <saeedm@nvidia.com>,
<leon@kernel.org>, <idosch@nvidia.com>, <petrm@nvidia.com>,
<alexandre.belloni@bootlin.com>, <UNGLinuxDriver@microchip.com>,
<simon.horman@corigine.com>, <jhs@mojatatu.com>,
<xiyou.wangcong@gmail.com>, <jiri@resnulli.us>,
<baowen.zheng@corigine.com>, <louis.peens@netronome.com>,
<peng.zhang@corigine.com>, <oss-drivers@corigine.com>,
<roid@nvidia.com>, Jianbo Liu <jianbol@nvidia.com>
Subject: [PATCH net-next v3 0/2] flow_offload: add tc police parameters
Date: Thu, 24 Feb 2022 10:29:06 +0000 [thread overview]
Message-ID: <20220224102908.5255-1-jianbol@nvidia.com> (raw)
As a preparation for more advanced police offload in mlx5 (e.g.,
jumping to another chain when bandwidth is not exceeded), extend the
flow offload API with more tc-police parameters. Adjust existing
drivers to reject unsupported configurations.
Changes since v2:
* Rename index to extval in exceed and notexceed acts.
* Add policer validate functions for all drivers.
Changes since v1:
* Add one more strict validation for the control of drop/ok.
Jianbo Liu (2):
net: flow_offload: add tc police action parameters
flow_offload: reject offload for all drivers with invalid police
parameters
drivers/net/dsa/sja1105/sja1105_flower.c | 47 +++++++++++++--
.../chelsio/cxgb4/cxgb4_tc_matchall.c | 59 +++++++++++++++----
.../net/ethernet/freescale/enetc/enetc_qos.c | 47 +++++++++++++--
.../ethernet/marvell/octeontx2/nic/otx2_tc.c | 43 ++++++++++++++
.../net/ethernet/mellanox/mlx5/core/en_tc.c | 48 +++++++++++++--
.../ethernet/mellanox/mlxsw/spectrum_flower.c | 47 +++++++++++++--
drivers/net/ethernet/mscc/ocelot_flower.c | 14 +++--
drivers/net/ethernet/mscc/ocelot_net.c | 10 ++--
drivers/net/ethernet/mscc/ocelot_police.c | 41 +++++++++++++
drivers/net/ethernet/mscc/ocelot_police.h | 5 ++
.../ethernet/netronome/nfp/flower/qos_conf.c | 40 +++++++++++++
include/net/flow_offload.h | 15 +++++
include/net/tc_act/tc_police.h | 30 ++++++++++
net/sched/act_police.c | 46 +++++++++++++++
14 files changed, 454 insertions(+), 38 deletions(-)
--
2.26.2
next reply other threads:[~2022-02-24 10:29 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-02-24 10:29 Jianbo Liu [this message]
2022-02-24 10:29 ` [PATCH net-next v3 1/2] net: flow_offload: add tc police action parameters Jianbo Liu
2022-03-15 19:13 ` Vladimir Oltean
2022-03-17 13:22 ` Ido Schimmel
2022-03-17 18:52 ` Vladimir Oltean
2022-03-17 19:37 ` Ido Schimmel
2022-03-22 10:13 ` Ido Schimmel
2022-04-06 14:30 ` Vladimir Oltean
2022-02-24 10:29 ` [PATCH net-next v3 2/2] flow_offload: reject offload for all drivers with invalid police parameters Jianbo Liu
2022-02-28 11:40 ` [PATCH net-next v3 0/2] flow_offload: add tc " 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=20220224102908.5255-1-jianbol@nvidia.com \
--to=jianbol@nvidia.com \
--cc=UNGLinuxDriver@microchip.com \
--cc=alexandre.belloni@bootlin.com \
--cc=andrew@lunn.ch \
--cc=baowen.zheng@corigine.com \
--cc=claudiu.manoil@nxp.com \
--cc=davem@davemloft.net \
--cc=f.fainelli@gmail.com \
--cc=gakula@marvell.com \
--cc=hkelam@marvell.com \
--cc=idosch@nvidia.com \
--cc=jhs@mojatatu.com \
--cc=jiri@resnulli.us \
--cc=kuba@kernel.org \
--cc=leon@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rdma@vger.kernel.org \
--cc=louis.peens@netronome.com \
--cc=netdev@vger.kernel.org \
--cc=olteanv@gmail.com \
--cc=oss-drivers@corigine.com \
--cc=peng.zhang@corigine.com \
--cc=petrm@nvidia.com \
--cc=rajur@chelsio.com \
--cc=roid@nvidia.com \
--cc=saeedm@nvidia.com \
--cc=sbhatta@marvell.com \
--cc=sgoutham@marvell.com \
--cc=simon.horman@corigine.com \
--cc=vivien.didelot@gmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).