[PATCH net-next v3 0/2] flow_offload: add tc police parameters

Jianbo Liu posted 2 patches 4 years, 3 months ago
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(-)
[PATCH net-next v3 0/2] flow_offload: add tc police parameters
Posted by Jianbo Liu 4 years, 3 months ago
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

Re: [PATCH net-next v3 0/2] flow_offload: add tc police parameters
Posted by patchwork-bot+netdevbpf@kernel.org 4 years, 3 months ago
Hello:

This series was applied to netdev/net-next.git (master)
by David S. Miller <davem@davemloft.net>:

On Thu, 24 Feb 2022 10:29:06 +0000 you wrote:
> 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.
> 
> [...]

Here is the summary with links:
  - [net-next,v3,1/2] net: flow_offload: add tc police action parameters
    https://git.kernel.org/netdev/net-next/c/b8cd5831c61c
  - [net-next,v3,2/2] flow_offload: reject offload for all drivers with invalid police parameters
    (no matching commit)

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html