mbox series

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

Message ID 20220214100922.13004-1-jianbol@nvidia.com (mailing list archive)
Headers show
Series flow_offload: add tc police parameters | expand

Message

Jianbo Liu Feb. 14, 2022, 10:09 a.m. UTC
Add more tc police action parameters for flow_offload. They can be used
by driver to check if police can be offloaded.

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      | 15 ++++++
 .../chelsio/cxgb4/cxgb4_tc_matchall.c         | 31 +++++++++++++
 .../net/ethernet/freescale/enetc/enetc_qos.c  | 17 +++++++
 .../ethernet/marvell/octeontx2/nic/otx2_tc.c  | 30 ++++++++++++
 .../net/ethernet/mellanox/mlx5/core/en_tc.c   | 15 ++++++
 .../ethernet/mellanox/mlxsw/spectrum_flower.c | 15 ++++++
 drivers/net/ethernet/mscc/ocelot_flower.c     | 16 +++++++
 drivers/net/ethernet/mscc/ocelot_net.c        | 15 ++++++
 .../ethernet/netronome/nfp/flower/qos_conf.c  | 16 +++++++
 include/net/flow_offload.h                    | 13 ++++++
 include/net/tc_act/tc_police.h                | 30 ++++++++++++
 net/sched/act_police.c                        | 46 +++++++++++++++++++
 12 files changed, 259 insertions(+)

Comments

Ido Schimmel Feb. 14, 2022, 1:41 p.m. UTC | #1
On Mon, Feb 14, 2022 at 10:09:20AM +0000, Jianbo Liu wrote:
> Add more tc police action parameters for flow_offload. They can be used
> by driver to check if police can be offloaded.

DaveM / Jakub, please ignore this version. We will send v2 with better
validation of "ok" action, Cc all relevant maintainers and amend the
cover letter to contain the motivation for the patchset (i.e.,
preparation for more advanced police offload in mlx5).

Thanks