diff options
author | Po Liu <Po.Liu@nxp.com> | 2020-06-24 17:36:30 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-06-24 22:04:26 -0700 |
commit | 627e39b1399e72e53895eec6bbec30199ed43de2 (patch) | |
tree | 104ee4d3e279848e839947ad1eb93fcb9d20e6bd /include/net/flow_offload.h | |
parent | 89d1f0966997d5bbe510dbdb10a5c26c0e567b03 (diff) |
net: qos: police action add index for tc flower offloading
Hardware device may include more than one police entry. Specifying the
action's index make it possible for several tc filters to share the same
police action when installing the filters.
Propagate this index to device drivers through the flow offload
intermediate representation, so that drivers could share a single
hardware policer between multiple filters.
v1->v2 changes:
- Update the commit message suggest by Ido Schimmel <idosch@idosch.org>
Signed-off-by: Po Liu <Po.Liu@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/flow_offload.h')
-rw-r--r-- | include/net/flow_offload.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/flow_offload.h b/include/net/flow_offload.h index c2ef19c6b27d..eed98075b1ae 100644 --- a/include/net/flow_offload.h +++ b/include/net/flow_offload.h @@ -232,6 +232,7 @@ struct flow_action_entry { bool truncate; } sample; struct { /* FLOW_ACTION_POLICE */ + u32 index; s64 burst; u64 rate_bytes_ps; u32 mtu; |