OSDN Git Service

Merge branch 'flow_offload-tc-police-parameters'
authorDavid S. Miller <davem@davemloft.net>
Mon, 28 Feb 2022 11:12:39 +0000 (11:12 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Feb 2022 11:12:39 +0000 (11:12 +0000)
Jianbo Liu says:

====================
flow_offload: add tc police parameters

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.
====================

Signed-off-by: David S. Miller <davem@davemloft.net>

Trivial merge